ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Advanced metadata permission helper. More...
Protected Member Functions | |
readContextIds ($a_context_type) | |
buildPermissionMap () | |
getActivePlugins () | |
checkPermission ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
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 |
Advanced metadata permission helper.
Definition at line 14 of file class.ilAdvancedMDPermissionHelper.php.
|
protected |
Definition at line 120 of file class.ilAdvancedMDPermissionHelper.php.
|
protected |
Definition at line 256 of file class.ilAdvancedMDPermissionHelper.php.
References $a_context_id, $a_context_type, $DIC, ACTION_RECORD_EXPORT, ilClaimingPermissionHelper\checkPlugins(), ilClaimingPermissionHelper\checkRBAC(), CONTEXT_RECORD, ilClaimingPermissionHelper\getRefId(), and ilClaimingPermissionHelper\getUserId().
|
protected |
Definition at line 236 of file class.ilAdvancedMDPermissionHelper.php.
References $DIC, $res, and IL_COMP_SERVICE.
|
protected |
Definition at line 78 of file class.ilAdvancedMDPermissionHelper.php.
References $a_context_type, $DIC, $ilDB, $res, and $row.
const ilAdvancedMDPermissionHelper::ACTION_FIELD_DELETE = 14 |
Definition at line 40 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\deleteFields().
const ilAdvancedMDPermissionHelper::ACTION_FIELD_EDIT = 13 |
Definition at line 39 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldTableGUI\fillRow(), and ilAdvancedMDFieldTableGUI\parseDefinitions().
const ilAdvancedMDPermissionHelper::ACTION_FIELD_EDIT_PROPERTY = 15 |
Definition at line 41 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilAdvancedMDFieldTableGUI\fillRow(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), ilAdvancedMDFieldTableGUI\parseDefinitions(), and ilAdvancedMDSettingsGUI\updateFields().
const ilAdvancedMDPermissionHelper::ACTION_MD_CREATE_RECORD = 1 |
Definition at line 27 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\showRecords().
const ilAdvancedMDPermissionHelper::ACTION_MD_IMPORT_RECORDS = 2 |
Definition at line 28 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\showRecords().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_CREATE_FIELD = 11 |
Definition at line 36 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\editFields().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_DELETE = 6 |
Definition at line 31 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\deleteRecords().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_EDIT = 5 |
Definition at line 30 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDRecordTableGUI\fillRow(), and ilAdvancedMDSettingsGUI\getParsedRecordObjects().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_EDIT_FIELDS = 10 |
Definition at line 35 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDRecordTableGUI\fillRow(), and ilAdvancedMDSettingsGUI\getParsedRecordObjects().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_EDIT_PROPERTY = 9 |
const ilAdvancedMDPermissionHelper::ACTION_RECORD_EXPORT = 7 |
Definition at line 32 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by checkPermission(), and ilAdvancedMDSettingsGUI\exportRecords().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_FIELD_POSITIONS = 12 |
Definition at line 37 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\editFields(), and ilAdvancedMDSettingsGUI\updateFields().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_TOGGLE_ACTIVATION = 8 |
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY = 22 |
Definition at line 51 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD = 21 |
Definition at line 50 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY = 20 |
Definition at line 48 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_COURSE_SHOW_FIELD = 19 |
Definition at line 47 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_FIELD_POSITIONS = 18 |
Definition at line 45 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_GROUP_EDIT_FIELD_PROPERTY = 26 |
Definition at line 57 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_GROUP_SHOW_FIELD = 25 |
Definition at line 56 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_IASS_EDIT_FIELD_PROPERTY = 28 |
Definition at line 60 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_IASS_SHOW_FIELD = 27 |
Definition at line 59 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_SESSION_EDIT_FIELD_PROPERTY = 24 |
Definition at line 54 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_SESSION_SHOW_FIELD = 23 |
Definition at line 53 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_SHOW_DESCRIPTION = 16 |
Definition at line 43 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_SHOW_FIELDNAMES = 17 |
Definition at line 44 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
const ilAdvancedMDPermissionHelper::CONTEXT_FIELD = 3 |
Definition at line 18 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilAdvancedMDSettingsGUI\deleteFields(), ilAdvancedMDFieldDefinition\importDefinitionFormPostValues(), ilAdvancedMDFieldTableGUI\parseDefinitions(), and ilAdvancedMDSettingsGUI\updateFields().
const ilAdvancedMDPermissionHelper::CONTEXT_MD = 1 |
Definition at line 16 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\showRecords().
const ilAdvancedMDPermissionHelper::CONTEXT_RECORD = 2 |
Definition at line 17 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by checkPermission(), ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDSettingsGUI\editFields(), ilAdvancedMDSettingsGUI\exportRecords(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), ilAdvancedMDSettingsGUI\initForm(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilAdvancedMDSettingsGUI\updateFields(), and ilAdvancedMDSettingsGUI\updateRecords().
const ilAdvancedMDPermissionHelper::CONTEXT_SUBSTITUTION = 4 |
Definition at line 19 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
const ilAdvancedMDPermissionHelper::CONTEXT_SUBSTITUTION_CATEGORY = 6 |
Definition at line 21 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::CONTEXT_SUBSTITUTION_COURSE = 5 |
Definition at line 20 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::CONTEXT_SUBSTITUTION_GROUP = 9 |
Definition at line 24 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::CONTEXT_SUBSTITUTION_IASS = 8 |
Definition at line 23 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::CONTEXT_SUBSTITUTION_SESSION = 7 |
Definition at line 22 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::SUBACTION_FIELD_DESCRIPTION = 5 |
Definition at line 67 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm().
const ilAdvancedMDPermissionHelper::SUBACTION_FIELD_PROPERTIES = 7 |
Definition at line 69 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), and ilAdvancedMDFieldDefinition\importDefinitionFormPostValues().
const ilAdvancedMDPermissionHelper::SUBACTION_FIELD_SEARCHABLE = 6 |
Definition at line 68 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilAdvancedMDFieldTableGUI\fillRow(), ilAdvancedMDFieldTableGUI\parseDefinitions(), and ilAdvancedMDSettingsGUI\updateFields().
const ilAdvancedMDPermissionHelper::SUBACTION_FIELD_TITLE = 4 |
Definition at line 66 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm().
const ilAdvancedMDPermissionHelper::SUBACTION_RECORD_DESCRIPTION = 2 |
Definition at line 63 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initForm(), and ilAdvancedMDSettingsGUI\loadRecordFormData().
const ilAdvancedMDPermissionHelper::SUBACTION_RECORD_OBJECT_TYPES = 3 |
const ilAdvancedMDPermissionHelper::SUBACTION_RECORD_TITLE = 1 |
Definition at line 62 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initForm(), and ilAdvancedMDSettingsGUI\loadRecordFormData().
const ilAdvancedMDPermissionHelper::SUBACTION_SUBSTITUTION_BOLD = 8 |
Definition at line 71 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::SUBACTION_SUBSTITUTION_NEWLINE = 9 |
Definition at line 72 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().