PHP Class Thepixeldeveloper\Sitemap\SitemapIndex

Inheritance: implements Thepixeldeveloper\Sitemap\OutputInterface
Show file Open project: thepixeldeveloper/sitemap

Protected Properties

Property Type Description
$sitemaps Thepixeldeveloper\Sitemap\OutputInterface[] Array of Sitemap entries.

Public Methods

Method Description
addSitemap ( Thepixeldeveloper\Sitemap\OutputInterface $sitemap ) Add a new Sitemap object to the collection.
generateXML ( XMLWriter $XMLWriter )
getSitemaps ( ) : Thepixeldeveloper\Sitemap\OutputInterface[] Get an array of Sitemap objects.

Method Details

addSitemap() public method

Add a new Sitemap object to the collection.
public addSitemap ( Thepixeldeveloper\Sitemap\OutputInterface $sitemap )
$sitemap Thepixeldeveloper\Sitemap\OutputInterface

generateXML() public method

public generateXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

getSitemaps() public method

Get an array of Sitemap objects.
public getSitemaps ( ) : Thepixeldeveloper\Sitemap\OutputInterface[]
return Thepixeldeveloper\Sitemap\OutputInterface[]

Property Details

$sitemaps protected property

Array of Sitemap entries.
protected OutputInterface[],Thepixeldeveloper\Sitemap $sitemaps
return Thepixeldeveloper\Sitemap\OutputInterface[]