Public Member Functions | |
__construct () | |
getAddNewButtonHtml () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 35 of file Store.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 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 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
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 }