public static function listenToSimulateNewRequestEvent(sfEvent $event)
 {
     self::$global = false;
     self::$globalCache = false;
     self::$currentPage = null;
     self::$pageStack = array();
     self::$globalButtons = false;
     self::$allowSlotEditing = true;
     aNavigation::simulateNewRequest();
 }
Beispiel #2
0
 public function initializeTree()
 {
     if (!isset(self::$tree)) {
         $root = aPageTable::retrieveBySlugWithTitles('/');
         $rootInfo['id'] = $root['id'];
         $rootInfo['lft'] = $root['lft'];
         $rootInfo['rgt'] = $root['rgt'];
         $rootInfo['title'] = $root['title'];
         $rootInfo['slug'] = $root['slug'];
         $tree = $root->getTreeInfo(false);
         $rootInfo['children'] = $tree;
         self::$tree = array($rootInfo);
         self::createHashTable(self::$tree, $rootInfo);
     }
 }