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