Public Member Functions | |
User ($id) | |
_RefreshGroupsRoles () | |
& | _GetGroupsRoles () |
GetId () | |
GetLogin () | |
IsPassword ($password) | |
& | GetGlobalGroup () |
& | GetGlobalRole () |
_GetGGId () | |
_GetGRId () | |
SetLogin ($name) | |
SetPassword ($password) | |
SetGlobalGroup ($gg) | |
SetGlobalRole ($gr) | |
Commit () | |
GetGroups () | |
& | GetModules () |
& | GetRoles () |
& | GetRole ($idG) |
& | GetActiveRole () |
AddToGroup ($idG, $idR) | |
SetRole ($idG, $idR) | |
RemoveFromGroup ($idG) | |
HasPermission ($name) | |
& | Create ($login, $pass, $globalgroup, $globalrole) |
Remove ($idU) | |
GetAllUsersId () | |
Public Attributes | |
$data | |
Stores all DB fields in an array. | |
$roles | |
Stores the roles and groups of the user. |
Definition at line 16 of file User.class.php.
|
Class constructor. It creates a new User object given an idU.
Definition at line 26 of file User.class.php. Referenced by Create(). |
|
Gets the id of the global group.
Definition at line 170 of file User.class.php. |
|
Gets the id of the global role.
Definition at line 179 of file User.class.php. |
|
Gets a DBJames with the groups the user belongs to.
Definition at line 100 of file User.class.php. |
|
Refreshes the information about groups and roles in the user Definition at line 85 of file User.class.php. |
|
Adds the user to an existent group in the system with the specified role.
Definition at line 365 of file User.class.php. References JUgrSystem::GetInstance(), JSystem::IsError(), and JBaseObject::RaiseError(). |
|
Commits all changes into the DB Definition at line 232 of file User.class.php. |
|
Static method that adds a new user in the DB.
Definition at line 474 of file User.class.php. References JUgrSystem::GetInstance(), JSystem::GetLastError(), JSystem::IsError(), JBaseObject::RaiseError(), and User(). Referenced by JUgrSystem::AddUser(). |
|
Gets the role of the user in the active group
Definition at line 353 of file User.class.php. References JContext::GetInstance(). |
|
Static method that retrieves all users in the system.
Definition at line 547 of file User.class.php. Referenced by JUgrSystem::GetAllUsers(). |
|
Gets the global group of the user.
Definition at line 148 of file User.class.php. References JUgrSystem::GetInstance(). |
|
Gets the global role of the user.
Definition at line 159 of file User.class.php. References JUgrSystem::GetInstance(). |
|
Gets an array with the groups the user belongs to.
Definition at line 250 of file User.class.php. References JUgrSystem::GetInstance(), and JBaseObject::RaiseError(). |
|
Gets the Id of the user
Definition at line 119 of file User.class.php. |
|
Gets the login of the user
Definition at line 128 of file User.class.php. |
|
Gets an array with all the allowed Modules for this user.
Definition at line 277 of file User.class.php. References Modules::GetInstance(), and JBaseObject::RaiseError(). |
|
Gets the role of the user in the group idG.
Definition at line 336 of file User.class.php. References JUgrSystem::GetInstance(), and JBaseObject::RaiseError(). |
|
Gets an array with the roles of the user indexed by idG.
Definition at line 310 of file User.class.php. References JUgrSystem::GetInstance(), and JBaseObject::RaiseError(). |
|
Checks if the user has permission to do an action in the active group and module.
Definition at line 459 of file User.class.php. References $module, and JSystem::GetCurrentModule(). |
|
Checks if it is the user password
Definition at line 139 of file User.class.php. |
|
Static method that removes an user from the DB.
Definition at line 518 of file User.class.php. References JUgrSystem::GetInstance(), JSystem::IsError(), and JBaseObject::RaiseError(). Referenced by JUgrSystem::RemoveUser(). |
|
Removes the user from a group.
Definition at line 434 of file User.class.php. References JUgrSystem::GetInstance(), JSystem::IsError(), and JBaseObject::RaiseError(). |
|
Sets the global group of the user.
Definition at line 208 of file User.class.php. References JBaseObject::RaiseError(). |
|
Sets the global role of the user.
Definition at line 221 of file User.class.php. |
|
Sets the login of the user.
Definition at line 188 of file User.class.php. |
|
Sets the password of the user.
Definition at line 198 of file User.class.php. |
|
Sets the role the user has in a group.
Definition at line 400 of file User.class.php. References JUgrSystem::GetInstance(), JSystem::IsError(), and JBaseObject::RaiseError(). |
|
Stores all DB fields in an array.
Definition at line 18 of file User.class.php. |
|
Stores the roles and groups of the user.
Definition at line 19 of file User.class.php. |