Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareLayout () | |
_getGridHtml () | |
_getJsObjectName () |
Definition at line 27 of file Rolesusers.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 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 }
_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
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 }