Public Member Functions | |
__construct () |
Definition at line 26 of file Usernroles.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 Usernroles.php.
00029 { 00030 parent::__construct(); 00031 $userCollection = Mage::getModel("permissions/users")->getCollection()->load(); 00032 $rolesCollection = Mage::getModel("permissions/roles")->getCollection()->load(); 00033 00034 $this->setTemplate('permissions/usernroles.phtml') 00035 ->assign('users', $userCollection) 00036 ->assign('roles', $rolesCollection); 00037 }