24 require_once
"./classes/class.ilObject.php";
46 include_once
"./Services/Administration/classes/class.ilSetting.php";
47 $this->setting =
new ilSetting(
"advanced_editing");
49 $this->
ilObject($a_id,$a_call_by_reference);
60 if (!parent::update())
80 if (!parent::delete())
102 return $roles ? $roles : array();
118 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
158 if ($a_node_id==
$_GET[
"ref_id"])
160 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
161 $parent_type = $parent_obj->getType();
162 if($parent_type == $this->
getType())
164 $a_node_id = (int) $tree->getParentId($a_node_id);
168 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);
182 include_once
"./Services/Administration/classes/class.ilSetting.php";
184 $tags =
$setting->get(
"advanced_editing_used_html_tags_" . $a_module);
187 $usedtags = unserialize($tags);
240 foreach ($tags as $tag)
256 include_once
"./Services/Administration/classes/class.ilSetting.php";
258 $js =
$setting->get(
"advanced_editing_javascript_editor");
271 include_once
"./Services/Administration/classes/class.ilSetting.php";
273 $setting->set(
"advanced_editing_javascript_editor", $a_js_editor);
290 if (strlen($a_module))
292 $auto_added_tags = array();
294 include_once
"./Services/Administration/classes/class.ilSetting.php";
296 $setting->set(
"advanced_editing_used_html_tags_" . $a_module, serialize(array_merge((array)$a_html_tags, $auto_added_tags)));
298 if(count($auto_added_tags))
300 require_once
'Services/AdvancedEditing/exceptions/class.ilAdvancedEditingRequiredTagsException.php';
303 $lng->txt(
'advanced_editing_required_tags'),
304 implode(
', ', $auto_added_tags)
475 foreach ($tags as $tag)
492 $ilUser->writePref(
"show_rte", $a_state);
505 if (strlen($ilUser->getPref(
"show_rte")) > 0)
507 return $ilUser->getPref(
"show_rte");