Public Member Functions | |
__construct () | |
getCategory () | |
_prepareLayout () |
Definition at line 26 of file Design.php.
__construct | ( | ) |
Class constructor
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 28 of file Design.php.
00029 { 00030 parent::__construct(); 00031 $this->setShowGlobalIcon(true); 00032 }
_prepareLayout | ( | ) |
Prepare block children and data
Reimplemented from Mage_Adminhtml_Block_Catalog_Form.
Definition at line 42 of file Design.php.
00043 { 00044 parent::_prepareLayout(); 00045 $form = new Varien_Data_Form(); 00046 $form->setDataObject($this->getCategory()); 00047 00048 $fieldset = $form->addFieldset('base_fieldset', array('legend'=>Mage::helper('catalog')->__('Custom Design'))); 00049 00050 00051 $this->_setFieldset($this->getCategory()->getDesignAttributes(), $fieldset); 00052 00053 $form->addValues($this->getCategory()->getData()); 00054 $form->setFieldNameSuffix('general'); 00055 $this->setForm($form); 00056 }
getCategory | ( | ) |
Definition at line 34 of file Design.php.
00035 { 00036 if (!$this->_category) { 00037 $this->_category = Mage::registry('category'); 00038 } 00039 return $this->_category; 00040 }