Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Helper for printing sitemaps
string SITEMAP_NS = 'http://www.sitemaps.org/schemas/sitemap/0.9'
Namespace for the <urlset> tag
string SITEMAP_XSD = 'http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd'
Schema URL
bool $_formatOutput = 'false'
Whether XML output should be formatted
string $_serverUrl = ''
Server url
bool $_useSchemaValidation = 'false'
Whether sitemap should be schema validated when generated
bool $_useSitemapValidators = 'true'
Whether sitemap should be validated using Zend_Validate_Sitemap_*
bool $_useXmlDeclaration = 'true'
Whether the XML declaration should be included in XML output
_xmlEscape(
string $string
)
:
string
Escapes string for XML usage
getDomSitemap(
Zend_Navigation_Container $container
=
null
)
:
DOMDocument
Returns a DOMDocument containing the Sitemap XML for the given container
getFormatOutput(
)
:
bool
Returns whether XML output should be formatted
getServerUrl(
)
:
string
Returns server URL
getUseSchemaValidation(
)
:
bool
Returns true if sitemap should be schema validated when generated
getUseSitemapValidators(
)
:
bool
Returns whether sitemap should be validated using Zend_Validate_Sitemap_*
getUseXmlDeclaration(
)
:
bool
Returns whether the XML declaration should be used in output
render(
Zend_Navigation_Container $container
=
null
)
:
string
Renders helper
Implements {@link Zend_View_Helper_Navigation_Helper::render()}.
setFormatOutput(
bool $formatOutput
=
true
)
:
Zend_View_Helper_Navigation_Sitemap
Sets whether XML output should be formatted
setServerUrl(
string $serverUrl
)
:
Zend_View_Helper_Navigation_Sitemap
Sets server url (scheme and host-related stuff without request URI)
E.g. http://www.example.com
setUseSchemaValidation(
bool $schemaValidation
)
:
Zend_View_Helper_Navigation_Sitemap
Sets whether sitemap should be schema validated when generated
setUseSitemapValidators(
bool $useSitemapValidators
)
:
Zend_View_Helper_Navigation_Sitemap
Sets whether sitemap should be validated using Zend_Validate_Sitemap_*
setUseXmlDeclaration(
bool $useXmlDecl
)
:
Zend_View_Helper_Navigation_Sitemap
Sets whether the XML declaration should be used in output
sitemap(
Zend_Navigation_Container $container
=
null
)
:
Zend_View_Helper_Navigation_Sitemap
View helper entry point: Retrieves helper and optionally sets container to operate on
url(
Zend_Navigation_Page $page
)
:
string
Returns an escaped absolute URL for the given page