4include_once
"Services/Component/classes/class.ilClaimingPermissionHelper.php";
76 return array($_REQUEST[
"ref_id"]);
79 $set =
$ilDB->query(
"SELECT record_id id" .
80 " FROM adv_md_record");
87 $set =
$ilDB->query(
"SELECT field_id id" .
88 " FROM adv_mdf_definition");
92 return [
'crs',
'cat',
'sess'];
111 self::CONTEXT_MD => array(
113 self::ACTION_MD_CREATE_RECORD
114 ,self::ACTION_MD_IMPORT_RECORDS
117 self::CONTEXT_RECORD => array(
119 self::ACTION_RECORD_EDIT
120 ,self::ACTION_RECORD_DELETE
121 ,self::ACTION_RECORD_EXPORT
122 ,self::ACTION_RECORD_TOGGLE_ACTIVATION
123 ,self::ACTION_RECORD_EDIT_FIELDS
124 ,self::ACTION_RECORD_FIELD_POSITIONS
125 ,self::ACTION_RECORD_CREATE_FIELD
127 "subactions" => array(
128 self::ACTION_RECORD_EDIT_PROPERTY =>
130 self::SUBACTION_RECORD_TITLE
131 ,self::SUBACTION_RECORD_DESCRIPTION
132 ,self::SUBACTION_RECORD_OBJECT_TYPES
136 self::CONTEXT_FIELD => array(
138 self::ACTION_FIELD_EDIT,
139 self::ACTION_FIELD_DELETE
141 "subactions" => array(
142 self::ACTION_FIELD_EDIT_PROPERTY =>
144 self::SUBACTION_FIELD_TITLE
145 ,self::SUBACTION_FIELD_DESCRIPTION
146 ,self::SUBACTION_FIELD_SEARCHABLE
147 ,self::SUBACTION_FIELD_PROPERTIES
151 self::CONTEXT_SUBSTITUTION => array(
153 self::ACTION_SUBSTITUTION_SHOW_DESCRIPTION
154 ,self::ACTION_SUBSTITUTION_SHOW_FIELDNAMES
155 ,self::ACTION_SUBSTITUTION_FIELD_POSITIONS
158 self::CONTEXT_SUBSTITUTION_COURSE => array(
160 self::ACTION_SUBSTITUTION_COURSE_SHOW_FIELD
162 "subactions" => array(
163 self::ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY =>
165 self::SUBACTION_SUBSTITUTION_BOLD
166 ,self::SUBACTION_SUBSTITUTION_NEWLINE
170 self::CONTEXT_SUBSTITUTION_CATEGORY => array(
172 self::ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD
174 "subactions" => array(
175 self::ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY =>
177 self::SUBACTION_SUBSTITUTION_BOLD
178 ,self::SUBACTION_SUBSTITUTION_NEWLINE
182 self::CONTEXT_SUBSTITUTION_SESSION => array(
184 self::ACTION_SUBSTITUTION_SESSION_SHOW_FIELD
186 "subactions" => array(
187 self::ACTION_SUBSTITUTION_SESSION_EDIT_FIELD_PROPERTY =>
189 self::SUBACTION_SUBSTITUTION_BOLD
190 ,self::SUBACTION_SUBSTITUTION_NEWLINE
203 global $ilPluginAdmin;
207 foreach ($ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"AdvancedMetaData",
"amdc") as $plugin_name) {
208 $res[] = $ilPluginAdmin->getPluginObject(
230 return $ilAccess->checkAccessOfUser($this->
getUserId(),
"read",
"", $this->
getRefId());
An exception for terminatinating execution or to throw for unit testing.
Advanced metadata permission helper.
const ACTION_SUBSTITUTION_COURSE_SHOW_FIELD
const SUBACTION_FIELD_SEARCHABLE
const CONTEXT_SUBSTITUTION_SESSION
const ACTION_RECORD_EXPORT
const ACTION_SUBSTITUTION_SHOW_FIELDNAMES
const SUBACTION_RECORD_DESCRIPTION
const ACTION_SUBSTITUTION_FIELD_POSITIONS
buildPermissionMap()
Build map of context and actions.
const ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY
checkPermission($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null)
Check permission (helper: rbac, plugins)
const ACTION_RECORD_CREATE_FIELD
const SUBACTION_FIELD_DESCRIPTION
const CONTEXT_SUBSTITUTION_COURSE
const CONTEXT_SUBSTITUTION_CATEGORY
const ACTION_RECORD_EDIT_FIELDS
const ACTION_RECORD_FIELD_POSITIONS
const SUBACTION_RECORD_TITLE
const ACTION_SUBSTITUTION_SHOW_DESCRIPTION
const SUBACTION_SUBSTITUTION_BOLD
const ACTION_FIELD_EDIT_PROPERTY
const ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY
const SUBACTION_FIELD_PROPERTIES
const ACTION_RECORD_TOGGLE_ACTIVATION
const SUBACTION_SUBSTITUTION_NEWLINE
const ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD
const SUBACTION_FIELD_TITLE
const ACTION_MD_CREATE_RECORD
const CONTEXT_SUBSTITUTION
const ACTION_RECORD_EDIT_PROPERTY
const ACTION_SUBSTITUTION_SESSION_SHOW_FIELD
const ACTION_MD_IMPORT_RECORDS
const SUBACTION_RECORD_OBJECT_TYPES
const ACTION_SUBSTITUTION_SESSION_EDIT_FIELD_PROPERTY
readContextIds($a_context_type)
Get all context ids for context type (from DB, is cached)
const ACTION_RECORD_DELETE
getActivePlugins()
Get active plugins (for current slot)
const ACTION_FIELD_DELETE
Claiming permission helper base class.
checkPlugins($a_context_type, $a_context_id, $a_action_id, $a_action_sub_id=null)
Check permission against plugins.
checkRBAC()
Check permission against RBAC.
foreach($_POST as $key=> $value) $res