Properties

$stylesheet

$stylesheet : string

Sitemap stylesheet

Type

string

$xml_headers

$xml_headers : array

Sitemap namespaces

Type

array

$xml_root_tag

$xml_root_tag : string

Sitemap XML root tag, e.g. 'urlset'

Type

string

$xml

$xml : string

Cached XML representation of this sitemap

Type

string

$item_count

$item_count : integer

Number of actual sitemap items in this sitemap

Type

integer

$news_name

$news_name : 

Methods

get_xml()

get_xml() : string

Get an xml representation of the sitemap

Returns

string

append()

append(string  $content) : $this

Appends contents to the xml output, when applicable

Parameters

string $content

Returns

$this

has_items()

has_items() : boolean

Whether this sitemap actually has items

Returns

boolean

get_item_count()

get_item_count() : integer

Returns

integer

set_xml_headers()

set_xml_headers() 

Set additional and/or replace existing headers

get_xml_item_body()

get_xml_item_body(array  $item) : string

Get xml body of a sitemap item

Parameters

array $item

Returns

string

create_tags_from_sitemap_item()

create_tags_from_sitemap_item(array  $item, array  $tag_names, array  $sanitizers = array()) : array

Create single tags from a sitemap item

Parameters

array $item
array $tag_names

a map from tag's name to item's array key

array $sanitizers

Returns

array

create_image_tag_from_sitemap_item()

create_image_tag_from_sitemap_item(array  $item) : mixed

Create an image tag from image item

Parameters

array $item

Returns

mixed

BWP_Sitemaps_Sitemap_Tag_CompoundTag|null

set_properties()

set_properties() 

{@inheritDoc}