|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilPRGPermissionsHelper:Public Member Functions | |
| __construct (ilAccess $access, ilOrgUnitGlobalSettings $orgu_settings, ilObjectDataCache $data_cache, ilOrgUnitPositionAccess $orgu_access, int $prg_ref_id) | |
| may (string $operation) | |
| mayAnyOf (array $operations) | |
| getUserIdsSusceptibleTo (string $operation) | |
| filterUserIds (array $user_ids, string $operation) | |
| isOrguAccessEnabledGlobally () | |
Data Fields | |
| const | ORGU_OPERATIONS |
| const | ROLEPERM_VIEW = 'rp_visible' |
| const | ROLEPERM_READ = 'rp_read' |
| const | ROLEPERM_WRITE = 'rp_write' |
| const | ROLEPERM_MANAGE_MEMBERS = 'rp_manage_members' |
Protected Member Functions | |
| throwForInvalidOperation (string $operation) | |
| getUserIdsInPrgAccessibleForOperation (string $orgu_operation) | |
| getAllAssignedUserIds () | |
| getProgrammeRefId () | |
Protected Attributes | |
| ilAccess | $access |
| ilOrgUnitGlobalSettings | $orgu_settings |
| ilObjectDataCache | $data_cache |
| ilOrgUnitPositionAccess | $orgu_access |
| int | $prg_ref_id |
| array | $cache = [] |
| array | $user_id_cache |
Private Attributes | |
| const | ROLEMAPPINGS |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Both role and OrgU-based permissions are relevant in many places of the PRG. This is to bundle permission-checks.
Please note that the 'manage_members'-permission granted via global or local roles will include all the ORGU_OPERATIONS listed here and is thus very different from the OrgUnitOperation 'manage_members'.
Definition at line 29 of file ilPRGPermissionsHelper.php.
| ilPRGPermissionsHelper::__construct | ( | ilAccess | $access, |
| ilOrgUnitGlobalSettings | $orgu_settings, | ||
| ilObjectDataCache | $data_cache, | ||
| ilOrgUnitPositionAccess | $orgu_access, | ||
| int | $prg_ref_id | ||
| ) |
Definition at line 65 of file ilPRGPermissionsHelper.php.
References $access, $data_cache, $orgu_access, $orgu_settings, $prg_ref_id, and ILIAS\Repository\access().
Here is the call graph for this function:| ilPRGPermissionsHelper::filterUserIds | ( | array | $user_ids, |
| string | $operation | ||
| ) |
| int[] | $user_ids |
Definition at line 128 of file ilPRGPermissionsHelper.php.
References getProgrammeRefId(), and may().
Here is the call graph for this function:
|
protected |
Definition at line 177 of file ilPRGPermissionsHelper.php.
References ilObjStudyProgramme\getInstanceByRefId(), getProgrammeRefId(), and ROLEPERM_MANAGE_MEMBERS.
Referenced by getUserIdsSusceptibleTo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 186 of file ilPRGPermissionsHelper.php.
References $prg_ref_id.
Referenced by filterUserIds(), getAllAssignedUserIds(), isOrguAccessEnabledGlobally(), and may().
Here is the caller graph for this function:
|
protected |
Definition at line 158 of file ilPRGPermissionsHelper.php.
Referenced by getUserIdsSusceptibleTo().
Here is the caller graph for this function:| ilPRGPermissionsHelper::getUserIdsSusceptibleTo | ( | string | $operation | ) |
Definition at line 111 of file ilPRGPermissionsHelper.php.
References getAllAssignedUserIds(), getUserIdsInPrgAccessibleForOperation(), may(), and throwForInvalidOperation().
Referenced by ilStudyProgrammeUserTable\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPRGPermissionsHelper::isOrguAccessEnabledGlobally | ( | ) |
Definition at line 191 of file ilPRGPermissionsHelper.php.
References getProgrammeRefId().
Here is the call graph for this function:| ilPRGPermissionsHelper::may | ( | string | $operation | ) |
Definition at line 79 of file ilPRGPermissionsHelper.php.
References ILIAS\Repository\access(), getProgrammeRefId(), and throwForInvalidOperation().
Referenced by filterUserIds(), getUserIdsSusceptibleTo(), and mayAnyOf().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPRGPermissionsHelper::mayAnyOf | ( | array | $operations | ) |
| string[] | $operations |
Definition at line 98 of file ilPRGPermissionsHelper.php.
References may().
Referenced by ilStudyProgrammeMembersTableGUI\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 141 of file ilPRGPermissionsHelper.php.
References $valid.
Referenced by getUserIdsSusceptibleTo(), and may().
Here is the caller graph for this function:
|
protected |
Definition at line 53 of file ilPRGPermissionsHelper.php.
Referenced by __construct().
|
protected |
Definition at line 58 of file ilPRGPermissionsHelper.php.
|
protected |
Definition at line 55 of file ilPRGPermissionsHelper.php.
Referenced by __construct().
|
protected |
Definition at line 56 of file ilPRGPermissionsHelper.php.
Referenced by __construct().
|
protected |
Definition at line 54 of file ilPRGPermissionsHelper.php.
Referenced by __construct().
|
protected |
Definition at line 57 of file ilPRGPermissionsHelper.php.
Referenced by __construct(), and getProgrammeRefId().
|
protected |
Definition at line 63 of file ilPRGPermissionsHelper.php.
| const ilPRGPermissionsHelper::ORGU_OPERATIONS |
Definition at line 31 of file ilPRGPermissionsHelper.php.
|
private |
Definition at line 46 of file ilPRGPermissionsHelper.php.
| const ilPRGPermissionsHelper::ROLEPERM_MANAGE_MEMBERS = 'rp_manage_members' |
Definition at line 44 of file ilPRGPermissionsHelper.php.
Referenced by getAllAssignedUserIds().
| const ilPRGPermissionsHelper::ROLEPERM_READ = 'rp_read' |
Definition at line 40 of file ilPRGPermissionsHelper.php.
Referenced by ilObjStudyProgrammeGUI\addToNavigationHistory(), ilObjStudyProgrammeGUI\executeCommand(), ilObjStudyProgrammeGUI\getSubTabs(), ilObjStudyProgrammeGUI\getTabs(), and ilObjStudyProgrammeGUI\view().
| const ilPRGPermissionsHelper::ROLEPERM_VIEW = 'rp_visible' |
Definition at line 39 of file ilPRGPermissionsHelper.php.
Referenced by ilObjStudyProgrammeGUI\denyAccessIfNotAnyOf(), and ilObjStudyProgrammeGUI\executeCommand().
| const ilPRGPermissionsHelper::ROLEPERM_WRITE = 'rp_write' |
Definition at line 41 of file ilPRGPermissionsHelper.php.
Referenced by ilObjStudyProgrammeGUI\edit(), ilObjStudyProgrammeGUI\editAdvancedSettings(), ilObjStudyProgrammeGUI\executeCommand(), ilObjStudyProgrammeGUI\getSubTabs(), ilObjStudyProgrammeGUI\getTabs(), and ilObjStudyProgrammeGUI\updateAdvancedSettings().