27     protected \ILIAS\Help\InternalGUIService 
$gui;
    28     protected \ILIAS\Help\InternalDomainService 
$domain;
    34         int $a_id_type = self::REPOSITORY_NODE_ID,
    35         int $a_parent_node_id = 0
    43         $this->domain = $domain = 
$service->domain();
    46         $this->
access = $domain->access();
    47         $this->
lng = $domain->lng();
    48         $this->
settings = $domain->settings();
    50         $this->
ctrl = $gui->ctrl();
    51         $this->
tabs = $gui->tabs();
    52         $this->
toolbar = $gui->toolbar();
    53         $this->tpl = $gui->ui()->mainTemplate();
    55         $this->help_request = $gui->standardRequest();
    65         $this->
lng->loadLanguageModule(
"help");
    67         $next_class = $this->
ctrl->getNextClass($this);
    68         $cmd = $this->
ctrl->getCmd();
    72         if (!$this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
    76         switch ($next_class) {
    77             case strtolower(ilPermissionGUI::class):
    78                 $this->tabs_gui->setTabActive(
'perm_settings');
    80                 $this->
ctrl->forwardCommand($perm_gui);
    84                 if (!$cmd || $cmd === 
'view') {
    85                     $cmd = 
"editSettings";
    94         $this->
tabs->activateTab(
"settings");
    96         if ($this->domain->module()->isAuthoringMode()) {
    97             $this->tpl->setOnScreenMessage(
'info', 
"This installation is used for online help authoring. Help modules cannot be imported.");
   105             $this->
toolbar->addInputItem($fi, 
true);
   106             $this->
toolbar->addFormButton($this->
lng->txt(
"upload"), 
"uploadHelpFile");
   107             $this->
toolbar->addSeparator();
   111                 "" => $this->
lng->txt(
"help_tooltips_and_help"),
   112                 "1" => $this->
lng->txt(
"help_help_only"),
   113                 "2" => $this->
lng->txt(
"help_tooltips_only")
   117             $si->setValue($this->
settings->get(
"help_mode"));
   118             $this->
toolbar->addInputItem($si);
   120             $this->
toolbar->addFormButton($this->
lng->txt(
"help_set_mode"), 
"setMode");
   122         $this->
toolbar->setFormAction($this->
ctrl->getFormAction($this), 
true);
   126         $this->tpl->setContent($table->getHTML());
   132             $this->tabs_gui->addTab(
   134                 $this->
lng->txt(
"settings"),
   135                 $this->
ctrl->getLinkTarget($this, 
"editSettings")
   140             $this->tabs_gui->addTab(
   142                 $this->
lng->txt(
"perm_settings"),
   143                 $this->
ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'), 
"perm")
   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");
   155             $this->domain->module()->upload($_FILES[
"help_file"]);
   156             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"help_module_uploaded"), 
true);
   159         $this->
ctrl->redirect($this, 
"editSettings");
   166         $ids = $this->help_request->getIds();
   168         if (count($ids) === 0) {
   169             $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
"no_checkbox"), 
true);
   170             $this->
ctrl->redirect($this, 
"editSettings");
   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");
   178             foreach ($ids as $i) {
   179                 $cgui->addItem(
"id[]", $i, $this->domain->module()->lookupModuleLmId($i));
   182             $this->tpl->setContent($cgui->getHTML());
   189         $ids = $this->help_request->getIds();
   190         foreach ($ids as $i) {
   191             $this->domain->module()->deleteModule((
int) $i);
   193         $this->
ctrl->redirect($this, 
"editSettings");
   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");
   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");
   218                 $this->help_request->getHelpMode()
   220             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"), 
true);
   223         $this->
ctrl->redirect($this, 
"editSettings");
   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");
 
checkPermission(string $perm, string $cmd="", string $type="", int $ref_id=null)
 
ilObjHelpSettingsGUI: ilPermissionGUI  ilObjHelpSettingsGUI: ilAdministrationGUI 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
New implementation of ilObjectGUI. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
prepareOutput(bool $show_sub_objects=true)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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)
 
ILIAS Help InternalDomainService $domain
 
StandardGUIRequest $help_request
 
ILIAS Help InternalGUIService $gui
 
__construct(int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
 
confirmHelpModulesDeletion()
 
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.