Public Member Functions | |
__construct () | |
getHeaderText () | |
setStoreTypeTitle ($title) | |
setBackUrl ($url) |
Definition at line 35 of file Delete.php.
__construct | ( | ) |
Class constructor
Reimplemented from Mage_Adminhtml_Block_Widget_Form_Container.
Definition at line 42 of file Delete.php.
00043 { 00044 $this->_objectId = 'item_id'; 00045 $this->_mode = 'delete'; 00046 $this->_controller = 'system_store'; 00047 00048 parent::__construct(); 00049 00050 $this->_removeButton('save'); 00051 $this->_removeButton('reset'); 00052 00053 $this->_updateButton('delete', 'area', 'footer'); 00054 $this->_updateButton('delete', 'onclick', 'editForm.submit();'); 00055 00056 $this->_addButton('cancel', array( 00057 'label' => Mage::helper('adminhtml')->__('Cancel'), 00058 'onclick' => 'setLocation(\'' . $this->getBackUrl() . '\')', 00059 ), 2, 100, 'footer'); 00060 00061 }
getHeaderText | ( | ) |
Get edit form container header text
Reimplemented from Mage_Adminhtml_Block_Widget_Container.
Definition at line 68 of file Delete.php.
00069 { 00070 return Mage::helper('adminhtml')->__("Delete %s '%s'", $this->getStoreTypeTitle(), 00071 $this->htmlEscape($this->getChild('form')->getDataObject()->getName())); 00072 }
setBackUrl | ( | $ | url | ) |
Set back URL for "Cancel" and "Back" buttons
string | $url |
Definition at line 92 of file Delete.php.
00093 { 00094 $this->setData('back_url', $url); 00095 $this->_updateButton('cancel', 'onclick', "setLocation('" . $url . "')"); 00096 $this->_updateButton('back', 'onclick', "setLocation('" . $url . "')"); 00097 return $this; 00098 }
setStoreTypeTitle | ( | $ | title | ) |
Set store type title
string | $title |
Definition at line 80 of file Delete.php.
00081 { 00082 $this->_updateButton('delete', 'label', Mage::helper('adminhtml')->__('Delete %s', $title)); 00083 return $this->setData('store_type_title', $title); 00084 }