4 include_once
"Services/Component/classes/class.ilClaimingPermissionHelper.php";
71 switch($a_context_type)
73 case self::CONTEXT_MD:
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);