4 include_once
"Services/Component/classes/class.ilClaimingPermissionHelper.php";
73 case self::CONTEXT_MD:
74 return array($_REQUEST[
"ref_id"]);
76 case self::CONTEXT_RECORD:
77 $set = $ilDB->query(
"SELECT record_id id".
78 " FROM adv_md_record");
81 case self::CONTEXT_FIELD:
82 case self::CONTEXT_SUBSTITUTION_COURSE:
83 case self::CONTEXT_SUBSTITUTION_CATEGORY:
84 $set = $ilDB->query(
"SELECT field_id id".
85 " FROM adv_mdf_definition");
88 case self::CONTEXT_SUBSTITUTION:
89 return array(
"crs",
"cat");
96 while(
$row = $ilDB->fetchAssoc($set))
109 self::CONTEXT_MD =>
array(
111 self::ACTION_MD_CREATE_RECORD
112 ,self::ACTION_MD_IMPORT_RECORDS
115 self::CONTEXT_RECORD =>
array(
117 self::ACTION_RECORD_EDIT
118 ,self::ACTION_RECORD_DELETE
119 ,self::ACTION_RECORD_EXPORT
120 ,self::ACTION_RECORD_TOGGLE_ACTIVATION
121 ,self::ACTION_RECORD_EDIT_FIELDS
122 ,self::ACTION_RECORD_FIELD_POSITIONS
123 ,self::ACTION_RECORD_CREATE_FIELD
125 "subactions" =>
array(
126 self::ACTION_RECORD_EDIT_PROPERTY =>
128 self::SUBACTION_RECORD_TITLE
129 ,self::SUBACTION_RECORD_DESCRIPTION
130 ,self::SUBACTION_RECORD_OBJECT_TYPES
134 self::CONTEXT_FIELD =>
array(
136 self::ACTION_FIELD_EDIT,
137 self::ACTION_FIELD_DELETE
139 "subactions" =>
array(
140 self::ACTION_FIELD_EDIT_PROPERTY =>
142 self::SUBACTION_FIELD_TITLE
143 ,self::SUBACTION_FIELD_DESCRIPTION
144 ,self::SUBACTION_FIELD_SEARCHABLE
145 ,self::SUBACTION_FIELD_PROPERTIES
149 self::CONTEXT_SUBSTITUTION =>
array(
151 self::ACTION_SUBSTITUTION_SHOW_DESCRIPTION
152 ,self::ACTION_SUBSTITUTION_SHOW_FIELDNAMES
153 ,self::ACTION_SUBSTITUTION_FIELD_POSITIONS
156 self::CONTEXT_SUBSTITUTION_COURSE =>
array(
158 self::ACTION_SUBSTITUTION_COURSE_SHOW_FIELD
160 "subactions" =>
array(
161 self::ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY =>
163 self::SUBACTION_SUBSTITUTION_BOLD
164 ,self::SUBACTION_SUBSTITUTION_NEWLINE
168 self::CONTEXT_SUBSTITUTION_CATEGORY =>
array(
170 self::ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD
172 "subactions" =>
array(
173 self::ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY =>
175 self::SUBACTION_SUBSTITUTION_BOLD
176 ,self::SUBACTION_SUBSTITUTION_NEWLINE
188 global $ilPluginAdmin;
192 foreach($ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"AdvancedMetaData",
"amdc") as $plugin_name)
195 "AdvancedMetaData",
"amdc", $plugin_name);
214 return $ilAccess->checkAccessOfUser($this->
getUserId(),
"read",
"", $this->
getRefId());
const ACTION_RECORD_FIELD_POSITIONS
const CONTEXT_SUBSTITUTION_COURSE
const ACTION_RECORD_EDIT_PROPERTY
const CONTEXT_SUBSTITUTION
const SUBACTION_FIELD_PROPERTIES
const SUBACTION_SUBSTITUTION_NEWLINE
const ACTION_RECORD_EXPORT
Claiming permission helper base class.
readContextIds($a_context_type)
const SUBACTION_SUBSTITUTION_BOLD
const ACTION_FIELD_DELETE
const CONTEXT_SUBSTITUTION_CATEGORY
const ACTION_RECORD_CREATE_FIELD
const SUBACTION_RECORD_TITLE
const ACTION_FIELD_EDIT_PROPERTY
const ACTION_MD_CREATE_RECORD
const SUBACTION_FIELD_SEARCHABLE
const ACTION_SUBSTITUTION_SHOW_DESCRIPTION
const ACTION_MD_IMPORT_RECORDS
Advanced metadata permission helper.
const SUBACTION_FIELD_TITLE
const SUBACTION_RECORD_OBJECT_TYPES
const ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD
checkRBAC()
Check permission against RBAC.
const ACTION_RECORD_TOGGLE_ACTIVATION
const ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY
Create styles array
The data for the language used.
checkPlugins($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null)
Check permission against plugins.
const ACTION_RECORD_EDIT_FIELDS
const ACTION_RECORD_DELETE
const ACTION_SUBSTITUTION_SHOW_FIELDNAMES
checkPermission($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null)
const ACTION_SUBSTITUTION_COURSE_SHOW_FIELD
const ACTION_SUBSTITUTION_FIELD_POSITIONS
const SUBACTION_FIELD_DESCRIPTION
const SUBACTION_RECORD_DESCRIPTION
const ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY