Public Member Functions | |
__construct () | |
Protected Member Functions | |
_beforeToHtml () |
Definition at line 34 of file Tabs.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 Varien_Object.
Definition at line 37 of file Tabs.php.
00038 { 00039 parent::__construct(); 00040 $this->setId('product_attribute_tabs'); 00041 $this->setDestElementId('edit_form'); 00042 $this->setTitle(Mage::helper('catalog')->__('Attribute Information')); 00043 }
_beforeToHtml | ( | ) | [protected] |
Before rendering html, but after trying to load cache
Reimplemented from Mage_Adminhtml_Block_Widget_Tabs.
Definition at line 45 of file Tabs.php.
00046 { 00047 $this->addTab('main', array( 00048 'label' => Mage::helper('catalog')->__('Properties'), 00049 'title' => Mage::helper('catalog')->__('Properties'), 00050 'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_attribute_edit_tab_main')->toHtml(), 00051 'active' => true 00052 )); 00053 00054 $model = Mage::registry('entity_attribute'); 00055 00056 $this->addTab('labels', array( 00057 'label' => Mage::helper('catalog')->__('Manage Label / Options'), 00058 'title' => Mage::helper('catalog')->__('Manage Label / Options'), 00059 'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_attribute_edit_tab_options')->toHtml(), 00060 )); 00061 00062 /*if ('select' == $model->getFrontendInput()) { 00063 $this->addTab('options_section', array( 00064 'label' => Mage::helper('catalog')->__('Options Control'), 00065 'title' => Mage::helper('catalog')->__('Options Control'), 00066 'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_attribute_edit_tab_options')->toHtml(), 00067 )); 00068 }*/ 00069 00070 return parent::_beforeToHtml(); 00071 }