Esempio n. 1
0
 /**
  * Define active menu item in menu block
  *
  * @param $menuPath
  * @return Mage_Adminhtml_Controller_Action
  */
 protected function _setActiveMenu($menuPath)
 {
     parent::_setActiveMenu($menuPath);
     if (method_exists($this, '_title')) {
         try {
             $labels = array();
             $parts = explode("/", $menuPath);
             /** @var $menu Mage_Adminhtml_Block_Page_Menu */
             $menu = $this->getLayout()->getBlock('menu');
             $children = $menu->getMenuArray();
             foreach ($parts as $part) {
                 if ($label = $this->_getPartNameFromChildren($part, $children)) {
                     $labels[] = $label;
                 } else {
                     break;
                 }
             }
             if (count($labels)) {
                 $this->_title();
                 foreach ($labels as $label) {
                     $this->_title($label);
                 }
             }
         } catch (Exception $e) {
             $this->_commonHelper()->getException()->logException($e);
         }
     }
     return $this;
 }
Esempio n. 2
0
 protected function _setActiveMenu($menuPath)
 {
     parent::_setActiveMenu($menuPath);
     /**
      *  Save current report access key for limitaton of Custom Options dialog
      *  @see AW_Advancedreports_Block_Adminhtml_Setup
      */
     Mage::register(AW_Advancedreports_Block_Adminhtml_Setup::DATA_KEY_SECURE_CHECK, $menuPath, true);
     return $this;
 }
Esempio n. 3
0
 protected function _setActiveMenuValue()
 {
     return parent::_setActiveMenu($this->getControllerActiveMenuPath());
 }