| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\XML_Sitemaps |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Sitemap Provider interface. |
| 10 |
*/ |
| 11 |
interface WPSEO_Sitemap_Provider { |
| 12 |
|
| 13 |
/** |
| 14 |
* Check if provider supports given item type. |
| 15 |
* |
| 16 |
* @param string $type Type string to check for. |
| 17 |
* |
| 18 |
* @return bool |
| 19 |
*/ |
| 20 |
public function handles_type( $type ); |
| 21 |
|
| 22 |
/** |
| 23 |
* Get set of sitemaps index link data. |
| 24 |
* |
| 25 |
* @param int $max_entries Entries per sitemap. |
| 26 |
* |
| 27 |
* @return array |
| 28 |
*/ |
| 29 |
public function get_index_links( $max_entries ); |
| 30 |
|
| 31 |
/** |
| 32 |
* Get set of sitemap link data. |
| 33 |
* |
| 34 |
* @param string $type Sitemap type. |
| 35 |
* @param int $max_entries Entries per sitemap. |
| 36 |
* @param int $current_page Current page of the sitemap. |
| 37 |
* |
| 38 |
* @return array |
| 39 |
*/ |
| 40 |
public function get_sitemap_links( $type, $max_entries, $current_page ); |
| 41 |
} |
| 42 |
|