4 include_once
"Services/Component/classes/class.ilClaimingPermissionHelper.php";
89 case self::CONTEXT_MD:
90 return array($_REQUEST[
"ref_id"]);
92 case self::CONTEXT_RECORD:
93 $set =
$ilDB->query(
"SELECT record_id id" .
94 " FROM adv_md_record");
97 case self::CONTEXT_FIELD:
98 case self::CONTEXT_SUBSTITUTION_COURSE:
99 case self::CONTEXT_SUBSTITUTION_GROUP:
100 case self::CONTEXT_SUBSTITUTION_SESSION:
101 case self::CONTEXT_SUBSTITUTION_CATEGORY:
102 case self::CONTEXT_SUBSTITUTION_IASS:
103 case self::CONTEXT_SUBSTITUTION_EXERCISE:
104 $set =
$ilDB->query(
"SELECT field_id id" .
105 " FROM adv_mdf_definition");
108 case self::CONTEXT_SUBSTITUTION:
116 while ($row =
$ilDB->fetchAssoc($set)) {
128 self::CONTEXT_MD => array(
130 self::ACTION_MD_CREATE_RECORD
131 ,self::ACTION_MD_IMPORT_RECORDS
134 self::CONTEXT_RECORD => array(
136 self::ACTION_RECORD_EDIT
137 ,self::ACTION_RECORD_DELETE
138 ,self::ACTION_RECORD_EXPORT
139 ,self::ACTION_RECORD_TOGGLE_ACTIVATION
140 ,self::ACTION_RECORD_EDIT_FIELDS
141 ,self::ACTION_RECORD_FIELD_POSITIONS
142 ,self::ACTION_RECORD_CREATE_FIELD
144 "subactions" => array(
145 self::ACTION_RECORD_EDIT_PROPERTY =>
147 self::SUBACTION_RECORD_TITLE
148 ,self::SUBACTION_RECORD_DESCRIPTION
149 ,self::SUBACTION_RECORD_OBJECT_TYPES
153 self::CONTEXT_FIELD => array(
155 self::ACTION_FIELD_EDIT,
156 self::ACTION_FIELD_DELETE
158 "subactions" => array(
159 self::ACTION_FIELD_EDIT_PROPERTY =>
161 self::SUBACTION_FIELD_TITLE
162 ,self::SUBACTION_FIELD_DESCRIPTION
163 ,self::SUBACTION_FIELD_SEARCHABLE
164 ,self::SUBACTION_FIELD_PROPERTIES
168 self::CONTEXT_SUBSTITUTION => array(
170 self::ACTION_SUBSTITUTION_SHOW_DESCRIPTION
171 ,self::ACTION_SUBSTITUTION_SHOW_FIELDNAMES
172 ,self::ACTION_SUBSTITUTION_FIELD_POSITIONS
175 self::CONTEXT_SUBSTITUTION_COURSE => array(
177 self::ACTION_SUBSTITUTION_COURSE_SHOW_FIELD
179 "subactions" => array(
180 self::ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY =>
182 self::SUBACTION_SUBSTITUTION_BOLD
183 ,self::SUBACTION_SUBSTITUTION_NEWLINE
187 self::CONTEXT_SUBSTITUTION_CATEGORY => array(
189 self::ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD
191 "subactions" => array(
192 self::ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY =>
194 self::SUBACTION_SUBSTITUTION_BOLD
195 ,self::SUBACTION_SUBSTITUTION_NEWLINE
199 self::CONTEXT_SUBSTITUTION_SESSION => array(
201 self::ACTION_SUBSTITUTION_SESSION_SHOW_FIELD
203 "subactions" => array(
204 self::ACTION_SUBSTITUTION_SESSION_EDIT_FIELD_PROPERTY =>
206 self::SUBACTION_SUBSTITUTION_BOLD
207 ,self::SUBACTION_SUBSTITUTION_NEWLINE
211 self::CONTEXT_SUBSTITUTION_GROUP => array(
213 self::ACTION_SUBSTITUTION_GROUP_SHOW_FIELD
215 "subactions" => array(
216 self::ACTION_SUBSTITUTION_GROUP_EDIT_FIELD_PROPERTY =>
218 self::SUBACTION_SUBSTITUTION_BOLD
219 ,self::SUBACTION_SUBSTITUTION_NEWLINE
223 self::CONTEXT_SUBSTITUTION_IASS => array(
225 self::ACTION_SUBSTITUTION_IASS_SHOW_FIELD
227 "subactions" => array(
228 self::ACTION_SUBSTITUTION_IASS_EDIT_FIELD_PROPERTY =>
230 self::SUBACTION_SUBSTITUTION_BOLD
231 ,self::SUBACTION_SUBSTITUTION_NEWLINE
235 self::CONTEXT_SUBSTITUTION_EXERCISE => array(
237 self::ACTION_SUBSTITUTION_EXERCISE_SHOW_FIELD
239 "subactions" => array(
240 self::ACTION_SUBSTITUTION_EXERCISE_EDIT_FIELD_PROPERTY =>
242 self::SUBACTION_SUBSTITUTION_BOLD
243 ,self::SUBACTION_SUBSTITUTION_NEWLINE
257 $ilPluginAdmin = $DIC[
'ilPluginAdmin'];
261 foreach ($ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"AdvancedMetaData",
"amdc") as $plugin_name) {
262 $res[] = $ilPluginAdmin->getPluginObject(
277 $ilAccess = $DIC[
'ilAccess'];
286 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 CONTEXT_SUBSTITUTION_EXERCISE
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 CONTEXT_SUBSTITUTION_SESSION
const ACTION_MD_CREATE_RECORD
const ACTION_SUBSTITUTION_IASS_EDIT_FIELD_PROPERTY
const SUBACTION_FIELD_SEARCHABLE
const ACTION_SUBSTITUTION_SHOW_DESCRIPTION
const ACTION_MD_IMPORT_RECORDS
const ACTION_SUBSTITUTION_IASS_SHOW_FIELD
Advanced metadata permission helper.
foreach($_POST as $key=> $value) $res
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_SESSION_SHOW_FIELD
const ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY
const ACTION_SUBSTITUTION_EXERCISE_EDIT_FIELD_PROPERTY
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_SESSION_EDIT_FIELD_PROPERTY
const ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY
const CONTEXT_SUBSTITUTION_GROUP
const ACTION_SUBSTITUTION_EXERCISE_SHOW_FIELD
const CONTEXT_SUBSTITUTION_IASS
const ACTION_SUBSTITUTION_GROUP_SHOW_FIELD
const ACTION_SUBSTITUTION_GROUP_EDIT_FIELD_PROPERTY