ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilObjAdvancedEditingGUI Class Reference

Class ilObjAdvancedEditingGUI. More...

+ Inheritance diagram for ilObjAdvancedEditingGUI:
+ Collaboration diagram for ilObjAdvancedEditingGUI:

Public Member Functions

 ilObjAdvancedEditingGUI ($a_data, $a_id, $a_call_by_reference)
 Constructor. More...
 
executeCommand ()
 execute command More...
 
 saveObject ()
 save object @access public More...
 
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
 addSubtabs (&$tabs_gui)
 Add rte subtabs. More...
 
 addPageEditorSettingsSubtabs ()
 Show page editor settings subtabs. More...
 
 getTabs (&$tabs_gui)
 get tabs @access public More...
 
 settingsObject ()
 Display assessment folder settings form. More...
 
 saveSettingsObject ()
 Save Assessment settings. More...
 
 assessmentObject ()
 Display settings for test and assessment. More...
 
 saveAssessmentSettingsObject ()
 
 surveyObject ()
 Display settings for surveys. More...
 
 saveSurveySettingsObject ()
 
 frmPostObject ()
 Display settings for forums. More...
 
 saveFrmPostSettingsObject ()
 
 excAssObject ()
 Display settings for exercise assignments. More...
 
 saveExcAssSettingsObject ()
 
 showPageEditorSettingsObject ()
 Show page editor settings. More...
 
 initPageEditorForm ($a_mode="edit")
 Init page editor form. More...
 
 savePageEditorSettingsObject ()
 Save page editor settings form. More...
 
 showGeneralPageEditorSettingsObject ()
 Show general page editor settings. More...
 
 initGeneralPageSettingsForm ()
 Init general page editor settings form. More...
 
 saveGeneralPageSettingsObject ()
 Save general page settings. More...
 
 initCharSelectorSettingsForm (ilCharSelectorGUI $char_selector)
 Init the settings form for the selector of unicode characters. More...
 
 showCharSelectorSettingsObject ()
 Show the settings for the selector of unicode characters. More...
 
 saveCharSelectorSettingsObject ()
 Save the settings for the selector of unicode characters. More...
 
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor @access public. More...
 
executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ($in_rep=false)
 cancel action and go back to previous page @access public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 

Data Fields

 $conditions
 
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $ilias
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Protected Member Functions

 initTagsForm ($a_id, $a_cmd, $a_title)
 
 saveTags ($a_id, $a_cmd)
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 prepareOutput ()
 prepare output More...
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs @access public More...
 
 setAdminTabs ()
 set admin tabs @access public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste More...
 
 getTabs (&$tabs_gui)
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings ($column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 
- Protected Attributes inherited from ilObjectGUI
 $tmp_import_dir
 

Detailed Description

Class ilObjAdvancedEditingGUI.

Author
Helmut Schottmüller hscho.nosp@m.ttm@.nosp@m.gmx.d.nosp@m.e
Version
$Id$

@ilCtrl_Calls ilObjAdvancedEditingGUI: ilPermissionGUI

Definition at line 17 of file class.ilObjAdvancedEditingGUI.php.

Member Function Documentation

◆ addPageEditorSettingsSubtabs()

ilObjAdvancedEditingGUI::addPageEditorSettingsSubtabs ( )

Show page editor settings subtabs.

Definition at line 130 of file class.ilObjAdvancedEditingGUI.php.

131 {
132 global $ilCtrl, $ilTabs;
133
134 $ilTabs->addSubTabTarget("adve_pe_general",
135 $ilCtrl->getLinkTarget($this, "showGeneralPageEditorSettings"),
136 array("showGeneralPageEditorSettings", "", "view"));
137
138 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
140
141 foreach ($grps as $g => $types)
142 {
143 $ilCtrl->setParameter($this, "grp", $g);
144 $ilTabs->addSubTabTarget("adve_grp_".$g,
145 $ilCtrl->getLinkTarget($this, "showPageEditorSettings"),
146 array("showPageEditorSettings"));
147 }
148 $ilCtrl->setParameter($this, "grp", $_GET["grp"]);
149 }
$_GET["client_id"]
static getGroups()
Get all settings groups.
global $ilCtrl
Definition: ilias.php:18

References $_GET, $ilCtrl, and ilPageEditorSettings\getGroups().

+ Here is the call graph for this function:

◆ addSubtabs()

ilObjAdvancedEditingGUI::addSubtabs ( $tabs_gui)

Add rte subtabs.

Definition at line 96 of file class.ilObjAdvancedEditingGUI.php.

97 {
98 global $ilCtrl;
99
100 if ($ilCtrl->getNextClass() != "ilpermissiongui" &&
101 !in_array($ilCtrl->getCmd(), array("showPageEditorSettings",
102 "showGeneralPageEditorSettings", "showCharSelectorSettings", "", "view")))
103 {
104 $tabs_gui->addSubTabTarget("adve_general_settings",
105 $this->ctrl->getLinkTarget($this, "settings"),
106 array("settings", "saveSettings"),
107 "", "");
108 $tabs_gui->addSubTabTarget("adve_assessment_settings",
109 $this->ctrl->getLinkTarget($this, "assessment"),
110 array("assessment", "saveAssessmentSettings"),
111 "", "");
112 $tabs_gui->addSubTabTarget("adve_survey_settings",
113 $this->ctrl->getLinkTarget($this, "survey"),
114 array("survey", "saveSurveySettings"),
115 "", "");
116 $tabs_gui->addSubTabTarget("adve_frm_post_settings",
117 $this->ctrl->getLinkTarget($this, "frmPost"),
118 array("frmPost", "saveFrmPostSettings"),
119 "", "");
120 $tabs_gui->addSubTabTarget("adve_excass_settings",
121 $this->ctrl->getLinkTarget($this, "excass"),
122 array("excass", "saveExcAssSettings"),
123 "", "");
124 }
125 }

References $ilCtrl.

Referenced by getTabs().

+ Here is the caller graph for this function:

◆ assessmentObject()

ilObjAdvancedEditingGUI::assessmentObject ( )

Display settings for test and assessment.

Definition at line 230 of file class.ilObjAdvancedEditingGUI.php.

231 {
232 $form = $this->initTagsForm("assessment", "saveAssessmentSettings",
233 "advanced_editing_assessment_settings");
234
235 $this->tpl->setContent($form->getHTML());
236 }
initTagsForm($a_id, $a_cmd, $a_title)

References initTagsForm().

+ Here is the call graph for this function:

◆ excAssObject()

ilObjAdvancedEditingGUI::excAssObject ( )

Display settings for exercise assignments.

Definition at line 281 of file class.ilObjAdvancedEditingGUI.php.

282 {
283 $form = $this->initTagsForm("exc_ass", "saveExcAssSettings",
284 "advanced_editing_excass_settings");
285
286 $this->tpl->setContent($form->getHTML());
287 }

References initTagsForm().

+ Here is the call graph for this function:

◆ executeCommand()

& ilObjAdvancedEditingGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

Definition at line 39 of file class.ilObjAdvancedEditingGUI.php.

40 {
41 $next_class = $this->ctrl->getNextClass($this);
42 $cmd = $this->ctrl->getCmd();
43 $this->prepareOutput();
44
45 switch($next_class)
46 {
47
48 case 'ilpermissiongui':
49 include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
50 $perm_gui =& new ilPermissionGUI($this);
51 $ret =& $this->ctrl->forwardCommand($perm_gui);
52 break;
53
54 default:
55 if($cmd == "" || $cmd == "view")
56 {
57 $cmd = "showGeneralPageEditorSettings";
58 }
59 $cmd .= "Object";
60 $this->$cmd();
61
62 break;
63 }
64 return true;
65 }
prepareOutput()
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
$cmd
Definition: sahs_server.php:35

References $cmd, $ret, and ilObjectGUI\prepareOutput().

+ Here is the call graph for this function:

◆ frmPostObject()

ilObjAdvancedEditingGUI::frmPostObject ( )

Display settings for forums.

Definition at line 264 of file class.ilObjAdvancedEditingGUI.php.

265 {
266 $form = $this->initTagsForm("frm_post", "saveFrmPostSettings",
267 "advanced_editing_frm_post_settings");
268
269 $this->tpl->setContent($form->getHTML());
270 }

References initTagsForm().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjAdvancedEditingGUI::getAdminTabs ( $tabs_gui)

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 88 of file class.ilObjAdvancedEditingGUI.php.

89 {
90 $this->getTabs($tabs_gui);
91 }
getTabs(&$tabs_gui)
get tabs @access public

References getTabs().

+ Here is the call graph for this function:

◆ getTabs()

ilObjAdvancedEditingGUI::getTabs ( $tabs_gui)

get tabs @access public

Parameters
objecttabs gui object

Reimplemented from ilObjectGUI.

Definition at line 156 of file class.ilObjAdvancedEditingGUI.php.

157 {
158 global $rbacsystem;
159
160 if ($rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
161 {
162 $tabs_gui->addTarget("adve_page_editor_settings",
163 $this->ctrl->getLinkTarget($this, "showGeneralPageEditorSettings"),
164 array("showPageEditorSettings", "","view"));
165
166 $tabs_gui->addTarget("adve_rte_settings",
167 $this->ctrl->getLinkTarget($this, "settings"),
168 array("settings","assessment", "survey", "frmPost", "excass"), "", "");
169
170 $tabs_gui->addTarget("adve_char_selector_settings",
171 $this->ctrl->getLinkTarget($this, "showCharSelectorSettings"),
172 array("showCharSelectorSettings", "","view"));
173 }
174
175 if ($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
176 {
177 $tabs_gui->addTarget("perm_settings",
178 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"), array("perm","info","owner"), 'ilpermissiongui');
179 }
180 $this->addSubtabs($tabs_gui);
181 }
addSubtabs(&$tabs_gui)
Add rte subtabs.

References addSubtabs().

Referenced by getAdminTabs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ilObjAdvancedEditingGUI()

ilObjAdvancedEditingGUI::ilObjAdvancedEditingGUI (   $a_data,
  $a_id,
  $a_call_by_reference 
)

Constructor.

Definition at line 24 of file class.ilObjAdvancedEditingGUI.php.

25 {
26 global $rbacsystem, $lng;
27
28 $this->type = "adve";
29 $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,false);
30 $this->lng->loadLanguageModule('adve');
31 $this->lng->loadLanguageModule('meta');
32
33 if (!$rbacsystem->checkAccess('read',$this->object->getRefId()))
34 {
35 $this->ilias->raiseError($this->lng->txt("msg_no_perm_read_adve"),$this->ilias->error_obj->WARNING);
36 }
37 }
ilObjectGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor @access public.
redirection script todo: (a better solution should control the processing via a xml file)

References ilObjectGUI\$lng, and ilObjectGUI\ilObjectGUI().

+ Here is the call graph for this function:

◆ initCharSelectorSettingsForm()

ilObjAdvancedEditingGUI::initCharSelectorSettingsForm ( ilCharSelectorGUI  $char_selector)

Init the settings form for the selector of unicode characters.

Definition at line 573 of file class.ilObjAdvancedEditingGUI.php.

574 {
575 global $lng, $ilCtrl;
576
577 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
578 $form = new ilPropertyFormGUI();
579 $form->setTitle($lng->txt('settings'));
580 $form->setFormAction($ilCtrl->getFormAction($this));
581 $form->addCommandButton("saveCharSelectorSettings", $lng->txt("save"));
582 $char_selector->addFormProperties($form);
583
584 return $form;
585 }
addFormProperties(ilPropertyFormGUI $a_form)
add the configuration elements to a property form
This class represents a property form user interface.

References $ilCtrl, ilObjectGUI\$lng, and ilCharSelectorGUI\addFormProperties().

Referenced by saveCharSelectorSettingsObject(), and showCharSelectorSettingsObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initGeneralPageSettingsForm()

ilObjAdvancedEditingGUI::initGeneralPageSettingsForm ( )

Init general page editor settings form.

Definition at line 496 of file class.ilObjAdvancedEditingGUI.php.

497 {
498 global $lng, $ilCtrl;
499
500 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
501 $form = new ilPropertyFormGUI();
502
503 $aset = new ilSetting("adve");
504
505 // use physical character styles
506 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_use_physical"), "use_physical");
507 $cb->setInfo($this->lng->txt("adve_use_physical_info"));
508 $cb->setChecked($aset->get("use_physical"));
509 $form->addItem($cb);
510
511 // blocking mode
512 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_blocking_mode"), "block_mode_act");
513 $cb->setChecked($aset->get("block_mode_minutes") > 0);
514 $form->addItem($cb);
515
516 // number of minutes
517 $ni = new ilNumberInputGUI($this->lng->txt("adve_minutes"), "block_mode_minutes");
518 $ni->setMinValue(2);
519 $ni->setMaxLength(5);
520 $ni->setSize(5);
521 $ni->setRequired(true);
522 $ni->setInfo($this->lng->txt("adve_minutes_info"));
523 $ni->setValue($aset->get("block_mode_minutes"));
524 $cb->addSubItem($ni);
525
526 // auto url linking
527 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_auto_url_linking"), "auto_url_linking");
528 $cb->setChecked($aset->get("auto_url_linking"));
529 $cb->setInfo($this->lng->txt("adve_auto_url_linking_info"));
530 $form->addItem($cb);
531
532 $form->addCommandButton("saveGeneralPageSettings", $lng->txt("save"));
533
534 $form->setTitle($lng->txt("adve_pe_general"));
535 $form->setFormAction($ilCtrl->getFormAction($this));
536
537 return $form;
538 }
This class represents a checkbox property in a property form.
This class represents a number property in a property form.
ILIAS Setting Class.

References $ilCtrl, and ilObjectGUI\$lng.

Referenced by saveGeneralPageSettingsObject(), and showGeneralPageEditorSettingsObject().

+ Here is the caller graph for this function:

◆ initPageEditorForm()

ilObjAdvancedEditingGUI::initPageEditorForm (   $a_mode = "edit")

Init page editor form.

Parameters
int$a_modeEdit Mode

Definition at line 376 of file class.ilObjAdvancedEditingGUI.php.

377 {
378 global $lng, $ilSetting;
379
380 $lng->loadLanguageModule("content");
381
382 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
383 $this->form = new ilPropertyFormGUI();
384
385 if( $this->cgrp == "test" )
386 {
387 require_once 'Modules/Test/classes/class.ilObjAssessmentFolder.php';
388
389 $this->form->setTitle($lng->txt("adve_activation"));
390 $cb = new ilCheckboxInputGUI($this->lng->txt("advanced_editing_tst_editing"), "tst_page_edit");
391 $cb->setInfo($this->lng->txt("advanced_editing_tst_editing_desc"));
393 {
394 $cb->setChecked(true);
395 }
396 $this->form->addItem($cb);
397
398 $sh = new ilFormSectionHeaderGUI();
399 $sh->setTitle($lng->txt("adve_text_content_features"));
400 $this->form->addItem($sh);
401 }
402 elseif ($this->cgrp == "rep")
403 {
404 $this->form->setTitle($lng->txt("adve_activation"));
405 $cb = new ilCheckboxInputGUI($this->lng->txt("advanced_editing_rep_page_editing"), "cat_page_edit");
406 $cb->setInfo($this->lng->txt("advanced_editing_rep_page_editing_desc"));
407 if ($ilSetting->get("enable_cat_page_edit"))
408 {
409 $cb->setChecked(true);
410 }
411 $this->form->addItem($cb);
412
413 $sh = new ilFormSectionHeaderGUI();
414 $sh->setTitle($lng->txt("adve_text_content_features"));
415 $this->form->addItem($sh);
416 }
417 else
418 {
419 $this->form->setTitle($lng->txt("adve_text_content_features"));
420 }
421
422
423 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
424
425 include_once("./Services/COPage/classes/class.ilPageContentGUI.php");
427 foreach ($buttons as $b => $t)
428 {
429 // command button activation
430 $cb = new ilCheckboxInputGUI(str_replace(":", "", $this->lng->txt("cont_text_".$b)), "active_".$b);
431 $cb->setChecked(ilPageEditorSettings::lookupSetting($this->cgrp, "active_".$b, true));
432 $this->form->addItem($cb);
433 }
434
435 // save and cancel commands
436 $this->form->addCommandButton("savePageEditorSettings", $lng->txt("save"));
437
438 $this->form->setFormAction($this->ctrl->getFormAction($this));
439
440 }
This class represents a section header in a property form.
const ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_DISABLED
static _getCommonBBButtons()
Get common bb buttons.
static lookupSetting($a_grp, $a_name, $a_default=false)
Lookup setting.
global $ilSetting
Definition: privfeed.php:40

References $ilSetting, ilObjectGUI\$lng, $t, ilPageContentGUI\_getCommonBBButtons(), ilObjAssessmentFolder\ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_DISABLED, and ilPageEditorSettings\lookupSetting().

Referenced by savePageEditorSettingsObject(), and showPageEditorSettingsObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initTagsForm()

ilObjAdvancedEditingGUI::initTagsForm (   $a_id,
  $a_cmd,
  $a_title 
)
protected

Definition at line 295 of file class.ilObjAdvancedEditingGUI.php.

296 {
297 global $ilAccess;
298
299 include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
300 $form = new ilPropertyFormGUI();
301 $form->setFormAction($this->ctrl->getFormAction($this, $a_cmd));
302 $form->setTitle($this->lng->txt($a_title));
303
304 $alltags = $this->object->getHTMLTags();
305 $alltags = array_combine($alltags, $alltags);
306
307 include_once "Services/Form/classes/class.ilMultiSelectInputGUI.php";
308 $tags = new ilMultiSelectInputGUI($this->lng->txt("advanced_editing_allow_html_tags"), "html_tags");
309 $tags->setHeight(400);
310 $tags->enableSelectAll(true);
311 $tags->enableSelectedFirst(true);
312 $tags->setOptions($alltags);
313 $tags->setValue($this->object->_getUsedHTMLTags($a_id));
314 $form->addItem($tags);
315
316 if ($ilAccess->checkAccess("write", "", $this->object->getRefId()))
317 {
318 $form->addCommandButton($a_cmd, $this->lng->txt("save"));
319 }
320
321 return $form;
322 }
This class represents a multi selection list property in a property form.

Referenced by assessmentObject(), excAssObject(), frmPostObject(), and surveyObject().

+ Here is the caller graph for this function:

◆ saveAssessmentSettingsObject()

ilObjAdvancedEditingGUI::saveAssessmentSettingsObject ( )

Definition at line 238 of file class.ilObjAdvancedEditingGUI.php.

239 {
240 $this->saveTags("assessment", "assessment");
241 }

References saveTags().

+ Here is the call graph for this function:

◆ saveCharSelectorSettingsObject()

ilObjAdvancedEditingGUI::saveCharSelectorSettingsObject ( )

Save the settings for the selector of unicode characters.

Definition at line 610 of file class.ilObjAdvancedEditingGUI.php.

611 {
612 global $ilSetting, $ilCtrl, $lng, $tpl;
613
614 require_once 'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
616 $form = $this->initCharSelectorSettingsForm($char_selector);
617 if ($form->checkInput())
618 {
619 $char_selector->getFormValues($form);
620
621 $ilSetting->set('char_selector_availability', $char_selector->getConfig()->getAvailability());
622 $ilSetting->set('char_selector_definition', $char_selector->getConfig()->getDefinition());
623
624 ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
625 $ilCtrl->redirect($this, "showCharSelectorSettings");
626 }
627 $form->setValuesByPost();
628 $tpl->setContent($form->getHTML());
629 }
This shows a character selector.
initCharSelectorSettingsForm(ilCharSelectorGUI $char_selector)
Init the settings form for the selector of unicode characters.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.

References $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilCharSelectorConfig\CONTEXT_ADMIN, initCharSelectorSettingsForm(), and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ saveExcAssSettingsObject()

ilObjAdvancedEditingGUI::saveExcAssSettingsObject ( )

Definition at line 289 of file class.ilObjAdvancedEditingGUI.php.

290 {
291 $this->saveTags("exc_ass", "excAss");
292 }

References saveTags().

+ Here is the call graph for this function:

◆ saveFrmPostSettingsObject()

ilObjAdvancedEditingGUI::saveFrmPostSettingsObject ( )

Definition at line 272 of file class.ilObjAdvancedEditingGUI.php.

273 {
274 $this->saveTags("frm_post", "frmPost");
275 }

References saveTags().

+ Here is the call graph for this function:

◆ saveGeneralPageSettingsObject()

ilObjAdvancedEditingGUI::saveGeneralPageSettingsObject ( )

Save general page settings.

Definition at line 543 of file class.ilObjAdvancedEditingGUI.php.

544 {
545 global $ilCtrl, $lng, $tpl;
546
547 $form = $this->initGeneralPageSettingsForm();
548 if ($form->checkInput())
549 {
550 $aset = new ilSetting("adve");
551 $aset->set("use_physical", $_POST["use_physical"]);
552 if ($_POST["block_mode_act"])
553 {
554 $aset->set("block_mode_minutes", (int) $_POST["block_mode_minutes"]);
555 }
556 else
557 {
558 $aset->set("block_mode_minutes", 0);
559 }
560 $aset->set("auto_url_linking", $_POST["auto_url_linking"]);
561
562 ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
563 $ilCtrl->redirect($this, "showGeneralPageEditorSettings");
564 }
565
566 $form->setValuesByPost();
567 $tpl->setContent($form->getHTML());
568 }
initGeneralPageSettingsForm()
Init general page editor settings form.
$_POST['username']
Definition: cron.php:12

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, initGeneralPageSettingsForm(), and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ saveObject()

ilObjAdvancedEditingGUI::saveObject ( )

save object @access public

Reimplemented from ilObjectGUI.

Definition at line 71 of file class.ilObjAdvancedEditingGUI.php.

72 {
73 global $rbacadmin;
74
75 // create and insert forum in objecttree
76 $newObj = parent::saveObject();
77
78 // put here object specific stuff
79
80 // always send a message
81 ilUtil::sendSuccess($this->lng->txt("object_added"),true);
82
83 $this->ctrl->redirect($this);
84 //header("Location:".$this->getReturnLocation("save","adm_object.php?".$this->link_params));
85 //exit();
86 }

References ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ savePageEditorSettingsObject()

ilObjAdvancedEditingGUI::savePageEditorSettingsObject ( )

Save page editor settings form.

Definition at line 446 of file class.ilObjAdvancedEditingGUI.php.

447 {
448 global $tpl, $lng, $ilCtrl, $ilSetting;
449
450 $this->initPageEditorForm();
451 if ($this->form->checkInput())
452 {
453 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
454 include_once("./Services/COPage/classes/class.ilPageContentGUI.php");
456 foreach ($buttons as $b => $t)
457 {
458 ilPageEditorSettings::writeSetting($_GET["grp"], "active_".$b,
459 $this->form->getInput("active_".$b));
460 }
461
462 if ($_GET["grp"] == "test")
463 {
464 $ilSetting->set("enable_tst_page_edit", (int) $_POST["tst_page_edit"]);
465 }
466 elseif ($_GET["grp"] == "rep")
467 {
468 $ilSetting->set("enable_cat_page_edit", (int) $_POST["cat_page_edit"]);
469 }
470
471 ilUtil::sendInfo($lng->txt("msg_obj_modified"), true);
472 }
473
474 $ilCtrl->setParameter($this, "grp", $_GET["grp"]);
475 $ilCtrl->redirect($this, "showPageEditorSettings");
476 }
initPageEditorForm($a_mode="edit")
Init page editor form.
static writeSetting($a_grp, $a_name, $a_value)
Write Setting.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.

References $_GET, $_POST, $ilCtrl, $ilSetting, ilObjectGUI\$lng, $t, ilObjectGUI\$tpl, ilPageContentGUI\_getCommonBBButtons(), initPageEditorForm(), ilUtil\sendInfo(), and ilPageEditorSettings\writeSetting().

+ Here is the call graph for this function:

◆ saveSettingsObject()

ilObjAdvancedEditingGUI::saveSettingsObject ( )

Save Assessment settings.

Definition at line 211 of file class.ilObjAdvancedEditingGUI.php.

212 {
213 if ($_POST["use_tiny"])
214 {
215 $this->object->_setRichTextEditor("tinymce");
216 }
217 else
218 {
219 $this->object->_setRichTextEditor("");
220 }
221 ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"),true);
222
223 $this->ctrl->redirect($this,'settings');
224 }

References $_POST, and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ saveSurveySettingsObject()

ilObjAdvancedEditingGUI::saveSurveySettingsObject ( )

Definition at line 255 of file class.ilObjAdvancedEditingGUI.php.

256 {
257 $this->saveTags("survey", "survey");
258 }

References saveTags().

+ Here is the call graph for this function:

◆ saveTags()

ilObjAdvancedEditingGUI::saveTags (   $a_id,
  $a_cmd 
)
protected

Definition at line 324 of file class.ilObjAdvancedEditingGUI.php.

325 {
326 try
327 {
328 // get rid of select all
329 if(is_array($_POST['html_tags']) && $_POST['html_tags'][0] == "")
330 {
331 unset($_POST['html_tags'][0]);
332 }
333
334 $this->object->_setUsedHTMLTags((array)$_POST['html_tags'], $a_id);
335 ilUtil::sendSuccess($this->lng->txt('msg_obj_modified'), true);
336 }
338 {
339 ilUtil::sendInfo($e->getMessage(), true);
340 }
341
342 $this->ctrl->redirect($this, $a_cmd);
343 }
Class for advanced editing exception handling in ILIAS.

References $_POST, ilUtil\sendInfo(), and ilUtil\sendSuccess().

Referenced by saveAssessmentSettingsObject(), saveExcAssSettingsObject(), saveFrmPostSettingsObject(), and saveSurveySettingsObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ settingsObject()

ilObjAdvancedEditingGUI::settingsObject ( )

Display assessment folder settings form.

Definition at line 187 of file class.ilObjAdvancedEditingGUI.php.

188 {
189 global $tpl, $ilCtrl, $lng;
190
191 $editor = $this->object->_getRichTextEditor();
192
193 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
194 $this->form = new ilPropertyFormGUI();
195 $this->form->setFormAction($ilCtrl->getFormAction($this));
196 $this->form->setTitle($lng->txt("adve_activation"));
197 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_use_tiny_mce"), "use_tiny");
198 if ($editor == "tinymce")
199 {
200 $cb->setChecked(true);
201 }
202 $this->form->addItem($cb);
203 $this->form->addCommandButton("saveSettings", $lng->txt("save"));
204
205 $tpl->setContent($this->form->getHTML());
206 }

References $ilCtrl, ilObjectGUI\$lng, and ilObjectGUI\$tpl.

◆ showCharSelectorSettingsObject()

ilObjAdvancedEditingGUI::showCharSelectorSettingsObject ( )

Show the settings for the selector of unicode characters.

Definition at line 591 of file class.ilObjAdvancedEditingGUI.php.

592 {
593 global $ilTabs, $ilSetting, $tpl;
594
595 $ilTabs->activateTab("adve_char_selector_settings");
596
597 require_once 'Services/UIComponent/CharSelector/classes/class.ilCharSelectorGUI.php';
599 $char_selector->getConfig()->setAvailability($ilSetting->get('char_selector_availability'));
600 $char_selector->getConfig()->setDefinition($ilSetting->get('char_selector_definition'));
601 $form = $this->initCharSelectorSettingsForm($char_selector);
602 $char_selector->setFormValues($form);
603 $tpl->setContent($form->getHTML());
604 }

References $ilSetting, ilObjectGUI\$tpl, ilCharSelectorConfig\CONTEXT_ADMIN, and initCharSelectorSettingsForm().

+ Here is the call graph for this function:

◆ showGeneralPageEditorSettingsObject()

ilObjAdvancedEditingGUI::showGeneralPageEditorSettingsObject ( )

Show general page editor settings.

Definition at line 482 of file class.ilObjAdvancedEditingGUI.php.

483 {
484 global $tpl, $ilTabs;
485
486 $this->addPageEditorSettingsSubTabs();
487 $ilTabs->activateTab("adve_page_editor_settings");
488
489 $form = $this->initGeneralPageSettingsForm();
490 $tpl->setContent($form->getHTML());
491 }

References ilObjectGUI\$tpl, and initGeneralPageSettingsForm().

+ Here is the call graph for this function:

◆ showPageEditorSettingsObject()

ilObjAdvancedEditingGUI::showPageEditorSettingsObject ( )

Show page editor settings.

Definition at line 349 of file class.ilObjAdvancedEditingGUI.php.

350 {
351 global $tpl, $ilTabs, $ilCtrl;
352
353 $this->addPageEditorSettingsSubTabs();
354
355 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
357
358 $this->cgrp = $_GET["grp"];
359 if ($this->cgrp == "")
360 {
361 $this->cgrp = key($grps);
362 }
363
364 $ilCtrl->setParameter($this, "grp", $this->cgrp);
365 $ilTabs->setSubTabActive("adve_grp_".$this->cgrp);
366
367 $this->initPageEditorForm();
368 $tpl->setContent($this->form->getHtml());
369 }

References $_GET, $ilCtrl, ilObjectGUI\$tpl, ilPageEditorSettings\getGroups(), and initPageEditorForm().

+ Here is the call graph for this function:

◆ surveyObject()

ilObjAdvancedEditingGUI::surveyObject ( )

Display settings for surveys.

Definition at line 247 of file class.ilObjAdvancedEditingGUI.php.

248 {
249 $form = $this->initTagsForm("survey", "saveSurveySettings",
250 "advanced_editing_survey_settings");
251
252 $this->tpl->setContent($form->getHTML());
253 }

References initTagsForm().

+ Here is the call graph for this function:

Field Documentation

◆ $conditions

ilObjAdvancedEditingGUI::$conditions

Definition at line 19 of file class.ilObjAdvancedEditingGUI.php.


The documentation for this class was generated from the following file: