Public Member Functions | |
__construct () | |
getHeaderText () |
Definition at line 35 of file Edit.php.
__construct | ( | ) |
Init class
Reimplemented from Mage_Adminhtml_Block_Widget_Form_Container.
Definition at line 41 of file Edit.php.
00042 { 00043 $this->_objectId = 'rule'; 00044 $this->_controller = 'tax_rule'; 00045 00046 parent::__construct(); 00047 00048 $this->_updateButton('save', 'label', Mage::helper('tax')->__('Save Rule')); 00049 $this->_updateButton('delete', 'label', Mage::helper('tax')->__('Delete Rule')); 00050 }
getHeaderText | ( | ) |
Get Header text
Reimplemented from Mage_Adminhtml_Block_Widget_Container.
Definition at line 57 of file Edit.php.
00058 { 00059 if (Mage::registry('tax_rule')->getId()) { 00060 return Mage::helper('tax')->__("Edit Rule"); 00061 } 00062 else { 00063 return Mage::helper('tax')->__('New Rule'); 00064 } 00065 }