Public Member Functions | |
__construct () | |
getHeaderText () |
Definition at line 35 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 38 of file Edit.php.
00039 { 00040 $this->_objectId = 'id'; 00041 $this->_controller = 'catalog_search'; 00042 00043 parent::__construct(); 00044 00045 $this->_updateButton('save', 'label', Mage::helper('catalog')->__('Save Search')); 00046 $this->_updateButton('delete', 'label', Mage::helper('catalog')->__('Delete Search')); 00047 }
getHeaderText | ( | ) |
Get header text
Reimplemented from Mage_Adminhtml_Block_Widget_Container.
Definition at line 49 of file Edit.php.
00050 { 00051 if (Mage::registry('current_catalog_search')->getId()) { 00052 return Mage::helper('catalog')->__("Edit Search '%s'", $this->htmlEscape(Mage::registry('current_catalog_search')->getQueryText())); 00053 } 00054 else { 00055 return Mage::helper('catalog')->__('New Search'); 00056 } 00057 }