ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjHelpSettingsGUI Class Reference

ilObjHelpSettingsGUI: ilPermissionGUI 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 ()
 
 executeCommand ()
 
 editSettings ()
 
 getAdminTabs ()
 
 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)
 
 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
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
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
 
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
 
ilObjectCustomIconFactory $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="")
 
 setTargetFrame (string $cmd, string $target_frame)
 
 getCenterColumnHTML ()
 
 getRightColumnHTML ()
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 showPossibleSubObjects ()
 
 redirectToRefId (int $ref_id, string $cmd="")
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 
 setTabs ()
 create tabs (repository/workspace switch) More...
 
 getReturnLocation (string $cmd, string $location="")
 Deprecated functions. More...
 
 setReturnLocation (string $cmd, string $location)
 
 showActions ()
 
 getTabs ()
 
 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 ()
 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 
)

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

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

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 InternalDomainService $domain
ILIAS Help InternalGUIService $gui
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
$service
Definition: ltiservices.php:40
+ Here is the call graph for this function:

Member Function Documentation

◆ activateModule()

ilObjHelpSettingsGUI::activateModule ( )

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

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

196  : void
197  {
198  $this->checkPermission("write");
199  $this->domain->module()->activate($this->help_request->getHelpModuleId());
200  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
201  $this->ctrl->redirect($this, "editSettings");
202  }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ confirmHelpModulesDeletion()

ilObjHelpSettingsGUI::confirmHelpModulesDeletion ( )

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

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

162  : void
163  {
164  $this->checkPermission("write");
165 
166  $ids = $this->help_request->getIds();
167 
168  if (count($ids) === 0) {
169  $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_checkbox"), true);
170  $this->ctrl->redirect($this, "editSettings");
171  } else {
172  $cgui = new ilConfirmationGUI();
173  $cgui->setFormAction($this->ctrl->getFormAction($this));
174  $cgui->setHeaderText($this->lng->txt("help_sure_delete_help_modules"));
175  $cgui->setCancel($this->lng->txt("cancel"), "editSettings");
176  $cgui->setConfirm($this->lng->txt("delete"), "deleteHelpModules");
177 
178  foreach ($ids as $i) {
179  $cgui->addItem("id[]", $i, $this->domain->module()->lookupModuleLmId($i));
180  }
181 
182  $this->tpl->setContent($cgui->getHTML());
183  }
184  }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ deactivateModule()

ilObjHelpSettingsGUI::deactivateModule ( )

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

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

204  : void
205  {
206  $this->checkPermission("write");
207  $this->domain->module()->deactivate($this->help_request->getHelpModuleId());
208  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
209  $this->ctrl->redirect($this, "editSettings");
210  }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ deleteHelpModules()

ilObjHelpSettingsGUI::deleteHelpModules ( )

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

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

186  : void
187  {
188  $this->checkPermission("write");
189  $ids = $this->help_request->getIds();
190  foreach ($ids as $i) {
191  $this->domain->module()->deleteModule((int) $i);
192  }
193  $this->ctrl->redirect($this, "editSettings");
194  }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ editSettings()

ilObjHelpSettingsGUI::editSettings ( )

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

References ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilSelectInputGUI\setOptions(), ilFileInputGUI\setSuffixes(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().

92  : void
93  {
94  $this->tabs->activateTab("settings");
95 
96  if ($this->domain->module()->isAuthoringMode()) {
97  $this->tpl->setOnScreenMessage('info', "This installation is used for online help authoring. Help modules cannot be imported.");
98  return;
99  }
100 
101  if ($this->checkPermissionBool("write")) {
102  // help file
103  $fi = new ilFileInputGUI($this->lng->txt("help_help_file"), "help_file");
104  $fi->setSuffixes(array("zip"));
105  $this->toolbar->addInputItem($fi, true);
106  $this->toolbar->addFormButton($this->lng->txt("upload"), "uploadHelpFile");
107  $this->toolbar->addSeparator();
108 
109  // help mode
110  $options = array(
111  "" => $this->lng->txt("help_tooltips_and_help"),
112  "1" => $this->lng->txt("help_help_only"),
113  "2" => $this->lng->txt("help_tooltips_only")
114  );
115  $si = new ilSelectInputGUI($this->lng->txt("help_mode"), "help_mode");
116  $si->setOptions($options);
117  $si->setValue($this->settings->get("help_mode"));
118  $this->toolbar->addInputItem($si);
119 
120  $this->toolbar->addFormButton($this->lng->txt("help_set_mode"), "setMode");
121  }
122  $this->toolbar->setFormAction($this->ctrl->getFormAction($this), true);
123 
124  $table = new ilHelpModuleTableGUI($this, "editSettings", $this->checkPermissionBool("write"));
125 
126  $this->tpl->setContent($table->getHTML());
127  }
This class represents a selection list property in a property form.
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...
setSuffixes(array $a_suffixes)
setOptions(array $a_options)
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
+ Here is the call graph for this function:

◆ executeCommand()

ilObjHelpSettingsGUI::executeCommand ( )

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

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

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("visible,read", $this->object->getRefId())) {
73  throw new ilPermissionException($this->lng->txt('no_permission'));
74  }
75 
76  switch ($next_class) {
77  case strtolower(ilPermissionGUI::class):
78  $this->tabs_gui->setTabActive('perm_settings');
79  $perm_gui = new ilPermissionGUI($this);
80  $this->ctrl->forwardCommand($perm_gui);
81  break;
82 
83  default:
84  if (!$cmd || $cmd === 'view') {
85  $cmd = "editSettings";
86  }
87  $this->$cmd();
88  break;
89  }
90  }
prepareOutput(bool $show_sub_objects=true)
+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjHelpSettingsGUI::getAdminTabs ( )

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

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

129  : void
130  {
131  if ($this->checkPermissionBool("visible,read")) {
132  $this->tabs_gui->addTab(
133  "settings",
134  $this->lng->txt("settings"),
135  $this->ctrl->getLinkTarget($this, "editSettings")
136  );
137  }
138 
139  if ($this->checkPermissionBool("edit_permission")) {
140  $this->tabs_gui->addTab(
141  "perm_settings",
142  $this->lng->txt("perm_settings"),
143  $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm")
144  );
145  }
146  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
+ Here is the call graph for this function:

◆ getType()

ilObjHelpSettingsGUI::getType ( )

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

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

◆ saveOrdering()

ilObjHelpSettingsGUI::saveOrdering ( )

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

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

226  : void
227  {
228  $this->checkPermission("write");
229  $this->domain->module()->saveOrder($this->help_request->getOrder());
230  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
231  $this->ctrl->redirect($this, "editSettings");
232  }
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ setMode()

ilObjHelpSettingsGUI::setMode ( )

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

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

212  : void
213  {
214  $this->checkPermission("write");
215  if ($this->checkPermissionBool("write")) {
216  $this->settings->set(
217  "help_mode",
218  $this->help_request->getHelpMode()
219  );
220  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
221  }
222 
223  $this->ctrl->redirect($this, "editSettings");
224  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
+ Here is the call graph for this function:

◆ uploadHelpFile()

ilObjHelpSettingsGUI::uploadHelpFile ( )

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

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

148  : void
149  {
150  if (!isset($_FILES["help_file"]["tmp_name"]) || $_FILES["help_file"]["tmp_name"] === "") {
151  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("help_select_a_file"), true);
152  $this->ctrl->redirect($this, "editSettings");
153  }
154  if ($this->checkPermissionBool("write")) {
155  $this->domain->module()->upload($_FILES["help_file"]);
156  $this->tpl->setOnScreenMessage('success', $this->lng->txt("help_module_uploaded"), true);
157  }
158 
159  $this->ctrl->redirect($this, "editSettings");
160  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
+ 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.

◆ $gui

ILIAS Help InternalGUIService ilObjHelpSettingsGUI::$gui
protected

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

◆ $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: