Perforce Chronicle 2012.2/486814
API Documentation
|
Provides server-side menu support. More...
Public Member Functions | |
sitemapAction () | |
Serve site map created from the 'sitemap' menu. | |
Public Attributes | |
$contexts |
Provides server-side menu support.
Menu_IndexController::sitemapAction | ( | ) |
Serve site map created from the 'sitemap' menu.
{ // set page title $this->view->headTitle()->set('Sitemap'); // get sitemap menu from storage or supply blank one if it doesn't exists $menu = P4Cms_Menu::exists('sitemap') ? P4Cms_Menu::fetch('sitemap') : new P4Cms_Menu; // tag the page cache so it can be appropriately cleared later if (P4Cms_Cache::canCache('page')) { P4Cms_Cache::getCache('page') ->addTag('p4cms_menu') ->addTag('p4cms_menu_' . bin2hex('sitemap')); } $this->view->menu = $menu; $this->view->sitemap = $menu->getExpandedContainer(); }
Menu_IndexController::$contexts |
array( 'sitemap' => array('xml'), )