\ BWP_Sitemaps_Provider_ExternalPage

Summary

Methods
Properties
Constants
__construct()
get_pages()
get_pages_for_display()
get_page()
has_pages()
get_bridge()
get_storage_key()
get_domain()
No public properties found
No constants found
No protected methods found
$plugin
$bridge
$storage_key
N/A

Properties

$plugin

$plugin : 

$bridge

$bridge : 

$storage_key

$storage_key : 

Methods

__construct()

__construct(\BWP_Sitemaps  $plugin,   $storage_key) 

Parameters

\BWP_Sitemaps $plugin
$storage_key

get_pages()

get_pages(integer  $limit = null) : array

Get external pages

Parameters

integer $limit

default = null i.e. get all pages

Returns

array

an associative array of 'url' => array

get_pages_for_display()

get_pages_for_display(integer  $limit = null) : array

Get external pages with local timezone properly set and url included in data

This is intended to be consumed by ajax handlers or regular handlers

Parameters

integer $limit

default = null i.e. get all pages

Returns

array

an associative array of 'url' => array

get_page()

get_page(string  $url) : array

Get an external page by its url

Parameters

string $url

Returns

array

the page's data

has_pages()

has_pages() : boolean

Check if we have external pages in db

Returns

boolean

get_bridge()

get_bridge() 

get_storage_key()

get_storage_key() 

get_domain()

get_domain()