

Public Member Functions | |
| Role ($idR) | |
| & | _GetAllPermissions () |
| _NumUsers ($idR) | |
| GetId () | |
| GetName () | |
| SetName ($name) | |
| Commit () | |
| GetPermissions ($idM) | |
| HasPermission ($name, $idM) | |
| AddPermission ($name, $idM) | |
| RemovePermission ($name, $idM) | |
| & | Create ($name) |
| Remove ($idR) | |
| GetAllRolesId () | |
Public Attributes | |
| $data | |
| Stores an array with all DB fields for a specific role. | |
| $perms | |
| Array with all permissions this role has (indexed by idM). | |
Definition at line 14 of file Role.class.php.
|
|
Class constructor. Creates a role object given its id.
Definition at line 26 of file Role.class.php. Referenced by Create(). |
|
|
Gets an array with all permissions this role has.
Definition at line 52 of file Role.class.php. |
|
|
Static method that gets the number of users with this role in any group.
Definition at line 81 of file Role.class.php. Referenced by Remove(). |
|
||||||||||||
|
Adds a new permission to this role.
Definition at line 178 of file Role.class.php. References $module, Modules::GetInstance(), and JSystem::IsError(). |
|
|
Stores all changes in the DB Definition at line 127 of file Role.class.php. |
|
|
Static method that adds a new role in the system.
Definition at line 244 of file Role.class.php. References JSystem::GetLastError(), JSystem::IsError(), and Role(). Referenced by JUgrSystem::AddRole(). |
|
|
Gets a DBJames object with all the identifiers of the roles.
Definition at line 302 of file Role.class.php. Referenced by JUgrSystem::_RefreshRoles(). |
|
|
Gets the role identifier.
Definition at line 98 of file Role.class.php. |
|
|
Gets the name of the role.
Definition at line 107 of file Role.class.php. |
|
|
Gets an array with al permissions for a module.
Definition at line 143 of file Role.class.php. References JBaseObject::RaiseError(). |
|
||||||||||||
|
Checks if the role has a permission for a module.
Definition at line 161 of file Role.class.php. References JBaseObject::RaiseError(). |
|
|
Static method that removes a role from the system.
Definition at line 268 of file Role.class.php. References _NumUsers(), JSystem::IsError(), and JBaseObject::RaiseError(). Referenced by JUgrSystem::RemoveRole(). |
|
||||||||||||
|
Removes a permission from the role.
Definition at line 211 of file Role.class.php. References $module, Modules::GetInstance(), and JSystem::IsError(). |
|
|
Sets the name of the role. The changes will not be stored in the DB until the Commit method is executed.
Definition at line 119 of file Role.class.php. |
|
|
Stores an array with all DB fields for a specific role.
Definition at line 16 of file Role.class.php. |
|
|
Array with all permissions this role has (indexed by idM).
Definition at line 17 of file Role.class.php. |
1.3.4