Mage_Admin_Model_Mysql4_Role_Collection Class Reference

Inheritance diagram for Mage_Admin_Model_Mysql4_Role_Collection:

Mage_Core_Model_Mysql4_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 setUserFilter ($userId)
 setRolesFilter ()

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 27 of file Collection.php.


Member Function Documentation

_construct (  )  [protected]

Initialization here

Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.

Definition at line 29 of file Collection.php.

00030     {
00031         $this->_init('admin/role');
00032     }

setRolesFilter (  ) 

Definition at line 47 of file Collection.php.

00048     {
00049         $this->addFieldToFilter('role_type', 'G');
00050         return $this;
00051     }

setUserFilter ( userId  ) 

Enter description here...

Parameters:
int $userId
Returns:
Mage_Admin_Model_Mysql4_Role_Collection

Definition at line 40 of file Collection.php.

00041     {
00042         $this->addFieldToFilter('user_id', $userId);
00043         $this->addFieldToFilter('role_type', 'G');
00044         return $this;
00045     }


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

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