Public Member Functions | |
__construct () | |
getProfileId () | |
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 36 of file Edit.php.
00037 { 00038 $this->_objectId = 'id'; 00039 $this->_controller = 'system_convert_profile'; 00040 00041 parent::__construct(); 00042 00043 $this->_updateButton('save', 'label', Mage::helper('adminhtml')->__('Save Profile')); 00044 $this->_updateButton('delete', 'label', Mage::helper('adminhtml')->__('Delete Profile')); 00045 $this->_addButton('savecontinue', array( 00046 'label' => Mage::helper('adminhtml')->__('Save and Continue Editing'), 00047 'onclick' => "$('edit_form').action += 'continue/true/'; editForm.submit();", 00048 'class' => 'save', 00049 ), -1); 00050 00051 }
getHeaderText | ( | ) |
Get header text
Reimplemented from Mage_Adminhtml_Block_Widget_Container.
Definition at line 58 of file Edit.php.
00059 { 00060 if (Mage::registry('current_convert_profile')->getId()) { 00061 return $this->htmlEscape(Mage::registry('current_convert_profile')->getName()); 00062 } 00063 else { 00064 return Mage::helper('adminhtml')->__('New Profile'); 00065 } 00066 }
getProfileId | ( | ) |
Definition at line 53 of file Edit.php.
00054 { 00055 return Mage::registry('current_convert_profile')->getId(); 00056 }