class SitemapHeader extends SitemapElement (View source)

Constants

DEFAULT_NAMESPACE

The default sitemap namespace.

MULTILINGUAL_NAMESPACE

The namespace required for the multilingual alternatives.

MULTILINGUAL_NAMESPACE_NAME

The alias of the namespace required for the multilingual alternatives.

Properties

protected bool $isMultilingual

Is multilingual supported?

Methods

string[]|null
toXmlLines(string $indenter = ' ')

Returns the XML representation of this element.

toXmlElement(SimpleXMLElement $parentElement = null)

Returns a SimpleXMLElement instance representing this element.

string
getXmlMetaHeader()

Get the XML meta-header.

__construct(bool $isMultilingual)

Initialize the instance.

bool
isIsMultilingual()

Is multilingual supported?

$this
setIsMultilingual(bool $isMultilingual)

Is multilingual supported?

string[]
getUrlset(bool $selfClosing)

No description

Details

string[]|null toXmlLines(string $indenter = ' ')

Returns the XML representation of this element.

Parameters

string $indenter

The string used to indent the XML

Return Value

string[]|null

Returns NULL in case no data should be generated, the XML lines otherwise

See also

SitemapElement::toXmlLines

SimpleXMLElement|null toXmlElement(SimpleXMLElement $parentElement = null)

Returns a SimpleXMLElement instance representing this element.

Parameters

SimpleXMLElement $parentElement

Return Value

SimpleXMLElement|null

See also

SitemapElement::toXmlElement

protected string getXmlMetaHeader()

Get the XML meta-header.

Return Value

string

__construct(bool $isMultilingual)

Initialize the instance.

Parameters

bool $isMultilingual

Is multilingual supported?

bool isIsMultilingual()

Is multilingual supported?

Return Value

bool

$this setIsMultilingual(bool $isMultilingual)

Is multilingual supported?

Parameters

bool $isMultilingual

Return Value

$this

protected string[] getUrlset(bool $selfClosing)

No description

Parameters

bool $selfClosing

Return Value

string[]