Public Member Functions | |
__construct () | |
getHeaderText () |
Definition at line 34 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 $this->_objectId = 'user_id'; 00040 $this->_controller = 'permissions_user'; 00041 00042 parent::__construct(); 00043 00044 $this->_updateButton('save', 'label', Mage::helper('adminhtml')->__('Save User')); 00045 $this->_updateButton('delete', 'label', Mage::helper('adminhtml')->__('Delete User')); 00046 }
getHeaderText | ( | ) |
Get header text
Reimplemented from Mage_Adminhtml_Block_Widget_Container.
Definition at line 48 of file Edit.php.
00049 { 00050 if (Mage::registry('permissions_user')->getId()) { 00051 return Mage::helper('adminhtml')->__("Edit User '%s'", $this->htmlEscape(Mage::registry('permissions_user')->getUsername())); 00052 } 00053 else { 00054 return Mage::helper('adminhtml')->__('New User'); 00055 } 00056 }