Mage_Adminhtml_Block_System_Store_Store Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Store_Store:

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 ()
 getAddNewButtonHtml ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Store.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 Store.php.

00038     {
00039         $this->_controller  = 'system_store';
00040         $this->_headerText  = Mage::helper('adminhtml')->__('Manage Stores');
00041         parent::__construct();
00042     }


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 44 of file Store.php.

00045     {
00046         /* Update default add button to add website button */
00047         $this->_updateButton('add', 'label', Mage::helper('core')->__('Create Website'));
00048         $this->_updateButton('add', 'onclick', "setLocation('".$this->getUrl('*/*/newWebsite')."')");
00049 
00050         /* Add Store Group button */
00051         $this->_addButton('add_group', array(
00052             'label'     => Mage::helper('core')->__('Create Store'),
00053             'onclick'   => 'setLocation(\'' . $this->getUrl('*/*/newGroup') .'\')',
00054             'class'     => 'add',
00055         ));
00056 
00057         /* Add Store button */
00058         $this->_addButton('add_store', array(
00059             'label'     => Mage::helper('core')->__('Create Store View'),
00060             'onclick'   => 'setLocation(\'' . $this->getUrl('*/*/newStore') .'\')',
00061             'class'     => 'add',
00062         ));
00063 
00064         return parent::_prepareLayout();
00065     }

getAddNewButtonHtml (  ) 

Definition at line 67 of file Store.php.

00068     {
00069         return join(' ', array(
00070             $this->getChildHtml('add_new_website'),
00071             $this->getChildHtml('add_new_group'),
00072             $this->getChildHtml('add_new_store')
00073         ));
00074     }


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

Generated on Sat Jul 4 17:23:04 2009 for Magento by  doxygen 1.5.8