Public Member Functions | |
__construct () | |
getHeaderText () |
Definition at line 35 of file Edit.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 Mage_Adminhtml_Block_Widget_Form_Container.
Definition at line 37 of file Edit.php.
00038 { 00039 parent::__construct(); 00040 00041 $this->_objectId = 'id'; 00042 $this->_controller = 'poll'; 00043 00044 $this->_updateButton('save', 'label', Mage::helper('poll')->__('Save Poll')); 00045 $this->_updateButton('delete', 'label', Mage::helper('poll')->__('Delete Poll')); 00046 00047 $this->setValidationUrl($this->getUrl('*/*/validate', array('id' => $this->getRequest()->getParam($this->_objectId)))); 00048 }
getHeaderText | ( | ) |
Get header text
Reimplemented from Mage_Adminhtml_Block_Widget_Container.
Definition at line 50 of file Edit.php.
00051 { 00052 if( Mage::registry('poll_data') && Mage::registry('poll_data')->getId() ) { 00053 return Mage::helper('poll')->__("Edit Poll '%s'", $this->htmlEscape(Mage::registry('poll_data')->getPollTitle())); 00054 } else { 00055 return Mage::helper('poll')->__('New Poll'); 00056 } 00057 }