/** * Creates a new navigation container * * @param array|Zend_Config $pages [optional] pages to add * @throws Zend_Navigation_Exception if $pages is invalid */ public function __construct($pages = null) { if ($pages instanceof Zend_Config) { $pages = $pages->toArray(); } if (is_array($pages)) { array_walk($pages, array($this, '_makeMcaTypeDefaultForPages')); } parent::__construct($pages); }
/** * Creates a new navigation container * * @see Zend_Navigation::__construct() * @param string|array|Zend_Config $pages [optional] pages to add * @param string $environment [optional] environment in pages * @throws Zend_Navigation_Exception if $pages is invalid */ public function __construct($pages = null, $environment = 'navigation') { if (is_string($pages) && is_file($pages)) { $file = $pages; switch (strtolower(pathinfo($file, PATHINFO_EXTENSION))) { case 'ini': $pages = new Zend_Config_Ini($file, $environment); break; case 'xml': $pages = new Zend_Config_Xml($file, $environment); break; case 'json': $pages = new Zend_Config_Json($file, $environment); break; case 'yaml': case 'yml': $pages = new Zend_Config_Yaml($file, $environment); break; default: throw new ZtChart_Model_Navigation_Exception('Invalid configuration file provided; unknown config type'); } } parent::__construct($pages); }
public function __construct($pages = null) { parent::__construct($pages); $this->options = array('active' => 0, 'collapsible' => false, 'disabled' => false, 'event' => 'click', 'heightStyle' => 'content', 'hide' => null, 'show' => null); }
/** * Creates a new navigation container * * @param array|Zend_Config $pages [optional] pages to add * @throws Zend_Navigation_Exception if $pages is invalid */ public function __construct($pages = null) { parent::__construct($pages); }
/** * Устанавливаем базовое меню */ public function __construct() { parent::__construct($this->_menu); }