CFREQ_ALWAYS
CFREQ_ALWAYS
Renders an XML Sitemap for Google and other Search Engines
__construct(string $charset = 'utf-8') : \Fuman_Util_Sitemap
Constructor
string | $charset |
addUri(string $loc, float $priority = 0.5, integer|null $changefreq = null, integer|null $lastMod = null, boolean $image = false, array $languages = null) : void
Adds an Uri to the XML
string | $loc | |
float | $priority | Priority From 0 to 1 |
integer|null | $changefreq | |
integer|null | $lastMod | |
boolean | $image | |
array | $languages | | lang => uri |
getXML(boolean $return = true, string $contentType = 'text/xml') : string|void
Returns the xml or flushes it, depends on $return
boolean | $return | Wheater the XML should be returnes as String or flushes |
string | $contentType | Content- Type fpr Header |
Depends on $return