Public Member Functions | |
__construct () | |
getStoreSwitcherHtml () | |
getGridHtml () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 35 of file Downloads.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 Mage_Adminhtml_Block_Widget_Grid_Container.
Definition at line 37 of file Downloads.php.
00038 { 00039 $this->_controller = 'report_product_downloads'; 00040 $this->_headerText = Mage::helper('reports')->__('Downloads'); 00041 parent::__construct(); 00042 $this->_removeButton('add'); 00043 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Container.
Definition at line 45 of file Downloads.php.
00046 { 00047 $this->setChild('store_switcher', 00048 $this->getLayout()->createBlock('adminhtml/store_switcher') 00049 ->setUseConfirm(false) 00050 ->setSwitchUrl($this->getUrl('*/*/*', array('store'=>null))) 00051 ->setTemplate('report/store/switcher.phtml') 00052 ); 00053 return parent::_prepareLayout(); 00054 }
getGridHtml | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Container.
Definition at line 64 of file Downloads.php.
00065 { 00066 return $this->getStoreSwitcherHtml() . parent::getGridHtml(); 00067 }
getStoreSwitcherHtml | ( | ) |
Definition at line 56 of file Downloads.php.
00057 { 00058 if (!Mage::app()->isSingleStoreMode()) { 00059 return $this->getChildHtml('store_switcher'); 00060 } 00061 return ''; 00062 }