Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 27 of file Editroles.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 29 of file Editroles.php.
00030 { 00031 parent::__construct(); 00032 $this->setId('role_info_tabs'); 00033 $this->setDestElementId('role_edit_form'); 00034 $this->setTitle(Mage::helper('adminhtml')->__('Role Information')); 00035 }
_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 37 of file Editroles.php.
00038 { 00039 $role = Mage::registry('current_role'); 00040 00041 $this->addTab('info', $this->getLayout()->createBlock('adminhtml/permissions_tab_roleinfo')->setRole($role)->setActive(true)); 00042 $this->addTab('account', $this->getLayout()->createBlock('adminhtml/permissions_tab_rolesedit', 'adminhtml.permissions.tab.rolesedit')); 00043 00044 if ($role->getId()) { 00045 $this->addTab('roles', array( 00046 'label' => Mage::helper('adminhtml')->__('Role Users'), 00047 'title' => Mage::helper('adminhtml')->__('Role Users'), 00048 'content' => $this->getLayout()->createBlock('adminhtml/permissions_tab_rolesusers', 'role.users.grid')->toHtml(), 00049 )); 00050 } 00051 00052 return parent::_prepareLayout(); 00053 }