ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjAdvancedEditingGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once "./Services/Object/classes/class.ilObjectGUI.php";
6
18{
22 protected $rbacsystem;
23
27 protected $rbacadmin;
28
32 protected $tabs;
33
37 protected $access;
38
42 protected $settings;
43
45
49 public function __construct($a_data, $a_id, $a_call_by_reference)
50 {
51 global $DIC;
52
53 $this->rbacsystem = $DIC->rbac()->system();
54 $this->rbacadmin = $DIC->rbac()->admin();
55 $this->ctrl = $DIC->ctrl();
56 $this->tabs = $DIC->tabs();
57 $this->tpl = $DIC["tpl"];
58 $this->lng = $DIC->language();
59 $this->access = $DIC->access();
60 $this->settings = $DIC->settings();
61 $rbacsystem = $DIC->rbac()->system();
62
63 $this->type = "adve";
64 parent::__construct($a_data, $a_id, $a_call_by_reference, false);
65 $this->lng->loadLanguageModule('adve');
66 $this->lng->loadLanguageModule('meta');
67 }
68
69 public function executeCommand()
70 {
71 if (!$this->rbacsystem->checkAccess('read', $this->object->getRefId())) {
72 $mess = str_replace("%s", $this->object->getTitle(), $this->lng->txt("msg_no_perm_read_item"));
73 $this->ilias->raiseError($mess, $this->ilias->error_obj->WARNING);
74 }
75
76 $next_class = $this->ctrl->getNextClass($this);
77 $cmd = $this->ctrl->getCmd();
78 $this->prepareOutput();
79
80 switch ($next_class) {
81
82 case 'ilpermissiongui':
83 include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
84 $perm_gui = new ilPermissionGUI($this);
85 $ret = &$this->ctrl->forwardCommand($perm_gui);
86 break;
87
88 default:
89 if ($cmd == "" || $cmd == "view") {
90 $cmd = "showGeneralPageEditorSettings";
91 }
92 $cmd .= "Object";
93 $this->$cmd();
94
95 break;
96 }
97 return true;
98 }
99
104 public function saveObject()
105 {
106 $this->checkPermission("write");
107
108 parent::saveObject();
109
110 // always send a message
111 ilUtil::sendSuccess($this->lng->txt("object_added"), true);
112 $this->ctrl->redirect($this);
113 }
114
115 public function getAdminTabs()
116 {
117 $this->getTabs();
118 }
119
123 public function addSubtabs()
124 {
125 $ilCtrl = $this->ctrl;
126
127 if ($ilCtrl->getNextClass() != "ilpermissiongui" &&
128 !in_array($ilCtrl->getCmd(), array("showPageEditorSettings",
129 "showGeneralPageEditorSettings", "showCharSelectorSettings", "", "view"))) {
130 $this->tabs_gui->addSubTabTarget(
131 "adve_general_settings",
132 $this->ctrl->getLinkTarget($this, "settings"),
133 array("settings", "saveSettings"),
134 "",
135 ""
136 );
137 $this->tabs_gui->addSubTabTarget(
138 "adve_assessment_settings",
139 $this->ctrl->getLinkTarget($this, "assessment"),
140 array("assessment", "saveAssessmentSettings"),
141 "",
142 ""
143 );
144 $this->tabs_gui->addSubTabTarget(
145 "adve_survey_settings",
146 $this->ctrl->getLinkTarget($this, "survey"),
147 array("survey", "saveSurveySettings"),
148 "",
149 ""
150 );
151 $this->tabs_gui->addSubTabTarget(
152 "adve_frm_post_settings",
153 $this->ctrl->getLinkTarget($this, "frmPost"),
154 array("frmPost", "saveFrmPostSettings"),
155 "",
156 ""
157 );
158 $this->tabs_gui->addSubTabTarget(
159 "adve_excass_settings",
160 $this->ctrl->getLinkTarget($this, "excass"),
161 array("excass", "saveExcAssSettings"),
162 "",
163 ""
164 );
165 }
166 }
167
172 {
173 $ilCtrl = $this->ctrl;
174 $ilTabs = $this->tabs;
175
176 $ilTabs->addSubTabTarget(
177 "adve_pe_general",
178 $ilCtrl->getLinkTarget($this, "showGeneralPageEditorSettings"),
179 array("showGeneralPageEditorSettings", "", "view")
180 );
181
182 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
184
185 foreach ($grps as $g => $types) {
186 $ilCtrl->setParameter($this, "grp", $g);
187 $ilTabs->addSubTabTarget(
188 "adve_grp_" . $g,
189 $ilCtrl->getLinkTarget($this, "showPageEditorSettings"),
190 array("showPageEditorSettings")
191 );
192 }
193 $ilCtrl->setParameter($this, "grp", $_GET["grp"]);
194 }
195
201 public function getTabs()
202 {
204
205 if ($rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
206 $this->tabs_gui->addTarget(
207 "adve_page_editor_settings",
208 $this->ctrl->getLinkTarget($this, "showGeneralPageEditorSettings"),
209 array("showPageEditorSettings", "","view")
210 );
211
212 $this->tabs_gui->addTarget(
213 "adve_rte_settings",
214 $this->ctrl->getLinkTarget($this, "settings"),
215 array("settings","assessment", "survey", "frmPost", "excass"),
216 "",
217 ""
218 );
219
220 $this->tabs_gui->addTarget(
221 "adve_char_selector_settings",
222 $this->ctrl->getLinkTarget($this, "showCharSelectorSettings"),
223 array("showCharSelectorSettings", "","view")
224 );
225 }
226
227 if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
228 $this->tabs_gui->addTarget(
229 "perm_settings",
230 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
231 array("perm","info","owner"),
232 'ilpermissiongui'
233 );
234 }
235 $this->addSubtabs($this->tabs_gui);
236 }
237
238
242 public function settingsObject()
243 {
245 $ilCtrl = $this->ctrl;
247
248 $editor = $this->object->_getRichTextEditor();
249
250 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
251 $this->form = new ilPropertyFormGUI();
252 $this->form->setFormAction($ilCtrl->getFormAction($this));
253 $this->form->setTitle($lng->txt("adve_activation"));
254 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_use_tiny_mce"), "use_tiny");
255 if ($editor == "tinymce") {
256 $cb->setChecked(true);
257 }
258 $this->form->addItem($cb);
259 if ($this->checkPermissionBool("write")) {
260 $this->form->addCommandButton("saveSettings", $lng->txt("save"));
261 }
262
263 $tpl->setContent($this->form->getHTML());
264 }
265
269 public function saveSettingsObject()
270 {
271 $this->checkPermission("write");
272
273 if ($_POST["use_tiny"]) {
274 $this->object->setRichTextEditor("tinymce");
275 } else {
276 $this->object->setRichTextEditor("");
277 }
278 ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
279
280 $this->ctrl->redirect($this, 'settings');
281 }
282
283
287 public function assessmentObject()
288 {
289 $form = $this->initTagsForm(
290 "assessment",
291 "saveAssessmentSettings",
292 "advanced_editing_assessment_settings"
293 );
294
295 $this->tpl->setContent($form->getHTML());
296 }
297
299 {
300 $form = $this->initTagsForm(
301 "assessment",
302 "saveAssessmentSettings",
303 "advanced_editing_assessment_settings"
304 );
305 if (!$this->saveTags("assessment", "assessment", $form)) {
306 $form->setValuesByPost();
307 $this->tpl->setContent($form->getHTML());
308 }
309 }
310
311
315 public function surveyObject()
316 {
317 $form = $this->initTagsForm(
318 "survey",
319 "saveSurveySettings",
320 "advanced_editing_survey_settings"
321 );
322
323 $this->tpl->setContent($form->getHTML());
324 }
325
326 public function saveSurveySettingsObject()
327 {
328 $form = $this->initTagsForm(
329 "survey",
330 "saveSurveySettings",
331 "advanced_editing_survey_settings"
332 );
333 if (!$this->saveTags("survey", "survey", $form)) {
334 $form->setValuesByPost();
335 $this->tpl->setContent($form->getHTML());
336 }
337 }
338
339
343 public function frmPostObject()
344 {
345 $form = $this->initTagsForm(
346 "frm_post",
347 "saveFrmPostSettings",
348 "advanced_editing_frm_post_settings"
349 );
350
351 $this->tpl->setContent($form->getHTML());
352 }
353
355 {
356 $form = $this->initTagsForm(
357 "frm_post",
358 "saveFrmPostSettings",
359 "advanced_editing_frm_post_settings"
360 );
361 if (!$this->saveTags("frm_post", "frmPost", $form)) {
362 $form->setValuesByPost();
363 $this->tpl->setContent($form->getHTML());
364 }
365 }
366
367
371 public function excAssObject()
372 {
373 $form = $this->initTagsForm(
374 "exc_ass",
375 "saveExcAssSettings",
376 "advanced_editing_excass_settings"
377 );
378
379 $this->tpl->setContent($form->getHTML());
380 }
381
382 public function saveExcAssSettingsObject()
383 {
384 $form = $this->initTagsForm(
385 "exc_ass",
386 "saveExcAssSettings",
387 "advanced_editing_excass_settings"
388 );
389 if (!$this->saveTags("exc_ass", "excAss", $form)) {
390 $form->setValuesByPost();
391 $this->tpl->setContent($form->getHTML());
392 }
393 }
394
395
396 protected function initTagsForm($a_id, $a_cmd, $a_title)
397 {
398 $ilAccess = $this->access;
399
400 include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
401 $form = new ilPropertyFormGUI();
402 $form->setFormAction($this->ctrl->getFormAction($this, $a_cmd));
403 $form->setTitle($this->lng->txt($a_title));
404
405 $alltags = $this->object->getHTMLTags();
406 $alltags = array_combine($alltags, $alltags);
407
408 include_once "Services/Form/classes/class.ilMultiSelectInputGUI.php";
409 $tags = new ilMultiSelectInputGUI($this->lng->txt("advanced_editing_allow_html_tags"), "html_tags");
410 $tags->setHeight(400);
411 $tags->enableSelectAll(true);
412 $tags->enableSelectedFirst(true);
413 $tags->setOptions($alltags);
414 $tags->setValue(ilObjAdvancedEditing::_getUsedHTMLTags($a_id));
415 $form->addItem($tags);
416
417 if ($ilAccess->checkAccess("write", "", $this->object->getRefId())) {
418 $form->addCommandButton($a_cmd, $this->lng->txt("save"));
419 }
420
421 return $form;
422 }
423
424 protected function saveTags($a_id, $a_cmd, $form)
425 {
426 $this->checkPermission("write");
427 try {
428 if ($form->checkInput()) {
429 // get rid of select all
430 if (is_array($_POST['html_tags']) && $_POST['html_tags'][0] == "") {
431 unset($_POST['html_tags'][0]);
432 }
433
434 $this->object->setUsedHTMLTags((array) $_POST['html_tags'], $a_id);
435 ilUtil::sendSuccess($this->lng->txt('msg_obj_modified'), true);
436 } else {
437 return false;
438 }
440 ilUtil::sendInfo($e->getMessage(), true);
441 }
442
443 $this->ctrl->redirect($this, $a_cmd);
444 return true;
445 }
446
447
452 {
454 $ilTabs = $this->tabs;
455 $ilCtrl = $this->ctrl;
456
457 $this->addPageEditorSettingsSubTabs();
458
459 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
461
462 $this->cgrp = $_GET["grp"];
463 if ($this->cgrp == "") {
464 $this->cgrp = key($grps);
465 }
466
467 $ilCtrl->setParameter($this, "grp", $this->cgrp);
468 $ilTabs->setSubTabActive("adve_grp_" . $this->cgrp);
469
470 $this->initPageEditorForm();
471 $tpl->setContent($this->form->getHtml());
472 }
473
479 public function initPageEditorForm($a_mode = "edit")
480 {
483
484 $lng->loadLanguageModule("content");
485
486 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
487 $this->form = new ilPropertyFormGUI();
488
489 if ($this->cgrp == "test") {
490 require_once 'Modules/Test/classes/class.ilObjAssessmentFolder.php';
491
492 $this->form->setTitle($lng->txt("adve_activation"));
493 $cb = new ilCheckboxInputGUI($this->lng->txt("advanced_editing_tst_editing"), "tst_page_edit");
494 $cb->setInfo($this->lng->txt("advanced_editing_tst_editing_desc"));
496 $cb->setChecked(true);
497 }
498 $this->form->addItem($cb);
499
500 $sh = new ilFormSectionHeaderGUI();
501 $sh->setTitle($lng->txt("adve_text_content_features"));
502 $this->form->addItem($sh);
503 } elseif ($this->cgrp == "rep") {
504 $this->form->setTitle($lng->txt("adve_activation"));
505 $cb = new ilCheckboxInputGUI($this->lng->txt("advanced_editing_rep_page_editing"), "cat_page_edit");
506 $cb->setInfo($this->lng->txt("advanced_editing_rep_page_editing_desc"));
507 if ($ilSetting->get("enable_cat_page_edit")) {
508 $cb->setChecked(true);
509 }
510 $this->form->addItem($cb);
511
512 $sh = new ilFormSectionHeaderGUI();
513 $sh->setTitle($lng->txt("adve_text_content_features"));
514 $this->form->addItem($sh);
515 } else {
516 $this->form->setTitle($lng->txt("adve_text_content_features"));
517 }
518
519
520 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
521
522 include_once("./Services/COPage/classes/class.ilPageContentGUI.php");
524 foreach ($buttons as $b => $t) {
525 // command button activation
526 $cb = new ilCheckboxInputGUI(str_replace(":", "", $this->lng->txt("cont_text_" . $b)), "active_" . $b);
527 $cb->setChecked(ilPageEditorSettings::lookupSetting($this->cgrp, "active_" . $b, true));
528 $this->form->addItem($cb);
529 }
530
531 // save and cancel commands
532 if ($this->checkPermissionBool("write")) {
533 $this->form->addCommandButton("savePageEditorSettings", $lng->txt("save"));
534 }
535
536 $this->form->setFormAction($this->ctrl->getFormAction($this));
537 }
538
544 {
546 $ilCtrl = $this->ctrl;
548
549 $this->checkPermission("write");
550
551 $this->initPageEditorForm();
552 if ($this->form->checkInput()) {
553 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
554 include_once("./Services/COPage/classes/class.ilPageContentGUI.php");
556 foreach ($buttons as $b => $t) {
558 $_GET["grp"],
559 "active_" . $b,
560 $this->form->getInput("active_" . $b)
561 );
562 }
563
564 if ($_GET["grp"] == "test") {
565 $ilSetting->set("enable_tst_page_edit", (int) $_POST["tst_page_edit"]);
566 } elseif ($_GET["grp"] == "rep") {
567 $ilSetting->set("enable_cat_page_edit", (int) $_POST["cat_page_edit"]);
568 }
569
570 ilUtil::sendInfo($lng->txt("msg_obj_modified"), true);
571 }
572
573 $ilCtrl->setParameter($this, "grp", $_GET["grp"]);
574 $ilCtrl->redirect($this, "showPageEditorSettings");
575 }
576
577
582 {
584 $ilTabs = $this->tabs;
585
586 $this->addPageEditorSettingsSubTabs();
587 $ilTabs->activateTab("adve_page_editor_settings");
588
589 $form = $this->initGeneralPageSettingsForm();
590 $tpl->setContent($form->getHTML());
591 }
592
597 {
599 $ilCtrl = $this->ctrl;
600
601 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
602 $form = new ilPropertyFormGUI();
603
604 $aset = new ilSetting("adve");
605
606 // use physical character styles
607 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_use_physical"), "use_physical");
608 $cb->setInfo($this->lng->txt("adve_use_physical_info"));
609 $cb->setChecked($aset->get("use_physical"));
610 $form->addItem($cb);
611
612 // blocking mode
613 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_blocking_mode"), "block_mode_act");
614 $cb->setChecked($aset->get("block_mode_minutes") > 0);
615 $form->addItem($cb);
616
617 // number of minutes
618 $ni = new ilNumberInputGUI($this->lng->txt("adve_minutes"), "block_mode_minutes");
619 $ni->setMinValue(2);
620 $ni->setMaxLength(5);
621 $ni->setSize(5);
622 $ni->setRequired(true);
623 $ni->setInfo($this->lng->txt("adve_minutes_info"));
624 $ni->setValue($aset->get("block_mode_minutes"));
625 $cb->addSubItem($ni);
626
627 // autosave
628 $as = new ilNumberInputGUI($this->lng->txt("adve_autosave"), "autosave");
629 $as->setSuffix($this->lng->txt("seconds"));
630 $as->setMaxLength(5);
631 $as->setSize(5);
632 $as->setInfo($this->lng->txt("adve_autosave_info"));
633 $as->setValue($aset->get("autosave"));
634 $form->addItem($as);
635
636 // auto url linking
637 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_auto_url_linking"), "auto_url_linking");
638 $cb->setChecked($aset->get("auto_url_linking"));
639 $cb->setInfo($this->lng->txt("adve_auto_url_linking_info"));
640 $form->addItem($cb);
641
642 if ($this->checkPermissionBool("write")) {
643 $form->addCommandButton("saveGeneralPageSettings", $lng->txt("save"));
644 }
645
646 // enable html/js
647 $this->lng->loadLanguageModule("copg");
648 $sh = new ilFormSectionHeaderGUI();
649 $sh->setTitle($lng->txt("copg_allow_html"));
650 $sh->setInfo($lng->txt("copg_allow_html_info"));
651 $form->addItem($sh);
652
653 $comps = ilComponent::getAll();
654 $comps_per_dir = array_column(array_map(function ($k, $v) {
655 return [$v["type"] . "/" . $v["name"], $v];
656 }, array_keys($comps), $comps), 1, 0);
657
658 $cdef = new ilCOPageObjDef();
659 foreach ($cdef->getDefinitions() as $key => $def) {
660 if (in_array($key, $this->getPageObjectKeysWithOptionalHTML())) {
661 $comp_id = $comps_per_dir[$def["component"]]["id"];
662 $this->lng->loadLanguageModule($comp_id);
663 $cb = new ilCheckboxInputGUI($def["component"] . ": " . $this->lng->txt($comp_id . "_page_type_" . $key), "act_html_" . $key);
664 $cb->setChecked($aset->get("act_html_" . $key));
665 $form->addItem($cb);
666 }
667 }
668
669 // workaround for glossaries to force rewriting of shot texts
671
672
673 $form->setTitle($lng->txt("adve_pe_general"));
674 $form->setFormAction($ilCtrl->getFormAction($this));
675
676 return $form;
677 }
678
689 {
690 return ["lobj","copa","mep","blp","prtf","prtt","gdf","lm","qht","qpl","qfbg","qfbs","sahs","stys","cont","cstr","auth"];
691 }
692
697 {
698 $ilCtrl = $this->ctrl;
701
702 $this->checkPermission("write");
703
704 $form = $this->initGeneralPageSettingsForm();
705 if ($form->checkInput()) {
706 $autosave = (int) $form->getInput("autosave");
707 $ok = true;
708
709 // autosave must be greater 10, if activated
710 if ($autosave > 0 && $autosave < 10) {
711 $form->getItemByPostVar("autosave")->setAlert($this->lng->txt("adve_autosave_info_min_10"));
712 $ok = false;
713 }
714
715 if ($ok) {
716 $aset = new ilSetting("adve");
717 $aset->set("use_physical", $_POST["use_physical"]);
718 if ($_POST["block_mode_act"]) {
719 $aset->set("block_mode_minutes", (int) $_POST["block_mode_minutes"]);
720 } else {
721 $aset->set("block_mode_minutes", 0);
722 }
723 $aset->set("auto_url_linking", $_POST["auto_url_linking"]);
724
725 $aset->set("autosave", $form->getInput("autosave"));
726
727 $def = new ilCOPageObjDef();
728 foreach ($def->getDefinitions() as $key => $def) {
729 if (in_array($key, $this->getPageObjectKeysWithOptionalHTML())) {
730 $aset->set("act_html_" . $key, (int) $_POST["act_html_" . $key]);
731 }
732 }
733
734 ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
735 $ilCtrl->redirect($this, "showGeneralPageEditorSettings");
736 }
737 }
738
739 $form->setValuesByPost();
740 $tpl->setContent($form->getHTML());
741 }
742
746 public function initCharSelectorSettingsForm(ilCharSelectorGUI $char_selector)
747 {
749 $ilCtrl = $this->ctrl;
750
751 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
752 $form = new ilPropertyFormGUI();
753 $form->setTitle($lng->txt('settings'));
754 $form->setFormAction($ilCtrl->getFormAction($this));
755 if ($this->checkPermissionBool("write")) {
756 $form->addCommandButton("saveCharSelectorSettings", $lng->txt("save"));
757 }
758 $char_selector->addFormProperties($form);
759
760 return $form;
761 }
762
763
768 {
769 $ilTabs = $this->tabs;
772
773 $ilTabs->activateTab("adve_char_selector_settings");
774
775 require_once 'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
777 $char_selector->getConfig()->setAvailability($ilSetting->get('char_selector_availability'));
778 $char_selector->getConfig()->setDefinition($ilSetting->get('char_selector_definition'));
779 $form = $this->initCharSelectorSettingsForm($char_selector);
780 $char_selector->setFormValues($form);
781 $tpl->setContent($form->getHTML());
782 }
783
784
789 {
791 $ilCtrl = $this->ctrl;
794
795 $this->checkPermission("write");
796
797 require_once 'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
799 $form = $this->initCharSelectorSettingsForm($char_selector);
800 if ($form->checkInput()) {
801 $char_selector->getFormValues($form);
802
803 $ilSetting->set('char_selector_availability', $char_selector->getConfig()->getAvailability());
804 $ilSetting->set('char_selector_definition', $char_selector->getConfig()->getDefinition());
805
806 ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
807 $ilCtrl->redirect($this, "showCharSelectorSettings");
808 }
809 $form->setValuesByPost();
810 $tpl->setContent($form->getHTML());
811 }
812} // END class.ilObjAdvancedEditingGUI
$_GET["client_id"]
$_POST["username"]
An exception for terminatinating execution or to throw for unit testing.
Class for advanced editing exception handling in ILIAS.
COPage page object definition handler.
This shows a character selector.
addFormProperties(ilPropertyFormGUI $a_form)
add the configuration elements to a property form
This class represents a checkbox property in a property form.
static getAll()
Get all.
This class represents a section header in a property form.
static setShortTextsDirtyGlobally()
Set short texts dirty.
This class represents a multi selection list property in a property form.
This class represents a number property in a property form.
Class ilObjAdvancedEditingGUI.
showPageEditorSettingsObject()
Show page editor settings.
saveGeneralPageSettingsObject()
Save general page settings.
showGeneralPageEditorSettingsObject()
Show general page editor settings.
saveCharSelectorSettingsObject()
Save the settings for the selector of unicode characters.
initTagsForm($a_id, $a_cmd, $a_title)
surveyObject()
Display settings for surveys.
excAssObject()
Display settings for exercise assignments.
frmPostObject()
Display settings for forums.
getAdminTabs()
administration tabs show only permissions and trash folder
initGeneralPageSettingsForm()
Init general page editor settings form.
saveObject()
save object @access public
saveSettingsObject()
Save Assessment settings.
settingsObject()
Display assessment folder settings form.
initCharSelectorSettingsForm(ilCharSelectorGUI $char_selector)
Init the settings form for the selector of unicode characters.
getPageObjectKeysWithOptionalHTML()
This limits the possibility to allow html for these page objects that supported the feature in the pa...
initPageEditorForm($a_mode="edit")
Init page editor form.
addPageEditorSettingsSubtabs()
Show page editor settings subtabs.
showCharSelectorSettingsObject()
Show the settings for the selector of unicode characters.
assessmentObject()
Display settings for test and assessment.
savePageEditorSettingsObject()
Save page editor settings form.
__construct($a_data, $a_id, $a_call_by_reference)
Constructor.
static _getUsedHTMLTags($a_module="")
Returns an array of all allowed HTML tags for text editing.
const ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_DISABLED
Class ilObjectGUI Basic methods of all Output classes.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
static _getCommonBBButtons()
Get common bb buttons.
static lookupSetting($a_grp, $a_name, $a_default=false)
Lookup setting.
static getGroups()
Get all settings groups.
static writeSetting($a_grp, $a_name, $a_value)
Write Setting.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
This class represents a property form user interface.
ILIAS Setting Class.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
redirection script todo: (a better solution should control the processing via a xml file)
$ret
Definition: parser.php:6
global $ilSetting
Definition: privfeed.php:17
settings()
Definition: settings.php:2