/** * Set the menu items (allows for overruling in subclasses) * * @param \Gems_Menu_MenuList $menuList */ protected function addButtons(\Gems_Menu_MenuList $menuList) { if ($this->addCurrentParent) { $menuList->addCurrentParent($this->_('Cancel')); } if ($this->addCurrentSiblings) { $menuList->addCurrentSiblings($this->anyParameterSiblings); } if ($this->addCurrentChildren) { $menuList->addCurrentChildren(); } // \MUtil_Echo::track($this->addCurrentParent, $this->addCurrentSiblings, $this->addCurrentChildren); }
/** * Set the footer of the browse table. * * Overrule this function to set the header differently, without * having to recode the core table building code. * * @param \MUtil_Model_Bridge_VerticalTableBridge $bridge * @param \MUtil_Model_ModelAbstract $model * @return void */ protected function setShowTableFooter(\MUtil_Model_Bridge_VerticalTableBridge $bridge, \MUtil_Model_ModelAbstract $model) { if ($this->displayMenu) { if (!$this->menuList) { $this->menuList = $this->menu->getCurrentMenuList($this->request, $this->_('Cancel')); } if ($this->menuList instanceof \Gems_Menu_MenuList) { $this->menuList->addParameterSources($bridge); } $bridge->tfrow($this->menuList, array('class' => 'centerAlign')); } }
/** * Set the menu items (allows for overruling in subclasses) * * @param \Gems_Menu_MenuList $menuList */ protected function addButtons(\Gems_Menu_MenuList $menuList) { $menuList->addByController('track-rounds', 'create', $this->_('New round')); }
/** * Set the menu items (allows for overruling in subclasses) * * @param \Gems_Menu_MenuList $menuList */ protected function addButtons(\Gems_Menu_MenuList $menuList) { $menuList->addByController('respondent', 'show', $this->_('Show respondent'))->addCurrentChildren(); }
/** * Set the menu items (allows for overruling in subclasses) * * @param \Gems_Menu_MenuList $menuList */ protected function addButtons(\Gems_Menu_MenuList $menuList) { $menuList->addByController('respondent', 'show', $this->_('Show respondent'))->addByController('track', 'index', $this->_('Show tracks'))->addByController('track', 'show-track', $this->_('Show track'))->addByController('track', 'show', $this->_('Show token'))->addCurrentSiblings()->addCurrentChildren(); }