Helper for printing sitemaps
Helper entry point
Parameters: | string|AbstractContainer – container to operate on |
---|---|
Return type: | Sitemap |
Sets whether XML output should be formatted
Parameters: | bool – [optional] whether output should be formatted. Default is true. |
---|---|
Return type: | Sitemap fluent interface, returns self |
Returns whether XML output should be formatted
Return type: | bool whether XML output should be formatted |
---|
Sets whether the XML declaration should be used in output
Parameters: | bool – whether XML declaration should be rendered |
---|---|
Return type: | Sitemap fluent interface, returns self |
Returns whether the XML declaration should be used in output
Return type: | bool whether the XML declaration should be used in output |
---|
Sets whether sitemap should be validated using ZendValidateSitemap_*
Parameters: | bool – whether sitemap validators should be used |
---|---|
Return type: | Sitemap fluent interface, returns self |
Returns whether sitemap should be validated using ZendValidateSitemap_*
Return type: | bool whether sitemap should be validated using validators |
---|
Sets whether sitemap should be schema validated when generated
Parameters: | bool – whether sitemap should validated using XSD Schema |
---|---|
Return type: | Sitemap |
Returns true if sitemap should be schema validated when generated
Return type: | bool |
---|
Sets server url (scheme and host-related stuff without request URI)
Parameters: | string – server URL to set (only scheme and host) |
---|---|
Return type: | Sitemap fluent interface, returns self |
Throws : | ExceptionInvalidArgumentException if invalid server URL |
Escapes string for XML usage
Parameters: | string – string to escape |
---|---|
Return type: | string escaped string |
Returns an escaped absolute URL for the given page
Parameters: | AbstractPage – page to get URL from |
---|---|
Return type: | string |
Returns a DOMDocument containing the Sitemap XML for the given container
Parameters: | AbstractContainer – [optional] container to get breadcrumbs from, defaults to what is registered in the helper |
---|---|
Return type: | DOMDocument DOM representation of the container |
Throws : | ExceptionRuntimeException if schema validation is on and the sitemap is invalid according to the sitemap schema, or if sitemap validators are used and the loc element fails validation |
Full-text doc search.
Enter search terms or a module, class or function name.