Mage_Adminhtml_Block_Catalog_Category_Tab_Design Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Catalog_Category_Tab_Design:

Mage_Adminhtml_Block_Catalog_Form Mage_Adminhtml_Block_Widget_Form Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getCategory ()
 _prepareLayout ()


Detailed Description

Definition at line 26 of file Design.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

_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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:42 2009 for Magento by  doxygen 1.5.8