Automad
 All Classes Functions Variables Pages
Automad\Core\Sitemap Class Reference

Public Member Functions

 __construct ($collection)
 

Private Member Functions

 generate ($collection, $sitemap)
 

Detailed Description

The Sitemap class handles the generating process for a site's sitemap.xml.

Author
Marc Anton Dahmen hello.nosp@m.@mar.nosp@m.cdahm.nosp@m.en.d.nosp@m.e
License
MIT license - http://automad.org/license

Definition at line 52 of file sitemap.php.

Constructor & Destructor Documentation

Automad\Core\Sitemap::__construct (   $collection)

The constructor verifies, whether sitemap.xml can be written and initiates the generating process.

Parameters
array$collection

Definition at line 61 of file sitemap.php.

References Automad\Core\Automad\$collection, and Automad\Core\Debug\log().

Member Function Documentation

Automad\Core\Sitemap::generate (   $collection,
  $sitemap 
)
private

Generate the XML for the sitemap and write sitemap.xml.

Parameters
array$collection
string$sitemap

Definition at line 89 of file sitemap.php.

References Automad\Core\Automad\$collection, and Automad\Core\Debug\log().


The documentation for this class was generated from the following file: