Public Member Functions | |
__construct () | |
getStoreSwitcherHtml () | |
getGridHtml () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 34 of file Abandoned.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 Abandoned.php.
00038 { 00039 $this->_controller = 'report_shopcart_abandoned'; 00040 $this->_headerText = Mage::helper('reports')->__('Abandoned carts'); 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 Abandoned.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 00054 return parent::_prepareLayout(); 00055 }
getGridHtml | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Container.
Definition at line 65 of file Abandoned.php.
00066 { 00067 return $this->getStoreSwitcherHtml() . parent::getGridHtml(); 00068 }
getStoreSwitcherHtml | ( | ) |
Definition at line 57 of file Abandoned.php.
00058 { 00059 if (Mage::app()->isSingleStoreMode()) { 00060 return ''; 00061 } 00062 return $this->getChildHtml('store_switcher'); 00063 }