4 include_once
"Services/Component/classes/class.ilClaimingPermissionHelper.php";
85 case self::CONTEXT_MD:
86 return array($_REQUEST[
"ref_id"]);
88 case self::CONTEXT_RECORD:
89 $set =
$ilDB->query(
"SELECT record_id id" .
90 " FROM adv_md_record");
93 case self::CONTEXT_FIELD:
94 case self::CONTEXT_SUBSTITUTION_COURSE:
95 case self::CONTEXT_SUBSTITUTION_GROUP:
96 case self::CONTEXT_SUBSTITUTION_SESSION:
97 case self::CONTEXT_SUBSTITUTION_CATEGORY:
98 case self::CONTEXT_SUBSTITUTION_IASS:
99 $set =
$ilDB->query(
"SELECT field_id id" .
100 " FROM adv_mdf_definition");
103 case self::CONTEXT_SUBSTITUTION:
104 return [
'crs',
'cat',
'sess',
'iass',
'grp'];
123 self::CONTEXT_MD => array(
125 self::ACTION_MD_CREATE_RECORD
126 ,self::ACTION_MD_IMPORT_RECORDS
129 self::CONTEXT_RECORD => array(
131 self::ACTION_RECORD_EDIT
132 ,self::ACTION_RECORD_DELETE
133 ,self::ACTION_RECORD_EXPORT
134 ,self::ACTION_RECORD_TOGGLE_ACTIVATION
135 ,self::ACTION_RECORD_EDIT_FIELDS
136 ,self::ACTION_RECORD_FIELD_POSITIONS
137 ,self::ACTION_RECORD_CREATE_FIELD
139 "subactions" => array(
140 self::ACTION_RECORD_EDIT_PROPERTY =>
142 self::SUBACTION_RECORD_TITLE
143 ,self::SUBACTION_RECORD_DESCRIPTION
144 ,self::SUBACTION_RECORD_OBJECT_TYPES
148 self::CONTEXT_FIELD => array(
150 self::ACTION_FIELD_EDIT,
151 self::ACTION_FIELD_DELETE
153 "subactions" => array(
154 self::ACTION_FIELD_EDIT_PROPERTY =>
156 self::SUBACTION_FIELD_TITLE
157 ,self::SUBACTION_FIELD_DESCRIPTION
158 ,self::SUBACTION_FIELD_SEARCHABLE
159 ,self::SUBACTION_FIELD_PROPERTIES
163 self::CONTEXT_SUBSTITUTION => array(
165 self::ACTION_SUBSTITUTION_SHOW_DESCRIPTION
166 ,self::ACTION_SUBSTITUTION_SHOW_FIELDNAMES
167 ,self::ACTION_SUBSTITUTION_FIELD_POSITIONS
170 self::CONTEXT_SUBSTITUTION_COURSE => array(
172 self::ACTION_SUBSTITUTION_COURSE_SHOW_FIELD
174 "subactions" => array(
175 self::ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY =>
177 self::SUBACTION_SUBSTITUTION_BOLD
178 ,self::SUBACTION_SUBSTITUTION_NEWLINE
182 self::CONTEXT_SUBSTITUTION_CATEGORY => array(
184 self::ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD
186 "subactions" => array(
187 self::ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY =>
189 self::SUBACTION_SUBSTITUTION_BOLD
190 ,self::SUBACTION_SUBSTITUTION_NEWLINE
194 self::CONTEXT_SUBSTITUTION_SESSION => array(
196 self::ACTION_SUBSTITUTION_SESSION_SHOW_FIELD
198 "subactions" => array(
199 self::ACTION_SUBSTITUTION_SESSION_EDIT_FIELD_PROPERTY =>
201 self::SUBACTION_SUBSTITUTION_BOLD
202 ,self::SUBACTION_SUBSTITUTION_NEWLINE
206 self::CONTEXT_SUBSTITUTION_GROUP => array(
208 self::ACTION_SUBSTITUTION_GROUP_SHOW_FIELD
210 "subactions" => array(
211 self::ACTION_SUBSTITUTION_GROUP_EDIT_FIELD_PROPERTY =>
213 self::SUBACTION_SUBSTITUTION_BOLD
214 ,self::SUBACTION_SUBSTITUTION_NEWLINE
218 self::CONTEXT_SUBSTITUTION_IASS => array(
220 self::ACTION_SUBSTITUTION_IASS_SHOW_FIELD
222 "subactions" => array(
223 self::ACTION_SUBSTITUTION_IASS_EDIT_FIELD_PROPERTY =>
225 self::SUBACTION_SUBSTITUTION_BOLD
226 ,self::SUBACTION_SUBSTITUTION_NEWLINE
240 $ilPluginAdmin = $DIC[
'ilPluginAdmin'];
244 foreach ($ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"AdvancedMetaData",
"amdc") as $plugin_name) {
245 $res[] = $ilPluginAdmin->getPluginObject(
260 $ilAccess = $DIC[
'ilAccess'];
269 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 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
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 CONTEXT_SUBSTITUTION_IASS
const ACTION_SUBSTITUTION_GROUP_SHOW_FIELD
const ACTION_SUBSTITUTION_GROUP_EDIT_FIELD_PROPERTY