ILIAS
Release_5_0_x_branch Revision 61816
|
Advanced metadata permission helper. More...
Protected Member Functions | |
readContextIds ($a_context_type) | |
Get all context ids for context type (from DB, is cached) | |
buildPermissionMap () | |
Build map of context and actions. | |
getActivePlugins () | |
Get active plugins (for current slot) | |
Protected Member Functions inherited from ilClaimingPermissionHelper | |
__construct ($a_user_id, $a_ref_id) | |
Constructor. | |
setUserId ($a_value) | |
Set user id. | |
getUserId () | |
Get user id. | |
setRefId ($a_value) | |
Set ref id. | |
getRefId () | |
Get ref id. | |
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. | |
getValidContextIds ($a_context_type) | |
Get context ids for context type (uses cache) | |
checkPermission ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
Check permission (helper: rbac, plugins) | |
checkRBAC () | |
Check permission against RBAC. | |
checkPlugins ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
Check permission against plugins. |
Additional Inherited Members | |
Public Member Functions inherited from ilClaimingPermissionHelper | |
reset () | |
Reset (internal caches) | |
hasPermission ($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null) | |
Check permission. | |
hasPermissions ($a_context_type, $a_context_id, array $a_action_ids) | |
Check permissions. | |
Static Public Member Functions inherited from ilClaimingPermissionHelper | |
static | getInstance ($a_user_id=null, $a_ref_id=null) |
Factory. | |
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 |
Build map of context and actions.
Reimplemented from ilClaimingPermissionHelper.
Definition at line 106 of file class.ilAdvancedMDPermissionHelper.php.
|
protected |
Get active plugins (for current slot)
Reimplemented from ilClaimingPermissionHelper.
Definition at line 186 of file class.ilAdvancedMDPermissionHelper.php.
References $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 67 of file class.ilAdvancedMDPermissionHelper.php.
References $_REQUEST, $ilDB, $res, and $row.
const ilAdvancedMDPermissionHelper::ACTION_FIELD_DELETE = 14 |
Definition at line 37 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\deleteFields().
const ilAdvancedMDPermissionHelper::ACTION_FIELD_EDIT = 13 |
Definition at line 36 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldTableGUI\fillRow(), and ilAdvancedMDFieldTableGUI\parseDefinitions().
const ilAdvancedMDPermissionHelper::ACTION_FIELD_EDIT_PROPERTY = 15 |
Definition at line 38 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 24 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\showRecords().
const ilAdvancedMDPermissionHelper::ACTION_MD_IMPORT_RECORDS = 2 |
Definition at line 25 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\showRecords().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_CREATE_FIELD = 11 |
Definition at line 33 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\editFields().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_DELETE = 6 |
Definition at line 28 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\deleteRecords().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_EDIT = 5 |
Definition at line 27 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDRecordTableGUI\fillRow(), and ilAdvancedMDRecordTableGUI\parseRecords().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_EDIT_FIELDS = 10 |
Definition at line 32 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDRecordTableGUI\fillRow(), and ilAdvancedMDRecordTableGUI\parseRecords().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_EDIT_PROPERTY = 9 |
const ilAdvancedMDPermissionHelper::ACTION_RECORD_EXPORT = 7 |
Definition at line 29 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\exportRecords().
const ilAdvancedMDPermissionHelper::ACTION_RECORD_FIELD_POSITIONS = 12 |
Definition at line 34 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 48 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD = 21 |
Definition at line 47 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY = 20 |
Definition at line 45 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_COURSE_SHOW_FIELD = 19 |
Definition at line 44 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_FIELD_POSITIONS = 18 |
Definition at line 42 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_SHOW_DESCRIPTION = 16 |
Definition at line 40 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
const ilAdvancedMDPermissionHelper::ACTION_SUBSTITUTION_SHOW_FIELDNAMES = 17 |
Definition at line 41 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 ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDSettingsGUI\editFields(), ilAdvancedMDSettingsGUI\exportRecords(), ilAdvancedMDSettingsGUI\initForm(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilAdvancedMDRecordTableGUI\parseRecords(), 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::SUBACTION_FIELD_DESCRIPTION = 5 |
Definition at line 56 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm().
const ilAdvancedMDPermissionHelper::SUBACTION_FIELD_PROPERTIES = 7 |
Definition at line 58 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), and ilAdvancedMDFieldDefinition\importDefinitionFormPostValues().
const ilAdvancedMDPermissionHelper::SUBACTION_FIELD_SEARCHABLE = 6 |
Definition at line 57 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 55 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDFieldDefinition\addToFieldDefinitionForm().
const ilAdvancedMDPermissionHelper::SUBACTION_RECORD_DESCRIPTION = 2 |
Definition at line 52 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 51 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\initForm(), and ilAdvancedMDSettingsGUI\loadRecordFormData().
const ilAdvancedMDPermissionHelper::SUBACTION_SUBSTITUTION_BOLD = 8 |
Definition at line 60 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().
const ilAdvancedMDPermissionHelper::SUBACTION_SUBSTITUTION_NEWLINE = 9 |
Definition at line 61 of file class.ilAdvancedMDPermissionHelper.php.
Referenced by ilAdvancedMDSettingsGUI\getSubstitutionFieldPermissions().