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('poll_tabs'); 00041 $this->setDestElementId('edit_form'); 00042 $this->setTitle(Mage::helper('poll')->__('Poll 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('form_section', array( 00048 'label' => Mage::helper('poll')->__('Poll Information'), 00049 'title' => Mage::helper('poll')->__('Poll Information'), 00050 'content' => $this->getLayout()->createBlock('adminhtml/poll_edit_tab_form')->toHtml(), 00051 )) 00052 ; 00053 00054 $this->addTab('answers_section', array( 00055 'label' => Mage::helper('poll')->__('Poll Answers'), 00056 'title' => Mage::helper('poll')->__('Poll Answers'), 00057 'content' => $this->getLayout()->createBlock('adminhtml/poll_edit_tab_answers') 00058 ->append($this->getLayout()->createBlock('adminhtml/poll_edit_tab_answers_list')) 00059 ->toHtml(), 00060 'active' => ( $this->getRequest()->getParam('tab') == 'answers_section' ) ? true : false, 00061 )); 00062 return parent::_beforeToHtml(); 00063 }