blob: 750c4c8d678f63eadd93552fd5794a9ad8e8c86c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
/**
* Class WP_Sitemaps_Empty_Test_Provider.
*
* Provides test data for additional registered providers.
*/
class WP_Sitemaps_Empty_Test_Provider extends WP_Sitemaps_Provider {
/**
* WP_Sitemaps_Empty_Test_Provider constructor.
*
* @param string $object_type Optional. Object type name to use. Default 'test'.
*/
public function __construct( $object_type = 'test' ) {
$this->object_type = $object_type;
}
/**
* Gets a URL list for a sitemap.
*
* @param int $page_num Page of results.
* @param string $object_subtype Optional. Object subtype name. Default empty.
* @return array[] Array of URL information for a sitemap.
*/
public function get_url_list( $page_num, $object_subtype = '' ) {
return array();
}
/**
* Query for determining the number of pages.
*
* @param string $object_subtype Optional. Object subtype. Default empty.
* @return int Total number of pages.
*/
public function get_max_num_pages( $object_subtype = '' ) {
return 0;
}
}
|