*/ class Mage_Adminhtml_Block_Permissions_Variable_Edit extends Mage_Adminhtml_Block_Widget_Form_Container { /** * Construct */ public function __construct() { $this->_objectId = 'variable_id'; $this->_controller = 'permissions_variable'; parent::__construct(); $this->_updateButton('save', 'label', Mage::helper('adminhtml')->__('Save Variable')); $this->_updateButton('delete', 'label', Mage::helper('adminhtml')->__('Delete Variable')); } /** * @return string */ public function getHeaderText() { if (Mage::registry('permissions_variable')->getId()) { return Mage::helper('adminhtml')->__("Edit Variable '%s'", $this->escapeHtml(Mage::registry('permissions_variable')->getVariableName())); } else { return Mage::helper('adminhtml')->__('New Variable'); } } }