Mage_Adminhtml_Block_System_Store_Delete_Website Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Store_Delete_Website:

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 34 of file Website.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 Website.php.

00038     {
00039         $itemId = $this->getRequest()->getParam('website_id');
00040 
00041         $this->setTemplate('system/store/delete_website.phtml');
00042         $this->setAction($this->getUrl('*/*/deleteWebsitePost', array('website_id'=>$itemId)));
00043         $this->setChild('confirm_deletion_button',
00044             $this->getLayout()->createBlock('adminhtml/widget_button')
00045                 ->setData(array(
00046                     'label'     => Mage::helper('core')->__('Delete Website'),
00047                     'onclick'   => "deleteForm.submit()",
00048                     'class'     => 'cancel'
00049                 ))
00050         );
00051         $onClick = "setLocation('".$this->getUrl('*/*/editWebsite', array('website_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