Пример #1
0
 function pagesCommon()
 {
     parent::__construct(__CLASS__);
     $this->_tree->setCacheParams('tree', 3600);
     //  $this->_tree->enableCache(true);
     $this->_tree->setObject('_ROOT', array('StartPage', 'Active', 'Name', 'Gacode'));
     $this->_tree->setObject('_DOMAIN', array('StartPage', 'Active', 'Name'), array('_ROOT'));
     $this->_tree->setObject('_LVERSION', array('StartPage', 'Active', 'Name', 'Link'), array('_DOMAIN'));
     $this->_tree->setObject('_LINK', array('Link', 'LinkId', 'Active', 'Icon', 'Comment', 'DisableMapLink', 'Visible', 'Name', 'ExternalLinkId'), array('_GROUP', '_LVERSION'));
     $this->_tree->setObject('_GROUP', array('Name', 'Active', 'StartPage', 'Icon', 'Comment', 'Visible', 'Template', 'DisableGlobalLink', 'DisableAccess', 'DisablePath', 'DisableMapLink'), array('_ROOT', '_GROUP', '_LVERSION'));
     $this->_tree->setObject('_PAGE', array('Name', 'Active', 'AuthRedirId', 'NoAuthRedirId', 'Visible', 'Template', 'Keywords', 'Title', 'Icon', 'Comment', 'DisableGlobalLink', 'DisableMapLink', 'DisablePath', 'DisableCache', 'Meta', 'Description', 'DisableAccess'), array('_ROOT', '_GROUP', '_LVERSION'));
     $this->_tree->setObject('_MODULE', null, array('_PAGE', '_LVERSION', '_GROUP', '_DOMAIN', '_ROOT'));
 }
Пример #2
0
 function templatesCommon()
 {
     parent::__construct(__CLASS__);
     Common::loadDriver('xCache', 'xCacheFileDriver');
 }