public function getButtonsHtml($area = null) { /* @var $pageHelper Mana_Admin_Helper_Page */ $pageHelper = Mage::helper('mana_admin/page'); return $pageHelper->getActionHtml($this) . parent::getButtonsHtml($area); }
/** * Get container buttons HTML * * Since buttons are set as children, we remove them as children after generating them * not to duplicate them in future * * @return string */ public function getButtonsHtml($area = null) { if (null === $this->_buttonsHtml) { $this->_buttonsHtml = parent::getButtonsHtml(); foreach ($this->_children as $alias => $child) { if (false !== strpos($alias, '_button')) { $this->unsetChild($alias); } } } return $this->_buttonsHtml; }
/** * Get container buttons HTML * * Since buttons are set as children, we remove them as children after generating them * not to duplicate them in future * * @param null $area * @return string * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getButtonsHtml($area = null) { if (null === $this->_buttonsHtml) { $this->_buttonsHtml = parent::getButtonsHtml(); $layout = $this->getLayout(); foreach ($this->getChildNames() as $name) { $alias = $layout->getElementAlias($name); if (false !== strpos($alias, '_button')) { $layout->unsetChild($this->getNameInLayout(), $alias); } } } return $this->_buttonsHtml; }