ILIAS  trunk Revision v12.0_alpha-1338-g8f7e531aa3c
ilObjHelpSettingsGUI Class Reference

@ilCtrl_Calls ilObjHelpSettingsGUI: ilPermissionGUI, ilGuidedTourAdminGUI @ilCtrl_isCalledBy ilObjHelpSettingsGUI: ilAdministrationGUI More...

+ Inheritance diagram for ilObjHelpSettingsGUI:
+ Collaboration diagram for ilObjHelpSettingsGUI:

Public Member Functions

 __construct (int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
 
 getType ()
 Functions that must be overwritten. More...
 
 executeCommand ()
 execute command More...
 
 editSettings ()
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 uploadHelpFile ()
 
 confirmHelpModulesDeletion ()
 
 deleteHelpModules ()
 
 activateModule ()
 
 deactivateModule ()
 
 setMode ()
 
 saveOrdering ()
 
- Public Member Functions inherited from ilObject2GUI
 __construct (int $id=0, int $id_type=self::REPOSITORY_NODE_ID, int $parent_node_id=0)
 
 executeCommand ()
 execute command More...
 
 getIdType ()
 
 delete ()
 Display delete confirmation form (repository/workspace switch) More...
 
 confirmedDelete ()
 Delete objects (repository/workspace switch) More...
 
 getHTML ()
 
 withReferences ()
 Final/Private declaration of unchanged parent methods. 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)
 
 isVisible (int $ref_id, string $type)
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 view ()
 view object content (repository/workspace switch) More...
 
 getType ()
 Functions that must be overwritten. More...
 
 create ()
 CRUD. More...
 
 save ()
 
 edit ()
 
 update ()
 
 cancel ()
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
- 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 Attributes

ILIAS Help InternalGUIService $gui
 
ILIAS Help InternalDomainService $domain
 
StandardGUIRequest $help_request
 
ilTabsGUI $tabs
 
- Protected Attributes inherited from ilObject2GUI
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ilFavouritesManager $favourites
 
ilErrorHandling $error
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilToolbarGUI $toolbar
 
Factory $refinery
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
int $request_ref_id
 
int $id_type
 
int $parent_id
 
string $type
 
string $html
 
int $object_id
 
int $node_id = null
 
array $creation_forms = []
 
 $access_handler
 
- 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 ilObject2GUI
static handleAfterSaveCallback (ilObject $obj, ?int $callback_ref_id)
 After creation callback. More...
 
- 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 ilObject2GUI
const OBJECT_ID = 0
 
const REPOSITORY_NODE_ID = 1
 
const WORKSPACE_NODE_ID = 2
 
const REPOSITORY_OBJECT_ID = 3
 
const WORKSPACE_OBJECT_ID = 4
 
const PORTFOLIO_OBJECT_ID = 5
 
- 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]
 
- Protected Member Functions inherited from ilObject2GUI
 afterConstructor ()
 Do anything that should be done after constructor in here. More...
 
 assignObject ()
 create object instance as internal property (repository/workspace switch) More...
 
 getAccessHandler ()
 
 setLocator ()
 set Locator More...
 
 deleteConfirmedObjects ()
 Delete objects (workspace specific) This should probably be moved elsewhere as done with RepUtil. More...
 
 setTitleAndDescription ()
 
 omitLocator (bool $omit=true)
 
 getTargetFrame (string $cmd, string $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...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) 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...
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 setTabs ()
 create tabs (repository/workspace switch) More...
 
 getReturnLocation (string $cmd, string $location="")
 Deprecated functions. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 showActions ()
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 addLocatorItems ()
 Functions to be overwritten. More...
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $node_id=null)
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 redrawHeaderAction ()
 Updating icons after ajax call. 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)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjHelpSettingsGUI::__construct ( int  $a_id = 0,
int  $a_id_type = self::REPOSITORY_NODE_ID,
int  $a_parent_node_id = 0 
)

Reimplemented from ilObject2GUI.

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

36 {
37 global $DIC;
38
39 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
40
41 $service = $DIC->help()->internal();
42
43 $this->domain = $domain = $service->domain();
44 $this->gui = $gui = $service->gui();
45
46 $this->access = $domain->access();
47 $this->lng = $domain->lng();
48 $this->settings = $domain->settings();
49
50 $this->ctrl = $gui->ctrl();
51 $this->tabs = $gui->tabs();
52 $this->toolbar = $gui->toolbar();
53 $this->tpl = $gui->ui()->mainTemplate();
54
55 $this->help_request = $gui->standardRequest();
56 }
ILIAS Help InternalGUIService $gui
ILIAS Help InternalDomainService $domain
$service
Definition: ltiresult.php:36
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, $domain, $gui, $service, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

Member Function Documentation

◆ activateModule()

ilObjHelpSettingsGUI::activateModule ( )

Definition at line 210 of file class.ilObjHelpSettingsGUI.php.

210 : void
211 {
212 $this->checkPermission("write");
213 $this->domain->module()->activate($this->help_request->getHelpModuleId());
214 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
215 $this->ctrl->redirect($this, "editSettings");
216 }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)

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

+ Here is the call graph for this function:

◆ confirmHelpModulesDeletion()

ilObjHelpSettingsGUI::confirmHelpModulesDeletion ( )

Definition at line 176 of file class.ilObjHelpSettingsGUI.php.

176 : void
177 {
178 $this->checkPermission("write");
179
180 $ids = $this->help_request->getIds();
181
182 if (count($ids) === 0) {
183 $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_checkbox"), true);
184 $this->ctrl->redirect($this, "editSettings");
185 } else {
186 $cgui = new ilConfirmationGUI();
187 $cgui->setFormAction($this->ctrl->getFormAction($this));
188 $cgui->setHeaderText($this->lng->txt("help_sure_delete_help_modules"));
189 $cgui->setCancel($this->lng->txt("cancel"), "editSettings");
190 $cgui->setConfirm($this->lng->txt("delete"), "deleteHelpModules");
191
192 foreach ($ids as $i) {
193 $cgui->addItem("id[]", $i, $this->domain->module()->lookupModuleLmId($i));
194 }
195
196 $this->tpl->setContent($cgui->getHTML());
197 }
198 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

+ Here is the call graph for this function:

◆ deactivateModule()

ilObjHelpSettingsGUI::deactivateModule ( )

Definition at line 218 of file class.ilObjHelpSettingsGUI.php.

218 : void
219 {
220 $this->checkPermission("write");
221 $this->domain->module()->deactivate($this->help_request->getHelpModuleId());
222 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
223 $this->ctrl->redirect($this, "editSettings");
224 }

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

+ Here is the call graph for this function:

◆ deleteHelpModules()

ilObjHelpSettingsGUI::deleteHelpModules ( )

Definition at line 200 of file class.ilObjHelpSettingsGUI.php.

200 : void
201 {
202 $this->checkPermission("write");
203 $ids = $this->help_request->getIds();
204 foreach ($ids as $i) {
205 $this->domain->module()->deleteModule((int) $i);
206 }
207 $this->ctrl->redirect($this, "editSettings");
208 }

References ilObject2GUI\checkPermission(), and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ editSettings()

ilObjHelpSettingsGUI::editSettings ( )

Definition at line 101 of file class.ilObjHelpSettingsGUI.php.

101 : void
102 {
103 $this->tabs->activateTab("settings");
104
105 if ($this->domain->module()->isAuthoringMode()) {
106 $this->tpl->setOnScreenMessage('info', "This installation is used for online help authoring. Help modules cannot be imported.");
107 return;
108 }
109
110 if ($this->checkPermissionBool("write")) {
111 // help file
112 $fi = new ilFileInputGUI($this->lng->txt("help_help_file"), "help_file");
113 $fi->setSuffixes(array("zip"));
114 $this->toolbar->addInputItem($fi, true);
115 $this->toolbar->addFormButton($this->lng->txt("upload"), "uploadHelpFile");
116 $this->toolbar->addSeparator();
117
118 // help mode
119 $options = array(
120 "" => $this->lng->txt("help_tooltips_and_help"),
121 "1" => $this->lng->txt("help_help_only"),
122 "2" => $this->lng->txt("help_tooltips_only")
123 );
124 $si = new ilSelectInputGUI($this->lng->txt("help_mode"), "help_mode");
125 $si->setOptions($options);
126 $si->setValue($this->settings->get("help_mode"));
127 $this->toolbar->addInputItem($si);
128
129 $this->toolbar->addFormButton($this->lng->txt("help_set_mode"), "setMode");
130 }
131 $this->toolbar->setFormAction($this->ctrl->getFormAction($this), true);
132
133 $table = new ilHelpModuleTableGUI($this, "editSettings", $this->checkPermissionBool("write"));
134
135 $this->tpl->setContent($table->getHTML());
136 }
This class represents a file property in a property form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
This class represents a selection list property in a property form.

References ILIAS\UI\Implementation\Component\Input\Field\$options, ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

◆ executeCommand()

ilObjHelpSettingsGUI::executeCommand ( )

execute command

Reimplemented from ilObject2GUI.

Definition at line 63 of file class.ilObjHelpSettingsGUI.php.

63 : void
64 {
65 $this->lng->loadLanguageModule("help");
66
67 $next_class = $this->ctrl->getNextClass($this);
68 $cmd = $this->ctrl->getCmd();
69
70 $this->prepareOutput();
71
72 if (!$this->rbac_system->checkAccess("read", $this->object->getRefId())) {
73 throw new ilPermissionException($this->lng->txt('no_permission'));
74 }
75
76 switch ($next_class) {
77
78 case strtolower(ilGuidedTourAdminGUI::class):
79 $this->tabs_gui->setTabActive('guided_tour');
80 $gui = $this->gui->guidedTour()->adminGUI(
81 $this->checkPermissionBool("write")
82 );
83 $this->ctrl->forwardCommand($gui);
84 break;
85
86 case strtolower(ilPermissionGUI::class):
87 $this->tabs_gui->setTabActive('perm_settings');
88 $perm_gui = new ilPermissionGUI($this);
89 $this->ctrl->forwardCommand($perm_gui);
90 break;
91
92 default:
93 if (!$cmd || $cmd === 'view') {
94 $cmd = "editSettings";
95 }
96 $this->$cmd();
97 break;
98 }
99 }
prepareOutput(bool $show_sub_objects=true)

References $gui, ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilObject2GUI\prepareOutput().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjHelpSettingsGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 138 of file class.ilObjHelpSettingsGUI.php.

138 : void
139 {
140 if ($this->checkPermissionBool("read")) {
141 $this->tabs_gui->addTab(
142 "settings",
143 $this->lng->txt("settings"),
144 $this->ctrl->getLinkTarget($this, "editSettings")
145 );
146 $this->tabs_gui->addTab(
147 "guided_tour",
148 $this->lng->txt("guided_tour"),
149 $this->ctrl->getLinkTargetByClass(ilGuidedTourAdminGUI::class)
150 );
151 }
152
153 if ($this->checkPermissionBool("edit_permission")) {
154 $this->tabs_gui->addTab(
155 "perm_settings",
156 $this->lng->txt("perm_settings"),
157 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm")
158 );
159 }
160 }

References ilObject2GUI\checkPermissionBool(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getType()

ilObjHelpSettingsGUI::getType ( )

Functions that must be overwritten.

Reimplemented from ilObject2GUI.

Definition at line 58 of file class.ilObjHelpSettingsGUI.php.

58 : string
59 {
60 return "hlps";
61 }

◆ saveOrdering()

ilObjHelpSettingsGUI::saveOrdering ( )

Definition at line 240 of file class.ilObjHelpSettingsGUI.php.

240 : void
241 {
242 $this->checkPermission("write");
243 $this->domain->module()->saveOrder($this->help_request->getOrder());
244 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
245 $this->ctrl->redirect($this, "editSettings");
246 }

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

+ Here is the call graph for this function:

◆ setMode()

ilObjHelpSettingsGUI::setMode ( )

Definition at line 226 of file class.ilObjHelpSettingsGUI.php.

226 : void
227 {
228 $this->checkPermission("write");
229 if ($this->checkPermissionBool("write")) {
230 $this->settings->set(
231 "help_mode",
232 $this->help_request->getHelpMode()
233 );
234 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
235 }
236
237 $this->ctrl->redirect($this, "editSettings");
238 }

References ilObject2GUI\checkPermission(), ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ uploadHelpFile()

ilObjHelpSettingsGUI::uploadHelpFile ( )

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

162 : void
163 {
164 if (!isset($_FILES["help_file"]["tmp_name"]) || $_FILES["help_file"]["tmp_name"] === "") {
165 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("help_select_a_file"), true);
166 $this->ctrl->redirect($this, "editSettings");
167 }
168 if ($this->checkPermissionBool("write")) {
169 $this->domain->module()->upload($_FILES["help_file"]);
170 $this->tpl->setOnScreenMessage('success', $this->lng->txt("help_module_uploaded"), true);
171 }
172
173 $this->ctrl->redirect($this, "editSettings");
174 }

References ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Field Documentation

◆ $domain

ILIAS Help InternalDomainService ilObjHelpSettingsGUI::$domain
protected

Definition at line 28 of file class.ilObjHelpSettingsGUI.php.

Referenced by __construct().

◆ $gui

ILIAS Help InternalGUIService ilObjHelpSettingsGUI::$gui
protected

Definition at line 27 of file class.ilObjHelpSettingsGUI.php.

Referenced by __construct(), and executeCommand().

◆ $help_request

StandardGUIRequest ilObjHelpSettingsGUI::$help_request
protected

Definition at line 29 of file class.ilObjHelpSettingsGUI.php.

◆ $tabs

ilTabsGUI ilObjHelpSettingsGUI::$tabs
protected

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


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