protected function getConfigParams($lazy = false) { $params = parent::getConfigParams($lazy); // Items if ($this->_items->getCount() > 0) { $params[] = "menu: { items: " . $this->_items->getJavascript() . "}"; } return $params; }
/** * Helper function to quick add an item * @return PhpExt_Menu_Menu */ public function addItem($key, PhpExt_Menu_BaseItem $item) { $this->_items->add($item, $key); return $this; }