ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Both role and OrgU-based permissions are relevant in many places of the PRG. More...
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 | |
const 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 |
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().
ilPRGPermissionsHelper::filterUserIds | ( | array | $user_ids, |
string | $operation | ||
) |
int[] | $user_ids |
Definition at line 128 of file ilPRGPermissionsHelper.php.
References getProgrammeRefId(), and may().
|
protected |
Definition at line 177 of file ilPRGPermissionsHelper.php.
References ilObjStudyProgramme\getInstanceByRefId(), and getProgrammeRefId().
Referenced by getUserIdsInPrgAccessibleForOperation(), and getUserIdsSusceptibleTo().
|
protected |
Definition at line 186 of file ilPRGPermissionsHelper.php.
References $prg_ref_id.
Referenced by filterUserIds(), getAllAssignedUserIds(), isOrguAccessEnabledGlobally(), and may().
|
protected |
Definition at line 158 of file ilPRGPermissionsHelper.php.
References getAllAssignedUserIds().
Referenced by getUserIdsSusceptibleTo().
ilPRGPermissionsHelper::getUserIdsSusceptibleTo | ( | string | $operation | ) |
Definition at line 111 of file ilPRGPermissionsHelper.php.
References getAllAssignedUserIds(), getUserIdsInPrgAccessibleForOperation(), may(), and throwForInvalidOperation().
Referenced by ilStudyProgrammeUserTable\__construct().
ilPRGPermissionsHelper::isOrguAccessEnabledGlobally | ( | ) |
Definition at line 191 of file ilPRGPermissionsHelper.php.
References getProgrammeRefId().
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().
ilPRGPermissionsHelper::mayAnyOf | ( | array | $operations | ) |
string[] | $operations |
Definition at line 98 of file ilPRGPermissionsHelper.php.
References may().
Referenced by ilStudyProgrammeMembersTableGUI\__construct().
|
protected |
Definition at line 141 of file ilPRGPermissionsHelper.php.
References $valid.
Referenced by getUserIdsSusceptibleTo(), and may().
|
protected |
Definition at line 48 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 ilObjStudyProgrammeGUI\executeCommand(), and ilObjStudyProgrammeGUI\getSubTabs().
const ilPRGPermissionsHelper::ROLEPERM_READ = 'rp_read' |
Definition at line 40 of file ilPRGPermissionsHelper.php.
Referenced by ilObjStudyProgrammeGUI\addToNavigationHistory(), ilObjStudyProgrammeGUI\executeCommand(), 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\getTabs(), and ilObjStudyProgrammeGUI\updateAdvancedSettings().