CyberDuck\SEO\Generators\SitemapGenerator
SitemapGenerator
Generates an HTML sitemap list
- Author: <andrewm@cyber-duck.co.uk>
- License: MIT License https://github.com/cyber-duck/silverstripe-seo/blob/master/LICENSE
Synopsis
class SitemapGenerator
{
- // methods
- private array getSitemapHost()
- private array getSitemapFilters()
- public string getSitemapHTML()
- private void getChildPages()
- private void getObjectChildren()
Members
private
- $host
—
string
The current site host and protocol - $html
—
string
The HTML to output
Methods
private
- getChildPages() — Iterate through child Page class objects
- getObjectChildren() — Get children which are not of Page type
- getSitemapFilters() — Get subsite domains
- getSitemapHost() — Get subsite domains
public
- getSitemapHTML() — Return the sitemap HTML