ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
reset () | |
Reset (internal caches) More... | |
hasPermission (int $a_context_type, string $a_context_id, int $a_action_id, ?int $a_action_sub_id=null) | |
Check permission. More... | |
hasPermissions (int $a_context_type, string $a_context_id, array $a_action_ids) | |
Check permissions. More... | |
getAllowedObjectTypes () | |
Static Public Member Functions | |
static | getInstance (int $a_user_id, int $a_ref_id) |
Protected Member Functions | |
__construct (int $a_user_id, int $a_ref_id) | |
setUserId (int $a_value) | |
getUserId () | |
setRefId (int $a_value) | |
getRefId () | |
readContextIds (int $a_context_type) | |
Get all context ids for context type (from DB, is cached) More... | |
buildPermissionMap () | |
Build map of context and actions. More... | |
isValidContextAndAction (int $a_context_type, string $a_context_id, int $a_action_id, ?int $a_action_sub_id=null) | |
Check if given combination of context and action is valid. More... | |
getValidContextIds (int $a_context_type) | |
Get context ids for context type (uses cache) More... | |
checkPermission (int $a_context_type, string $a_context_id, int $a_action_id, ?int $a_action_sub_id=null) | |
Check permission (helper: rbac, plugins) More... | |
checkRBAC () | |
Check permission against RBAC. More... | |
getActivePlugins () | |
Get active plugins (for current slot) More... | |
checkPlugins (int $a_context_type, string $a_context_id, int $a_action_id, ?int $a_action_sub_id=null) | |
Check permission against plugins. More... | |
Protected Attributes | |
int | $user_id = 0 |
int | $ref_id = 0 |
array | $map = [] |
array | $context_ids = [] |
array | $plugins = null |
Static Protected Attributes | |
static array | $instances = [] |
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 Claiming permission helper base class
Definition at line 24 of file class.ilClaimingPermissionHelper.php.
|
protected |
Definition at line 34 of file class.ilClaimingPermissionHelper.php.
References buildPermissionMap(), reset(), setRefId(), and setUserId().
|
abstractprotected |
Build map of context and actions.
Referenced by __construct(), and getRefId().
|
protected |
Check permission (helper: rbac, plugins)
Definition at line 187 of file class.ilClaimingPermissionHelper.php.
References checkPlugins(), and checkRBAC().
Referenced by hasPermission().
|
protected |
Check permission against plugins.
Definition at line 217 of file class.ilClaimingPermissionHelper.php.
References XapiProxy\$plugin, $valid, getActivePlugins(), and ilAdvancedMDPermissionHelper\SUBACTION_UNDEFINED.
Referenced by checkPermission(), and ilAdvancedMDPermissionHelper\checkPermission().
|
protected |
Check permission against RBAC.
Definition at line 200 of file class.ilClaimingPermissionHelper.php.
References $DIC, getActivePlugins(), getRefId(), and getUserId().
Referenced by checkPermission(), and ilAdvancedMDPermissionHelper\checkPermission().
|
abstractprotected |
Get active plugins (for current slot)
Referenced by checkPlugins(), and checkRBAC().
ilClaimingPermissionHelper::getAllowedObjectTypes | ( | ) |
Definition at line 245 of file class.ilClaimingPermissionHelper.php.
Referenced by ilAdvancedMDPermissionHelper\readContextIds().
|
static |
Definition at line 42 of file class.ilClaimingPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\__construct(), and ilAdvancedMDSettingsGUI\__construct().
|
protected |
Definition at line 76 of file class.ilClaimingPermissionHelper.php.
References $ref_id, buildPermissionMap(), and readContextIds().
Referenced by ilAdvancedMDPermissionHelper\checkPermission(), checkRBAC(), and ilUDFPermissionHelper\readContextIds().
|
protected |
Definition at line 66 of file class.ilClaimingPermissionHelper.php.
References $user_id.
Referenced by ilAdvancedMDPermissionHelper\checkPermission(), and checkRBAC().
|
protected |
Get context ids for context type (uses cache)
Definition at line 139 of file class.ilClaimingPermissionHelper.php.
References readContextIds().
Referenced by isValidContextAndAction().
ilClaimingPermissionHelper::hasPermission | ( | int | $a_context_type, |
string | $a_context_id, | ||
int | $a_action_id, | ||
?int | $a_action_sub_id = null |
||
) |
Check permission.
Definition at line 150 of file class.ilClaimingPermissionHelper.php.
References checkPermission(), and isValidContextAndAction().
Referenced by hasPermissions(), and ilAdvancedMDFieldDefinition\importDefinitionFormPostValues().
ilClaimingPermissionHelper::hasPermissions | ( | int | $a_context_type, |
string | $a_context_id, | ||
array | $a_action_ids | ||
) |
Check permissions.
Definition at line 166 of file class.ilClaimingPermissionHelper.php.
References $res, and hasPermission().
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm().
|
protected |
Check if given combination of context and action is valid.
Definition at line 100 of file class.ilClaimingPermissionHelper.php.
References $valid, and getValidContextIds().
Referenced by hasPermission().
|
abstractprotected |
Get all context ids for context type (from DB, is cached)
Referenced by getRefId(), and getValidContextIds().
ilClaimingPermissionHelper::reset | ( | ) |
Reset (internal caches)
Definition at line 53 of file class.ilClaimingPermissionHelper.php.
Referenced by __construct().
|
protected |
Definition at line 71 of file class.ilClaimingPermissionHelper.php.
Referenced by __construct().
|
protected |
Definition at line 61 of file class.ilClaimingPermissionHelper.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilClaimingPermissionHelper.php.
|
staticprotected |
Definition at line 32 of file class.ilClaimingPermissionHelper.php.
|
protected |
Definition at line 28 of file class.ilClaimingPermissionHelper.php.
|
protected |
Definition at line 31 of file class.ilClaimingPermissionHelper.php.
|
protected |
Definition at line 27 of file class.ilClaimingPermissionHelper.php.
Referenced by getRefId().
|
protected |
Definition at line 26 of file class.ilClaimingPermissionHelper.php.
Referenced by getUserId().