Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 35 of file Diagrams.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 Varien_Object.
Definition at line 37 of file Diagrams.php.
00038 { 00039 parent::__construct(); 00040 $this->setId('diagram_tab'); 00041 $this->setDestElementId('diagram_tab_content'); 00042 $this->setTemplate('widget/tabshoriz.phtml'); 00043 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 45 of file Diagrams.php.
00046 { 00047 $this->addTab('orders', array( 00048 'label' => $this->__('Orders'), 00049 'content' => $this->getLayout()->createBlock('adminhtml/dashboard_tab_orders')->toHtml(), 00050 'active' => true 00051 )); 00052 00053 $this->addTab('amounts', array( 00054 'label' => $this->__('Amounts'), 00055 'content' => $this->getLayout()->createBlock('adminhtml/dashboard_tab_amounts')->toHtml(), 00056 )); 00057 return parent::_prepareLayout(); 00058 }