|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
UDF permission helper. More...
Inheritance diagram for ilUDFPermissionHelper:
Collaboration diagram for ilUDFPermissionHelper:Data Fields | |
| const | CONTEXT_UDF = 1 |
| const | CONTEXT_FIELD = 2 |
| const | ACTION_UDF_CREATE_FIELD = 1 |
| const | ACTION_FIELD_EDIT = 1 |
| const | ACTION_FIELD_DELETE = 2 |
| const | ACTION_FIELD_EDIT_PROPERTY = 3 |
| const | ACTION_FIELD_EDIT_ACCESS = 4 |
| const | SUBACTION_FIELD_TITLE = 1 |
| const | SUBACTION_FIELD_PROPERTIES = 2 |
| const | SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL = 1 |
| const | SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION = 2 |
| const | SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL = 3 |
| const | SUBACTION_FIELD_ACCESS_VISIBLE_COURSES = 4 |
| const | SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS = 5 |
| const | SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL = 6 |
| const | SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL = 7 |
| const | SUBACTION_FIELD_ACCESS_REQUIRED = 8 |
| const | SUBACTION_FIELD_ACCESS_EXPORT = 9 |
| const | SUBACTION_FIELD_ACCESS_SEARCHABLE = 10 |
| const | SUBACTION_FIELD_ACCESS_CERTIFICATE = 11 |
Protected Member Functions | |
| readContextIds ($a_context_type) | |
| Get all context ids for context type (from DB, is cached) More... | |
| buildPermissionMap () | |
| Build map of context and actions. More... | |
| getActivePlugins () | |
| Get active plugins (for current slot) More... | |
Protected Member Functions inherited from ilClaimingPermissionHelper | |
| __construct ($a_user_id, $a_ref_id) | |
| Constructor. More... | |
| setUserId ($a_value) | |
| Set user id. More... | |
| getUserId () | |
| Get user id. More... | |
| setRefId ($a_value) | |
| Set ref id. More... | |
| getRefId () | |
| Get ref id. More... | |
| readContextIds ($a_context_type) | |
| Get all context ids for context type (from DB, is cached) More... | |
| buildPermissionMap () | |
| Build map of context and actions. More... | |
| isValidContextAndAction ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
| Check if given combination of context and action is valid. More... | |
| getValidContextIds ($a_context_type) | |
| Get context ids for context type (uses cache) More... | |
| checkPermission ($a_context_type, $a_context_id, $a_action_id, $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 ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
| Check permission against plugins. More... | |
Additional Inherited Members | |
Public Member Functions inherited from ilClaimingPermissionHelper | |
| reset () | |
| Reset (internal caches) More... | |
| hasPermission ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
| Check permission. More... | |
| hasPermissions ($a_context_type, $a_context_id, array $a_action_ids) | |
| Check permissions. More... | |
Static Public Member Functions inherited from ilClaimingPermissionHelper | |
| static | getInstance ($a_user_id=null, $a_ref_id=null) |
| Factory. More... | |
Protected Attributes inherited from ilClaimingPermissionHelper | |
| $user_id | |
| $ref_id | |
| $map | |
| $context_ids | |
| $plugins | |
Static Protected Attributes inherited from ilClaimingPermissionHelper | |
| static | $instances |
|
protected |
Build map of context and actions.
Reimplemented from ilClaimingPermissionHelper.
Definition at line 75 of file class.ilUDFPermissionHelper.php.
|
protected |
Get active plugins (for current slot)
Reimplemented from ilClaimingPermissionHelper.
Definition at line 116 of file class.ilUDFPermissionHelper.php.
References $DIC, $res, and IL_COMP_SERVICE.
|
protected |
Get all context ids for context type (from DB, is cached)
| int | $a_context_type |
Reimplemented from ilClaimingPermissionHelper.
Definition at line 46 of file class.ilUDFPermissionHelper.php.
References $a_context_type, $DIC, $ilDB, $res, $row, CONTEXT_FIELD, and CONTEXT_UDF.
| const ilUDFPermissionHelper::ACTION_FIELD_DELETE = 2 |
Definition at line 23 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\deleteField().
| const ilUDFPermissionHelper::ACTION_FIELD_EDIT = 1 |
Definition at line 22 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow().
| const ilUDFPermissionHelper::ACTION_FIELD_EDIT_ACCESS = 4 |
Definition at line 25 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\initFieldDefinition(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), ilCustomUserFieldsGUI\updateFields(), and ilCustomUserFieldsGUI\validateForm().
| const ilUDFPermissionHelper::ACTION_FIELD_EDIT_PROPERTY = 3 |
Definition at line 24 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\initFieldDefinition(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\validateForm().
| const ilUDFPermissionHelper::ACTION_UDF_CREATE_FIELD = 1 |
Definition at line 20 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\listUserDefinedFields().
| const ilUDFPermissionHelper::CONTEXT_FIELD = 2 |
Definition at line 17 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\deleteField(), ilCustomUserFieldSettingsTableGUI\fillRow(), ilCustomUserFieldsGUI\initFieldDefinition(), readContextIds(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\updateFields().
| const ilUDFPermissionHelper::CONTEXT_UDF = 1 |
Definition at line 16 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\listUserDefinedFields(), and readContextIds().
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_CERTIFICATE = 11 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL = 7 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL = 6 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_EXPORT = 9 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_REQUIRED = 8 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_SEARCHABLE = 10 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_COURSES = 4 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS = 5 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL = 3 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL = 1 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION = 2 |
| const ilUDFPermissionHelper::SUBACTION_FIELD_PROPERTIES = 2 |
Definition at line 29 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\initFieldDefinition(), ilCustomUserFieldsGUI\initForm(), ilCustomUserFieldsGUI\update(), and ilCustomUserFieldsGUI\validateForm().
| const ilUDFPermissionHelper::SUBACTION_FIELD_TITLE = 1 |
Definition at line 28 of file class.ilUDFPermissionHelper.php.
Referenced by ilCustomUserFieldsGUI\initFieldDefinition(), ilCustomUserFieldsGUI\initForm(), and ilCustomUserFieldsGUI\update().