Mage_Adminhtml_Block_Backup Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Backup:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getCreateButtonHtml ()
 getGridHtml ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Backup.php.


Constructor & Destructor Documentation

__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 Varien_Object.

Definition at line 37 of file Backup.php.

00038     {
00039         parent::__construct();
00040         $this->setTemplate('backup/list.phtml');
00041     }


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 43 of file Backup.php.

00044     {
00045         parent::_prepareLayout();
00046         $this->setChild('createButton',
00047             $this->getLayout()->createBlock('adminhtml/widget_button')
00048                 ->setData(array(
00049                     'label' => Mage::helper('backup')->__('Create Backup'),
00050                     'onclick' => "window.location.href='" . $this->getUrl('*/*/create') . "'",
00051                     'class'  => 'task'
00052                 ))
00053         );
00054         $this->setChild('backupsGrid',
00055             $this->getLayout()->createBlock('adminhtml/backup_grid')
00056         );
00057     }

getCreateButtonHtml (  ) 

Definition at line 59 of file Backup.php.

00060     {
00061         return $this->getChildHtml('createButton');
00062     }

getGridHtml (  ) 

Definition at line 64 of file Backup.php.

00065     {
00066         return $this->getChildHtml('backupsGrid');
00067     }


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

Generated on Sat Jul 4 17:22:42 2009 for Magento by  doxygen 1.5.8