Mage_Adminhtml_Block_Report_Product_Downloads Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Report_Product_Downloads:

Mage_Adminhtml_Block_Widget_Grid_Container Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getStoreSwitcherHtml ()
 getGridHtml ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Downloads.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 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     }


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_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     }


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

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