ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Both role and OrgU-based permissions are relevant in many places of the PRG. More...
Public Member Functions | |
__construct (ilAccess $access, ilOrgUnitPositionAccess $orgu_access, ilObjStudyProgramme $programme) | |
may (string $operation) | |
mayAnyOf (array $operations) | |
getUserIdsSusceptibleTo (string $operation) | |
return int[] More... | |
filterUserIds (array $user_ids, string $operation) | |
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' |
const | ROLEMAPPINGS |
Protected Member Functions | |
throwForInvalidOperation (string $operation) | |
getUserIdsInPrgAccessibleForOperation (string $orgu_operation) | |
getAllAssignedUserIds () | |
getProgrammeRefId () | |
Protected Attributes | |
$access | |
$orgu_access | |
$programme | |
$user_id_cache | |
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 11 of file ilPRGPermissionsHelper.php.
ilPRGPermissionsHelper::__construct | ( | ilAccess | $access, |
ilOrgUnitPositionAccess | $orgu_access, | ||
ilObjStudyProgramme | $programme | ||
) |
Definition at line 55 of file ilPRGPermissionsHelper.php.
References $access, $orgu_access, and $programme.
ilPRGPermissionsHelper::filterUserIds | ( | array | $user_ids, |
string | $operation | ||
) |
int[] | $user_ids |
Definition at line 114 of file ilPRGPermissionsHelper.php.
References getProgrammeRefId(), and may().
|
protected |
Definition at line 163 of file ilPRGPermissionsHelper.php.
Referenced by getUserIdsInPrgAccessibleForOperation(), and getUserIdsSusceptibleTo().
|
protected |
Definition at line 171 of file ilPRGPermissionsHelper.php.
Referenced by filterUserIds(), and may().
|
protected |
Definition at line 144 of file ilPRGPermissionsHelper.php.
References getAllAssignedUserIds().
Referenced by getUserIdsSusceptibleTo().
ilPRGPermissionsHelper::getUserIdsSusceptibleTo | ( | string | $operation | ) |
return int[]
Definition at line 97 of file ilPRGPermissionsHelper.php.
References getAllAssignedUserIds(), getUserIdsInPrgAccessibleForOperation(), may(), and throwForInvalidOperation().
ilPRGPermissionsHelper::may | ( | string | $operation | ) |
Definition at line 65 of file ilPRGPermissionsHelper.php.
References getProgrammeRefId(), and throwForInvalidOperation().
Referenced by filterUserIds(), getUserIdsSusceptibleTo(), and mayAnyOf().
ilPRGPermissionsHelper::mayAnyOf | ( | array | $operations | ) |
string[] | $operations |
Definition at line 84 of file ilPRGPermissionsHelper.php.
References may().
|
protected |
Definition at line 127 of file ilPRGPermissionsHelper.php.
References $valid.
Referenced by getUserIdsSusceptibleTo(), and may().
|
protected |
Definition at line 38 of file ilPRGPermissionsHelper.php.
Referenced by __construct().
|
protected |
Definition at line 43 of file ilPRGPermissionsHelper.php.
Referenced by __construct().
|
protected |
Definition at line 48 of file ilPRGPermissionsHelper.php.
Referenced by __construct().
|
protected |
Definition at line 53 of file ilPRGPermissionsHelper.php.
const ilPRGPermissionsHelper::ORGU_OPERATIONS |
Definition at line 13 of file ilPRGPermissionsHelper.php.
const ilPRGPermissionsHelper::ROLEMAPPINGS |
Definition at line 28 of file ilPRGPermissionsHelper.php.
const ilPRGPermissionsHelper::ROLEPERM_MANAGE_MEMBERS = 'rp_manage_members' |
Definition at line 26 of file ilPRGPermissionsHelper.php.
const ilPRGPermissionsHelper::ROLEPERM_READ = 'rp_read' |
Definition at line 22 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 21 of file ilPRGPermissionsHelper.php.
Referenced by ilObjStudyProgrammeGUI\denyAccessIfNotAnyOf(), and ilObjStudyProgrammeGUI\executeCommand().
const ilPRGPermissionsHelper::ROLEPERM_WRITE = 'rp_write' |
Definition at line 23 of file ilPRGPermissionsHelper.php.
Referenced by ilObjStudyProgrammeGUI\edit(), ilObjStudyProgrammeGUI\editAdvancedSettings(), ilObjStudyProgrammeGUI\executeCommand(), ilObjStudyProgrammeGUI\getSubTabs(), ilObjStudyProgrammeGUI\getTabs(), and ilObjStudyProgrammeGUI\updateAdvancedSettings().