Mage_Adminhtml_Block_System_Store_Delete Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Store_Delete:

Mage_Adminhtml_Block_Widget_Form_Container Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getHeaderText ()
 setStoreTypeTitle ($title)
 setBackUrl ($url)


Detailed Description

Definition at line 35 of file Delete.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

getHeaderText (  ) 

Get edit form container header text

Returns:
string

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

Parameters:
string $url
Returns:
Mage_Adminhtml_Block_System_Store_Delete

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

Parameters:
string $title
Returns:
Mage_Adminhtml_Block_System_Store_Delete

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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:04 2009 for Magento by  doxygen 1.5.8