| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
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.
Referenced by __construct(), and getRefId().
 Here is the caller graph for this function:
      
  | 
  protected | 
Check permission (helper: rbac, plugins)
Definition at line 188 of file class.ilClaimingPermissionHelper.php.
References checkPlugins(), and checkRBAC().
Referenced by hasPermission().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Check permission against plugins.
Definition at line 218 of file class.ilClaimingPermissionHelper.php.
References XapiProxy\$plugin, $valid, getActivePlugins(), and ilAdvancedMDPermissionHelper\SUBACTION_UNDEFINED.
Referenced by checkPermission(), and ilAdvancedMDPermissionHelper\checkPermission().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Check permission against RBAC.
Definition at line 201 of file class.ilClaimingPermissionHelper.php.
References $DIC, getActivePlugins(), getRefId(), and getUserId().
Referenced by checkPermission(), and ilAdvancedMDPermissionHelper\checkPermission().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  abstractprotected | 
Get active plugins (for current slot)
Referenced by checkPlugins(), and checkRBAC().
 Here is the caller graph for this function:| 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 ilCustomUserFieldsGUI\__construct(), and ilAdvancedMDSettingsGUI\__construct().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 77 of file class.ilClaimingPermissionHelper.php.
References $ref_id, buildPermissionMap(), and readContextIds().
Referenced by ilAdvancedMDPermissionHelper\checkPermission(), checkRBAC(), and ilUDFPermissionHelper\readContextIds().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 67 of file class.ilClaimingPermissionHelper.php.
References $user_id.
Referenced by ilAdvancedMDPermissionHelper\checkPermission(), and checkRBAC().
 Here is the caller graph for this function:
      
  | 
  protected | 
Get context ids for context type (uses cache)
Definition at line 140 of file class.ilClaimingPermissionHelper.php.
References readContextIds().
Referenced by isValidContextAndAction().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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.
References checkPermission(), and isValidContextAndAction().
Referenced by hasPermissions(), and ilAdvancedMDFieldDefinition\importDefinitionFormPostValues().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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, and hasPermission().
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Check if given combination of context and action is valid.
Definition at line 101 of file class.ilClaimingPermissionHelper.php.
References $valid, and getValidContextIds().
Referenced by hasPermission().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  abstractprotected | 
Get all context ids for context type (from DB, is cached)
Referenced by getRefId(), and getValidContextIds().
 Here is the caller graph for this function:| 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().