Mage_Adminhtml_Block_Permissions_Tab_Rolesusers Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Permissions_Tab_Rolesusers:

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 ()
 _getGridHtml ()
 _getJsObjectName ()


Detailed Description

Definition at line 27 of file Rolesusers.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 Rolesusers.php.

00030     {
00031         parent::__construct();
00032 
00033         $roleId = $this->getRequest()->getParam('rid', false);
00034 
00035         $users = Mage::getModel("admin/user")->getCollection()->load();
00036         $this->setTemplate('permissions/rolesusers.phtml')
00037             ->assign('users', $users->getItems())
00038             ->assign('roleId', $roleId);
00039     }


Member Function Documentation

_getGridHtml (  )  [protected]

Definition at line 47 of file Rolesusers.php.

00048     {
00049         return $this->getChildHtml('userGrid');
00050     }

_getJsObjectName (  )  [protected]

Definition at line 52 of file Rolesusers.php.

00053     {
00054         return $this->getChild('userGrid')->getJsObjectName();
00055     }

_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 41 of file Rolesusers.php.

00042     {
00043         $this->setChild('userGrid', $this->getLayout()->createBlock('adminhtml/permissions_role_grid_user', 'roleUsersGrid'));
00044         return parent::_prepareLayout();
00045     }


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