PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/plugins/wordpress-seo/inc/sitemaps/interface-sitemap-provider.php

https://bitbucket.org/carloskikea/helpet
PHP | 41 lines | 6 code | 4 blank | 31 comment | 0 complexity | c604532f09b4230695f1afb357b8c224 MD5 | raw file
 1<?php
 2/**
 3 * WPSEO plugin file.
 4 *
 5 * @package WPSEO\XML_Sitemaps
 6 */
 7
 8/**
 9 * Sitemap Provider interface
10 */
11interface 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 boolean
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}