Public Member Functions | |
__construct () | |
getCreateButtonHtml () | |
getGridHtml () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 35 of file Backup.php.
__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 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
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 }