|
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...
Inheritance diagram for ilClaimingPermissionHelper:
Collaboration diagram for ilClaimingPermissionHelper: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 25 of file class.ilClaimingPermissionHelper.php.
|
protected |
Definition at line 35 of file class.ilClaimingPermissionHelper.php.
References buildPermissionMap(), reset(), setRefId(), and setUserId().
Here is the call graph for this function:
|
abstractprotected |
Build map of context and actions.
Reimplemented in ilAdvancedMDPermissionHelper, and ilUDFPermissionHelper.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Check permission (helper: rbac, plugins)
Reimplemented in ilAdvancedMDPermissionHelper.
Definition at line 188 of file class.ilClaimingPermissionHelper.php.
|
protected |
Check permission against plugins.
Definition at line 218 of file class.ilClaimingPermissionHelper.php.
|
protected |
Check permission against RBAC.
Definition at line 201 of file class.ilClaimingPermissionHelper.php.
References $DIC.
|
abstractprotected |
Get active plugins (for current slot)
Reimplemented in ilAdvancedMDPermissionHelper, and ilUDFPermissionHelper.
| ilClaimingPermissionHelper::getAllowedObjectTypes | ( | ) |
Definition at line 246 of file class.ilClaimingPermissionHelper.php.
Referenced by ilAdvancedMDPermissionHelper\readContextIds().
Here is the caller graph for this function:
|
static |
Definition at line 43 of file class.ilClaimingPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\__construct(), and ilCustomUserFieldsGUI\__construct().
Here is the caller graph for this function:
|
protected |
Definition at line 77 of file class.ilClaimingPermissionHelper.php.
References $ref_id.
Referenced by ilUDFPermissionHelper\readContextIds().
Here is the caller graph for this function:
|
protected |
Definition at line 67 of file class.ilClaimingPermissionHelper.php.
References $user_id.
|
protected |
Get context ids for context type (uses cache)
Definition at line 140 of file class.ilClaimingPermissionHelper.php.
| 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 151 of file class.ilClaimingPermissionHelper.php.
| ilClaimingPermissionHelper::hasPermissions | ( | int | $a_context_type, |
| string | $a_context_id, | ||
| array | $a_action_ids | ||
| ) |
Check permissions.
Definition at line 167 of file class.ilClaimingPermissionHelper.php.
References $res.
|
protected |
Check if given combination of context and action is valid.
Definition at line 101 of file class.ilClaimingPermissionHelper.php.
References $valid.
|
abstractprotected |
Get all context ids for context type (from DB, is cached)
Reimplemented in ilAdvancedMDPermissionHelper, and ilUDFPermissionHelper.
| ilClaimingPermissionHelper::reset | ( | ) |
Reset (internal caches)
Definition at line 54 of file class.ilClaimingPermissionHelper.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 72 of file class.ilClaimingPermissionHelper.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 62 of file class.ilClaimingPermissionHelper.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 30 of file class.ilClaimingPermissionHelper.php.
|
staticprotected |
Definition at line 33 of file class.ilClaimingPermissionHelper.php.
|
protected |
Definition at line 29 of file class.ilClaimingPermissionHelper.php.
|
protected |
Definition at line 32 of file class.ilClaimingPermissionHelper.php.
|
protected |
Definition at line 28 of file class.ilClaimingPermissionHelper.php.
Referenced by getRefId().
|
protected |
Definition at line 27 of file class.ilClaimingPermissionHelper.php.
Referenced by getUserId().