Mage_Adminhtml_Block_Permissions_Editroles Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Permissions_Editroles:

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 27 of file Editroles.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 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     }


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_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     }


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

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