Mage_Adminhtml_Block_Dashboard_Grids Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Dashboard_Grids:

Mage_Adminhtml_Block_Widget_Tabs Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Grids.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 Varien_Object.

Definition at line 37 of file Grids.php.

00038     {
00039         parent::__construct();
00040         $this->setId('grid_tab');
00041         $this->setDestElementId('grid_tab_content');
00042         $this->setTemplate('widget/tabshoriz.phtml');
00043     }


Member Function Documentation

_prepareLayout (  )  [protected]

Prepare layout for dashboard bottom tabs

To load block statically: 1) content must be generated 2) url should not be specified 3) class should not be 'ajax' To load with ajax: 1) do not load content 2) specify url (BE CAREFUL) 3) specify class 'ajax'

Returns:
Mage_Adminhtml_Block_Dashboard_Grids

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 59 of file Grids.php.

00060     {
00061         // load this active tab statically
00062         $this->addTab('reviewed_products', array(
00063             'label'     => $this->__('Bestsellers'),
00064             'content'   => $this->getLayout()->createBlock('adminhtml/dashboard_tab_products_ordered')->toHtml(),
00065             'active'    => true
00066         ));
00067 
00068         // load other tabs with ajax
00069         $this->addTab('ordered_products', array(
00070             'label'     => $this->__('Most Viewed Products'),
00071             'url'       => $this->getUrl('*/*/productsViewed', array('_current'=>true)),
00072             'class'     => 'ajax'
00073         ));
00074 
00075         $this->addTab('new_customers', array(
00076             'label'     => $this->__('New Customers'),
00077             'url'       => $this->getUrl('*/*/customersNewest', array('_current'=>true)),
00078             'class'     => 'ajax'
00079         ));
00080 
00081         $this->addTab('customers', array(
00082             'label'     => $this->__('Customers'),
00083             'url'       => $this->getUrl('*/*/customersMost', array('_current'=>true)),
00084             'class'     => 'ajax'
00085         ));
00086 
00087         return parent::_prepareLayout();
00088     }


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

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