コード例 #1
0
ファイル: Helper.php プロジェクト: bokultis/kardiomedika
 /**
  * Constructor
  *
  */
 function __construct($application, $options)
 {
     $this->_application = $application;
     $this->_options = $options;
     $this->_subPath = $this->_application->get_id();
     $this->_root = $this->_options['root'] . "/" . $this->_subPath;
     $this->_webRoot = $this->_options['webRoot'] . "/" . $this->_subPath;
     $this->_forceRoot = $this->_options['forceRoot'];
 }
コード例 #2
0
ファイル: Cms.php プロジェクト: bokultis/kardiomedika
 protected function _initMenus()
 {
     $bootstrap = $this->getInvokeArg('bootstrap');
     $config = $bootstrap->getOptions();
     $menus = array('main', 'footer');
     if (isset($config['menuSettings']['menus']) && count($config['menuSettings']['menus'])) {
         $menus = $config['menuSettings']['menus'];
     }
     $menuItemMapper = Cms_Model_MenuItemMapper::getInstance();
     $this->view->menuItems = array();
     foreach ($menus as $currMenu) {
         $this->view->menuItems[$currMenu] = new Zend_Navigation($menuItemMapper->fetchZendNavigationArray(array('application_id' => $this->_application->get_id(), 'menu' => $currMenu, 'lang' => CURR_LANG, 'visible_only' => true), array(), false));
     }
     //set meta from menu
     if ($this->_isMetaFromActiveMenu) {
         $this->_populateMetaFromActiveMenu();
     }
 }