Mage_Adminhtml_Block_Report_Tag_Popular Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Report_Tag_Popular:

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 34 of file Popular.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 Popular.php.

00038     {
00039         $this->_controller = 'report_tag_popular';
00040         $this->_headerText = Mage::helper('reports')->__('Popular Tags');
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 Popular.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 Popular.php.

00066     {
00067         return $this->getStoreSwitcherHtml() . parent::getGridHtml();
00068     }

getStoreSwitcherHtml (  ) 

Definition at line 57 of file Popular.php.

00058     {
00059         if (Mage::app()->isSingleStoreMode()) {
00060             return '';
00061         }
00062         return $this->getChildHtml('store_switcher');
00063     }


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

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