*/ class SitemapsPage extends AbstractPage { protected $type; public $index = false; /** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (intval(count($_GET)) == intval(1)) { $this->index = true; } } /** * * @param type */ public function setType($type) { $this->type = $type; } /** * @see Page::assignVariables() */ public function readData() { parent::readData(); // send header @header('Content-Type: application/xml; charset='.CHARSET); echo ''; switch($this->type) { case 'sitemapindex': echo ''; break; case 'urlset': echo ''; break; } } /** * @see Page::show() */ public function show() { parent::show(); switch($this->type) { case 'sitemapindex': echo ''; break; case 'urlset': echo ''; break; } } } ?>