Public Member Functions | |
Group ($idG) | |
_UpdateModulesList () | |
GetId () | |
GetName () | |
IsGlobal () | |
SetGlobal () | |
& | GetParent () |
SetName ($name) | |
Commit () | |
& | GetUsers () |
HasUser ($idU) | |
& | GetUsersWithPermission ($permission, $mod) |
AddUser ($idU, $idR) | |
RemoveUser ($idU) | |
& | GetModules () |
HasModule ($idM) | |
GetModuleName ($idRmg) | |
SetModuleName ($idRmg, $name) | |
AddModule ($idM, $name="") | |
RemoveModule ($idRMG) | |
& | GetSubgroups () |
& | GetSubgroupsOfUser ($idU) |
& | AddSubgroup ($name) |
& | Create ($name, $global=false, $parent=null) |
Remove ($idG) | |
GetAllGroupsId ($parent=null, $global=null) | |
Public Attributes | |
$data | |
Stores an array with all DB fields for a specific group. | |
$modules | |
Stores an array with the modules of the group. |
Definition at line 13 of file Group.class.php.
|
Class constructor. Creates a group object given its id.
Definition at line 25 of file Group.class.php. Referenced by Create(). |
|
Updates the list of modules that belongs to this group. Definition at line 49 of file Group.class.php. |
|
Adds a module to this group.
Definition at line 403 of file Group.class.php. References $module, $modules, Modules::GetInstance(), JSystem::IsError(), I18N::Language(), and JBaseObject::RaiseError(). |
|
Adds a new subgroup to the current group.
Definition at line 535 of file Group.class.php. |
|
Adds a user to this group.
Definition at line 236 of file Group.class.php. References JUgrSystem::GetInstance(), JSystem::IsError(), and JBaseObject::RaiseError(). |
|
Stores all changes in the DB Definition at line 132 of file Group.class.php. |
|
Static method that adds a new group in the system.
Definition at line 551 of file Group.class.php. References JUgrSystem::GetInstance(), JSystem::GetLastError(), Group(), JSystem::IsError(), and JBaseObject::RaiseError(). Referenced by JUgrSystem::AddGroup(). |
|
Gets a DBJames object with all the identifiers of the groups.
Definition at line 636 of file Group.class.php. Referenced by JUgrSystem::_RefreshGroups(), and JUgrSystem::GetGroups(). |
|
Gets the group identifier.
Definition at line 76 of file Group.class.php. |
|
Gets the name of the module in the group given its idRmg
Definition at line 357 of file Group.class.php. |
|
Gets an array with all modules availables for this group. The array is indexed by idRMG, that is the value that identifies a module in a group (it is possible to have the same module twice or more times in the same group).
Definition at line 305 of file Group.class.php. References $modules, Modules::GetInstance(), and JBaseObject::RaiseError(). |
|
Gets the name of the group.
Definition at line 85 of file Group.class.php. |
|
Gets the parent group.
Definition at line 111 of file Group.class.php. References JUgrSystem::GetInstance(). |
|
Gets an array with all subgroups of this group.
Definition at line 466 of file Group.class.php. References JUgrSystem::GetInstance(), and JBaseObject::RaiseError(). |
|
Gets an array with all subgroups of this group that a certain user belongs to.
Definition at line 499 of file Group.class.php. References JUgrSystem::GetInstance(), and JBaseObject::RaiseError(). |
|
Gets a DBJames object with all users in the group.
Definition at line 160 of file Group.class.php. References JBaseObject::RaiseError(). |
|
Gets a DBJames object with all users in the group that has a certain permission for a module.
Definition at line 208 of file Group.class.php. References JBaseObject::RaiseError(). |
|
Checks whether a module is in a group or not.
Definition at line 330 of file Group.class.php. References JBaseObject::RaiseError(). |
|
Checks if an user belongs to this group.
Definition at line 183 of file Group.class.php. |
|
Gets whether the group is global or not
Definition at line 94 of file Group.class.php. |
|
Static method that removes a group from the system.
Definition at line 593 of file Group.class.php. References JUgrSystem::GetInstance(), JSystem::IsError(), and JBaseObject::RaiseError(). Referenced by JUgrSystem::RemoveGroup(). |
|
Removes a module from the group.
Definition at line 447 of file Group.class.php. |
|
Removes the specified user from the group.
Definition at line 275 of file Group.class.php. References JBaseObject::RaiseError(). |
|
Sets a group as global Definition at line 102 of file Group.class.php. |
|
Sets the name of the module in the group given its idRmg
Definition at line 367 of file Group.class.php. References $module, $modules, Modules::GetInstance(), and I18N::Language(). |
|
Sets the name of the group. The changes will not be stored in the DB until the Commit method is executed.
Definition at line 124 of file Group.class.php. |
|
Stores an array with all DB fields for a specific group.
Definition at line 15 of file Group.class.php. |
|
Stores an array with the modules of the group.
Definition at line 16 of file Group.class.php. Referenced by AddModule(), GetModules(), and SetModuleName(). |