Mage_Adminhtml_Block_System_Store_Delete_Group Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Store_Delete_Group:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Group.php.


Member Function Documentation

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 37 of file Group.php.

00038     {
00039         $itemId = $this->getRequest()->getParam('group_id');
00040 
00041         $this->setTemplate('system/store/delete_group.phtml');
00042         $this->setAction($this->getUrl('*/*/deleteGroupPost', array('group_id'=>$itemId)));
00043         $this->setChild('confirm_deletion_button',
00044             $this->getLayout()->createBlock('adminhtml/widget_button')
00045                 ->setData(array(
00046                     'label'     => Mage::helper('core')->__('Delete Store'),
00047                     'onclick'   => "deleteForm.submit()",
00048                     'class'     => 'cancel'
00049                 ))
00050         );
00051         $onClick = "setLocation('".$this->getUrl('*/*/editGroup', array('group_id'=>$itemId))."')";
00052         $this->setChild('cancel_button',
00053             $this->getLayout()->createBlock('adminhtml/widget_button')
00054                 ->setData(array(
00055                     'label'     => Mage::helper('core')->__('Cancel'),
00056                     'onclick'   => $onClick,
00057                     'class'     => 'cancel'
00058                 ))
00059         );
00060         $this->setChild('back_button',
00061             $this->getLayout()->createBlock('adminhtml/widget_button')
00062                 ->setData(array(
00063                     'label'     => Mage::helper('core')->__('Back'),
00064                     'onclick'   => $onClick,
00065                     'class'     => 'cancel'
00066                 ))
00067         );
00068         return parent::_prepareLayout();
00069     }


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