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 36 of file Tabs.php.
00037 { 00038 parent::__construct(); 00039 $this->setId('convert_profile_tabs'); 00040 $this->setDestElementId('edit_form'); 00041 $this->setTitle(Mage::helper('adminhtml')->__('Import/Export Profile')); 00042 }
_beforeToHtml | ( | ) | [protected] |
Before rendering html, but after trying to load cache
Reimplemented from Mage_Adminhtml_Block_Widget_Tabs.
Definition at line 44 of file Tabs.php.
00045 { 00046 $new = !Mage::registry('current_convert_profile')->getId(); 00047 00048 $this->addTab('edit', array( 00049 'label' => Mage::helper('adminhtml')->__('Profile Actions XML'), 00050 'content' => $this->getLayout()->createBlock('adminhtml/system_convert_profile_edit_tab_edit')->initForm()->toHtml(), 00051 'active' => true, 00052 )); 00053 00054 if (!$new) { 00055 $this->addTab('run', array( 00056 'label' => Mage::helper('adminhtml')->__('Run Profile'), 00057 'content' => $this->getLayout()->createBlock('adminhtml/system_convert_profile_edit_tab_run')->toHtml(), 00058 )); 00059 00060 $this->addTab('history', array( 00061 'label' => Mage::helper('adminhtml')->__('Profile History'), 00062 'content' => $this->getLayout()->createBlock('adminhtml/system_convert_profile_edit_tab_history')->toHtml(), 00063 )); 00064 } 00065 00066 return parent::_beforeToHtml(); 00067 }