Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 34 of file Edit.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Mage_Adminhtml_Block_Widget_Form_Container.
Definition at line 36 of file Edit.php.
00037 { 00038 $this->_objectId = 'entity_id'; 00039 $this->_controller = 'catalog_category'; 00040 $this->_mode = 'edit'; 00041 00042 parent::__construct(); 00043 $this->setTemplate('catalog/category/edit.phtml'); 00044 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Adminhtml_Block_Widget_Form_Container.
Definition at line 46 of file Edit.php.
00047 { 00048 $category = Mage::registry('current_category'); 00049 if (Mage::app()->getConfig()->getModuleConfig('Mage_GoogleOptimizer')->is('active', true) 00050 && Mage::helper('googleoptimizer')->isOptimizerActive($category->getStoreId())) { 00051 $this->setChild('googleoptimizer_js', 00052 $this->getLayout()->createBlock('googleoptimizer/js')->setTemplate('googleoptimizer/js.phtml') 00053 ); 00054 } 00055 return parent::_prepareLayout(); 00056 }