Mage_Adminhtml_Block_Poll_Edit Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Poll_Edit:

Mage_Adminhtml_Block_Widget_Form_Container Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getHeaderText ()


Detailed Description

Definition at line 35 of file Edit.php.


Constructor & Destructor Documentation

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


Member Function Documentation

getHeaderText (  ) 

Get header text

Returns:
string

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     }


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

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