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); } }