Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @param array|Zend_Config $options An array or config object with Zend_Navigation_Page options
  * @param object $item A Zend_Db_Table_Row object
  */
 public function __construct($options = null, Zend_Db_Table_Row $item)
 {
     $this->setView();
     $this->_item = $item;
     $this->id = $this->_item->id;
     $pageOptions = $this->_getPageAsArray();
     $this->setOptions($pageOptions);
     $this->_setActive();
     $this->_setVisible();
     parent::__construct($options);
 }
Ejemplo n.º 2
0
 /** \param array|Zend_Config $options options for parent constructor
     \see **Zend_Navigation_Page_Uri::__construct**
     */
 public function __construct($options = null)
 {
     parent::__construct($options);
     $this->_id = null;
 }