mirror of
git://develop.git.wordpress.org/
synced 2025-02-23 08:03:41 +01:00
See #53399 git-svn-id: https://develop.svn.wordpress.org/trunk@52204 602fd350-edb4-49c9-b593-d223f7449a82
39 lines
1012 B
PHP
39 lines
1012 B
PHP
<?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;
|
|
}
|
|
}
|