ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjAdvancedEditingGUI Class Reference

Class ilObjAdvancedEditingGUI. More...

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

Public Member Functions

 executeCommand ()
 
 saveObject ()
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 addPageEditorSettingsSubtabs ()
 
 showPageEditorSettingsObject ()
 
 initPageEditorForm ()
 
 savePageEditorSettingsObject ()
 
 showGeneralPageEditorSettingsObject ()
 
 initGeneralPageSettingsForm ()
 
 saveGeneralPageSettingsObject ()
 
- Public Member Functions inherited from ilObjectGUI
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 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...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Protected Member Functions

 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 getPageObjectKeysWithOptionalHTML ()
 This limits the possibility to allow html for these page objects that supported the feature in the past. More...
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 createActionDispatcherGUI ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form)
 
 getTitleForCreationFormPage ()
 
 getCreationFormTitle ()
 
 initCreateForm (string $new_type)
 
 didacticTemplatesToForm ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 retrieveAdditionalDidacticTemplateOptions ()
 
 addAdoptContentLinkToToolbar ()
 
 addImportButtonToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 parseDidacticTemplateVar (string $var, string $type)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 routeImportCmdObject ()
 
 importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir)
 
 deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $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 ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

ilPropertyFormGUI $form
 
string $cgrp = ""
 
StandardGUIRequest $std_request
 
ilComponentRepository $component_repository
 
ilObjUser $current_user
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
GlobalHttpState $http
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
CustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 
- Data Fields inherited from ilObjectGUI
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
const SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]
 

Detailed Description

Member Function Documentation

◆ addPageEditorSettingsSubtabs()

ilObjAdvancedEditingGUI::addPageEditorSettingsSubtabs ( )

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

113 : void
114 {
115 $this->tabs_gui->addSubTabTarget(
116 "adve_pe_general",
117 $this->ctrl->getLinkTarget($this, "showGeneralPageEditorSettings"),
118 array("showGeneralPageEditorSettings", "", "view")
119 );
120
122
123 foreach ($grps as $g => $types) {
124 $this->ctrl->setParameter($this, "grp", $g);
125 $this->tabs_gui->addSubTabTarget(
126 "adve_grp_" . $g,
127 $this->ctrl->getLinkTarget($this, "showPageEditorSettings"),
128 array("showPageEditorSettings")
129 );
130 }
131 $this->ctrl->setParameter($this, "grp", $this->std_request->getGroup());
132 }
static getGroups()
Get all settings groups.

References ILIAS\Repository\ctrl(), and ilPageEditorSettings\getGroups().

Referenced by showGeneralPageEditorSettingsObject(), and showPageEditorSettingsObject().

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

◆ executeCommand()

ilObjAdvancedEditingGUI::executeCommand ( )

Reimplemented from ilObjectGUI.

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

56 : void
57 {
58 if (!$this->rbac_system->checkAccess('read', $this->object->getRefId())) {
59 $mess = str_replace("%s", $this->object->getTitle(), $this->lng->txt("msg_no_perm_read_item"));
60 $this->ilias->raiseError($mess, $this->ilias->error_obj->WARNING);
61 }
62
63 $next_class = $this->ctrl->getNextClass($this);
64 $cmd = $this->ctrl->getCmd();
65 $this->prepareOutput();
66
67 switch ($next_class) {
68 case 'ilpermissiongui':
69 $perm_gui = new ilPermissionGUI($this);
70 $this->ctrl->forwardCommand($perm_gui);
71 break;
72
73 case strtolower(ilRTESettingsGUI::class):
74 $rte_gui = new ilRTESettingsGUI(
75 $this->ref_id,
76 $this->tpl,
77 $this->ctrl,
78 $this->lng,
79 $this->access,
80 $this->current_user,
81 $this->tabs_gui
82 );
83 $rte_gui->$cmd();
84 break;
85
86 default:
87 if ($cmd === null || $cmd === "" || $cmd === "view") {
88 $cmd = "showGeneralPageEditorSettings";
89 }
90 $cmd .= "Object";
91 $this->$cmd();
92
93 break;
94 }
95 }
prepareOutput(bool $show_sub_objects=true)
Class ilObjAdvancedEditingGUI.
Class ilObjForumAdministration.

References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilObjectGUI\prepareOutput().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjAdvancedEditingGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

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

108 : void
109 {
110 $this->getTabs();
111 }
getTabs()
@abstract overwrite in derived GUI class of your object type

References getTabs().

+ Here is the call graph for this function:

◆ getPageObjectKeysWithOptionalHTML()

ilObjAdvancedEditingGUI::getPageObjectKeysWithOptionalHTML ( )
protected

This limits the possibility to allow html for these page objects that supported the feature in the past.

PLEASE do not add additional keys here. The whole feature might be abandonded in the future.

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

335 : array
336 {
337 return ["lobj","copa","mep","blp","prtf","prtt","term","lm","qht","qpl","qfbg","qfbs","sahs","stys","cont","cstr","auth"];
338 }

◆ getTabs()

ilObjAdvancedEditingGUI::getTabs ( )
protected

@abstract overwrite in derived GUI class of your object type

Reimplemented from ilObjectGUI.

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

134 : void
135 {
136 if ($this->rbac_system->checkAccess("visible,read", $this->object->getRefId())) {
137 $this->tabs_gui->addTarget(
138 "adve_page_editor_settings",
139 $this->ctrl->getLinkTarget($this, "showGeneralPageEditorSettings"),
140 array("showPageEditorSettings", "","view")
141 );
142
143 $this->tabs_gui->addTarget(
144 "adve_rte_settings",
145 $this->ctrl->getLinkTargetByClass([self::class, ilRTESettingsGUI::class], "settings"),
146 array("settings","assessment", "frmPost"),
147 "",
148 ""
149 );
150 }
151
152 if ($this->rbac_system->checkAccess('edit_permission', $this->object->getRefId())) {
153 $this->tabs_gui->addTarget(
154 "perm_settings",
155 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
156 array("perm","info","owner"),
157 'ilpermissiongui'
158 );
159 }
160 }

References ILIAS\Repository\ctrl().

Referenced by getAdminTabs().

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

◆ initGeneralPageSettingsForm()

ilObjAdvancedEditingGUI::initGeneralPageSettingsForm ( )

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

273 {
274 $form = new ilPropertyFormGUI();
275
276 $aset = new ilSetting("adve");
277
278 // use physical character styles
279 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_use_physical"), "use_physical");
280 $cb->setInfo($this->lng->txt("adve_use_physical_info"));
281 $cb->setChecked((bool) $aset->get("use_physical"));
282 $form->addItem($cb);
283
284 // blocking mode
285 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_blocking_mode"), "block_mode_act");
286 $cb->setChecked((bool) $aset->get("block_mode_minutes") > 0);
287 $form->addItem($cb);
288
289 // number of minutes
290 $ni = new ilNumberInputGUI($this->lng->txt("adve_minutes"), "block_mode_minutes");
291 $ni->setMinValue(2);
292 $ni->setMaxLength(5);
293 $ni->setSize(5);
294 $ni->setRequired(true);
295 $ni->setInfo($this->lng->txt("adve_minutes_info"));
296 $ni->setValue($aset->get("block_mode_minutes"));
297 $cb->addSubItem($ni);
298
299 // autosave
300 $as = new ilNumberInputGUI($this->lng->txt("adve_autosave"), "autosave");
301 $as->setSuffix($this->lng->txt("seconds"));
302 $as->setMaxLength(5);
303 $as->setSize(5);
304 $as->setInfo($this->lng->txt("adve_autosave_info"));
305 $as->setValue($aset->get("autosave"));
306 $form->addItem($as);
307
308 // auto url linking
309 $cb = new ilCheckboxInputGUI($this->lng->txt("adve_auto_url_linking"), "auto_url_linking");
310 $cb->setChecked((bool) $aset->get("auto_url_linking"));
311 $cb->setInfo($this->lng->txt("adve_auto_url_linking_info"));
312 $form->addItem($cb);
313
314 if ($this->checkPermissionBool("write")) {
315 $form->addCommandButton("saveGeneralPageSettings", $this->lng->txt("save"));
316 }
317
318 // workaround for glossaries to force rewriting of short texts
320
321
322 $form->setTitle($this->lng->txt("adve_pe_general"));
323 $form->setFormAction($this->ctrl->getFormAction($this));
324
325 return $form;
326 }
This class represents a checkbox property in a property form.
setFormAction(string $a_formaction)
static setShortTextsDirtyGlobally()
Set short texts dirty (for all glossaries)
This class represents a number property in a property form.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
This class represents a property form user interface.
addCommandButton(string $a_cmd, string $a_text, string $a_id="")
ILIAS Setting Class.

References $form, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilFormGUI\setFormAction(), ilGlossaryTerm\setShortTextsDirtyGlobally(), and ilPropertyFormGUI\setTitle().

Referenced by saveGeneralPageSettingsObject(), and showGeneralPageEditorSettingsObject().

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

◆ initPageEditorForm()

ilObjAdvancedEditingGUI::initPageEditorForm ( )

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

180 : void
181 {
182 $this->lng->loadLanguageModule("content");
183
184 $this->form = new ilPropertyFormGUI();
185
186 if ($this->cgrp === "test") {
187 $this->form->setTitle($this->lng->txt("adve_activation"));
188 $cb = new ilCheckboxInputGUI($this->lng->txt("advanced_editing_tst_editing"), "tst_page_edit");
189 $cb->setInfo($this->lng->txt("advanced_editing_tst_editing_desc"));
191 $cb->setChecked(true);
192 }
193 $this->form->addItem($cb);
194
195 $sh = new ilFormSectionHeaderGUI();
196 $sh->setTitle($this->lng->txt("adve_text_content_features"));
197 $this->form->addItem($sh);
198 } elseif ($this->cgrp === "rep") {
199 $this->form->setTitle($this->lng->txt("adve_activation"));
200 $cb = new ilCheckboxInputGUI($this->lng->txt("advanced_editing_rep_page_editing"), "cat_page_edit");
201 $cb->setInfo($this->lng->txt("advanced_editing_rep_page_editing_desc"));
202 if ($this->settings->get("enable_cat_page_edit")) {
203 $cb->setChecked(true);
204 }
205 $this->form->addItem($cb);
206
207 $sh = new ilFormSectionHeaderGUI();
208 $sh->setTitle($this->lng->txt("adve_text_content_features"));
209 $this->form->addItem($sh);
210 } else {
211 $this->form->setTitle($this->lng->txt("adve_text_content_features"));
212 }
213
214
216 foreach ($buttons as $b => $t) {
217 // command button activation
218 $cb = new ilCheckboxInputGUI(str_replace(":", "", $this->lng->txt("cont_text_" . $b)), "active_" . $b);
219 $cb->setChecked((bool) ilPageEditorSettings::lookupSetting($this->cgrp, "active_" . $b, true));
220 $this->form->addItem($cb);
221 }
222
223 // save and cancel commands
224 if ($this->checkPermissionBool("write")) {
225 $this->form->addCommandButton("savePageEditorSettings", $this->lng->txt("save"));
226 }
227
228 $this->form->setFormAction($this->ctrl->getFormAction($this));
229 }
This class represents a section header in a property form.
const ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_DISABLED
static lookupSetting(string $a_grp, string $a_name, string $a_default='0')
Lookup setting.
form( $class_path, string $cmd, string $submit_caption="")

References Vendor\Package\$b, ilPageContentGUI\_getCommonBBButtons(), ilObjTestFolder\ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_DISABLED, ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS\Repository\lng(), ilPageEditorSettings\lookupSetting(), and ILIAS\Repository\settings().

Referenced by savePageEditorSettingsObject(), and showPageEditorSettingsObject().

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

◆ saveGeneralPageSettingsObject()

ilObjAdvancedEditingGUI::saveGeneralPageSettingsObject ( )

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

340 : void
341 {
342 $this->checkPermission("write");
343
345 if ($form->checkInput()) {
346 $autosave = (int) $form->getInput("autosave");
347 $ok = true;
348
349 // autosave must be greater 10, if activated
350 if ($autosave > 0 && $autosave < 10) {
351 $form->getItemByPostVar("autosave")->setAlert($this->lng->txt("adve_autosave_info_min_10"));
352 $ok = false;
353 }
354
355 if ($ok) {
356 $aset = new ilSetting("adve");
357 $aset->set("use_physical", $form->getInput("use_physical"));
358 if ($form->getInput("block_mode_act")) {
359 $aset->set("block_mode_minutes", (string) (int) $form->getInput("block_mode_minutes"));
360 } else {
361 $aset->set("block_mode_minutes", 0);
362 }
363 $aset->set("auto_url_linking", $form->getInput("auto_url_linking"));
364
365 $aset->set("autosave", $form->getInput("autosave"));
366
367 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
368 $this->ctrl->redirect($this, "showGeneralPageEditorSettings");
369 }
370 }
371
373 $this->tpl->setContent($form->getHTML());
374 }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
getItemByPostVar(string $a_post_var)

References $form, ilPropertyFormGUI\checkInput(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), initGeneralPageSettingsForm(), ILIAS\Repository\int(), ILIAS\Repository\lng(), and ilPropertyFormGUI\setValuesByPost().

+ Here is the call graph for this function:

◆ saveObject()

ilObjAdvancedEditingGUI::saveObject ( )

Reimplemented from ilObjectGUI.

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

97 : void
98 {
99 $this->checkPermission("write");
100
101 parent::saveObject();
102
103 // always send a message
104 $this->tpl->setOnScreenMessage('success', $this->lng->txt("object_added"), true);
105 $this->ctrl->redirect($this);
106 }

References ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ savePageEditorSettingsObject()

ilObjAdvancedEditingGUI::savePageEditorSettingsObject ( )

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

231 : void
232 {
234 $ilCtrl = $this->ctrl;
236
237 $this->checkPermission("write");
238
239 $this->initPageEditorForm();
240 if ($this->form->checkInput()) {
242 foreach ($buttons as $b => $t) {
244 $this->std_request->getGroup(),
245 "active_" . $b,
246 $this->form->getInput("active_" . $b)
247 );
248 }
249
250 if ($this->std_request->getGroup() === "test") {
251 $ilSetting->set("enable_tst_page_edit", (string) $this->form->getInput("tst_page_edit"));
252 } elseif ($this->std_request->getGroup() === "rep") {
253 $ilSetting->set("enable_cat_page_edit", (string) $this->form->getInput("cat_page_edit"));
254 }
255
256 $this->tpl->setOnScreenMessage('info', $lng->txt("msg_obj_modified"), true);
257 }
258
259 $ilCtrl->setParameter($this, "grp", $this->std_request->getGroup());
260 $ilCtrl->redirect($this, "showPageEditorSettings");
261 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilSetting $settings
ilLanguage $lng
static writeSetting(string $a_grp, string $a_name, string $a_value)
Write Setting.
global $ilSetting
Definition: privfeed.php:31

References Vendor\Package\$b, ilObjectGUI\$ctrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$settings, ilPageContentGUI\_getCommonBBButtons(), ilObjectGUI\checkPermission(), ILIAS\Repository\form(), initPageEditorForm(), ilLanguage\txt(), and ilPageEditorSettings\writeSetting().

+ Here is the call graph for this function:

◆ showGeneralPageEditorSettingsObject()

ilObjAdvancedEditingGUI::showGeneralPageEditorSettingsObject ( )

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

263 : void
264 {
266 $this->tabs_gui->activateTab("adve_page_editor_settings");
267
269 $this->tpl->setContent($form->getHTML());
270 }

References $form, addPageEditorSettingsSubtabs(), ilPropertyFormGUI\getHTML(), and initGeneralPageSettingsForm().

+ Here is the call graph for this function:

◆ showPageEditorSettingsObject()

ilObjAdvancedEditingGUI::showPageEditorSettingsObject ( )

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

162 : void
163 {
165
167
168 $this->cgrp = $this->std_request->getGroup();
169 if ($this->cgrp === "") {
170 $this->cgrp = (string) key($grps);
171 }
172
173 $this->ctrl->setParameter($this, "grp", $this->cgrp);
174 $this->tabs_gui->setSubTabActive("adve_grp_" . $this->cgrp);
175
176 $this->initPageEditorForm();
177 $this->tpl->setContent($this->form->getHTML());
178 }

References addPageEditorSettingsSubtabs(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilPageEditorSettings\getGroups(), and initPageEditorForm().

+ Here is the call graph for this function:

Field Documentation

◆ $cgrp

string ilObjAdvancedEditingGUI::$cgrp = ""
protected

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

◆ $component_repository

ilComponentRepository ilObjAdvancedEditingGUI::$component_repository
protected

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

◆ $current_user

ilObjUser ilObjAdvancedEditingGUI::$current_user
protected

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

◆ $form

◆ $std_request

StandardGUIRequest ilObjAdvancedEditingGUI::$std_request
protected

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


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