ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilObjSystemFolderGUI Class Reference

Class ilObjSystemFolderGUI. More...

+ Inheritance diagram for ilObjSystemFolderGUI:
+ Collaboration diagram for ilObjSystemFolderGUI:

Public Member Functions

 __construct ($a_data, $a_id, $a_call_by_reference)
 Constructor public. More...
 
 executeCommand ()
 
 viewObject ()
 show admin subpanels and basic settings form More...
 
 viewScanLogObject ()
 
 setSystemCheckSubTabs ($a_activate)
 Set sub tabs for general settings. More...
 
 checkObject ()
 displays system check menu More...
 
 changeHeaderTitleObject ()
 edit header title form More...
 
 saveHeaderTitleObject ()
 save header title More...
 
 cancelObject ()
 
 addHeaderTitleTranslationObject ()
 adds a translation form & save post vars to session More...
 
 removeTranslationObject ()
 removes a translation form & save post vars to session More...
 
 startValidator ($a_mode, $a_log)
 
 viewScanLog ()
 
 benchmarkObject ()
 Benchmark settings. More...
 
 showDbBenchChronologicalObject ()
 Show db benchmark results. More...
 
 showDbBenchSlowestFirstObject ()
 Show db benchmark results. More...
 
 showDbBenchSortedBySqlObject ()
 Show db benchmark results. More...
 
 showDbBenchByFirstTableObject ()
 Show db benchmark results. More...
 
 showDbBenchResults ($a_mode)
 Show Db Benchmark Results. More...
 
 benchmarkSubTabs ($a_current)
 Benchmark sub tabs. More...
 
 saveBenchSettingsObject ()
 Save benchmark settings. More...
 
 switchBenchModuleObject ()
 save benchmark settings More...
 
 clearBenchObject ()
 delete all benchmark records More...
 
 getAdminTabs ()
 
 showPHPInfoObject ()
 Show PHP Information. More...
 
 setServerInfoSubTabs ($a_activate)
 Set sub tabs for server info. More...
 
 initServerInfoForm ()
 Init server info form. More...
 
 setGeneralSettingsSubTabs ($a_activate)
 Set sub tabs for general settings. More...
 
 showBasicSettingsObject ()
 Show basic settings. More...
 
 saveBasicSettingsObject ()
 Save basic settings form. More...
 
 showHeaderTitleObject ( $a_get_post_values=false, bool $add_entry=false)
 Show header title. More...
 
 saveHeaderTitlesObject (bool $delete=false)
 Save header titles. More...
 
 addHeaderTitleObject ()
 Add a header title. More...
 
 deleteHeaderTitlesObject ()
 Remove header titles. More...
 
 jumpToCronJobsObject ()
 
 showContactInformationObject ()
 Show contact information. More...
 
 initContactInformationForm ()
 Init contact information form. More...
 
 saveContactInformationObject ()
 Save contact information form. More...
 
 showJavaServerObject ()
 Show Java Server Settings. More...
 
 createJavaServerIniObject ()
 Create a server ini file. More...
 
 initJavaServerForm ()
 Init java server form. More...
 
 saveJavaServerObject ()
 Save java server form. More...
 
- Public Member Functions inherited from ilObjectGUI
 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 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)
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static _goto ()
 goto target group 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

string $type
 
- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
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
 

Protected Member Functions

 showServerInstallationStatusObject ()
 
 renderServerStatus ()
 
 getServerStatusInfo (ILIAS\Refinery\Factory $refinery)
 
 showVcsInformationObject ()
 
- 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...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 getCreationFormsHTML (array $forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm (string $new_type)
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 addAdoptContentLinkToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 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...
 
 initImportForm (string $new_type)
 
 importFileObject (int $parent_id=null)
 
 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...
 

Protected Attributes

ILIAS Repository InternalGUIService $gui
 
ilPropertyFormGUI $form
 
ILIAS Style Content Object ObjectFacade $content_style_domain
 
ilTabsGUI $tabs
 
ilRbacSystem $rbacsystem
 
ilObjectDefinition $obj_definition
 
ilErrorHandling $error
 
ilDBInterface $db
 
ilStyleDefinition $style_definition
 
ilHelpGUI $help
 
ilIniFile $client_ini
 
ilBenchmark $bench
 
ILIAS HTTP Wrapper WrapperFactory $wrapper
 
ILIAS Refinery Factory $refinery
 
- 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
 
Factory $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
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 = ""
 

Private Member Functions

 saveCheckParamsObject ()
 
 writeCheckParams ()
 
 saveCheckCronObject ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjSystemFolderGUI::__construct (   $a_data,
  $a_id,
  $a_call_by_reference 
)

Constructor public.

Definition at line 55 of file class.ilObjSystemFolderGUI.php.

References $DIC, ILIAS\MetaData\Repository\Validation\Data\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

56  {
57  global $DIC;
58 
59  $this->tabs = $DIC->tabs();
60  $this->access = $DIC->access();
61  $this->ctrl = $DIC->ctrl();
62  $this->rbacsystem = $DIC->rbac()->system();
63  $this->user = $DIC->user();
64  $this->obj_definition = $DIC["objDefinition"];
65  $this->settings = $DIC->settings();
66  $this->error = $DIC["ilErr"];
67  $this->db = $DIC->database();
68  $this->style_definition = $DIC["styleDefinition"];
69  $this->lng = $DIC->language();
70  $this->tpl = $DIC["tpl"];
71  $this->help = $DIC["ilHelp"];
72  $this->toolbar = $DIC->toolbar();
73  $this->client_ini = $DIC["ilClientIniFile"];
74  $this->type = "adm";
75  $this->bench = $DIC["ilBench"];
76  $this->wrapper = $DIC->http()->wrapper();
77  $this->refinery = $DIC->refinery();
78  parent::__construct($a_data, $a_id, $a_call_by_reference, false);
79 
80  $this->lng->loadLanguageModule("administration");
81  $this->lng->loadLanguageModule("adm");
82  $this->content_style_domain = $DIC->contentStyle()
83  ->domain()
84  ->styleForRefId($this->object->getRefId());
85  $this->gui = $DIC->repository()->internal()->gui();
86  }
global $DIC
Definition: feed.php:28
__construct(VocabulariesInterface $vocabularies)
+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjSystemFolderGUI::_goto ( )
static

goto target group

Definition at line 1756 of file class.ilObjSystemFolderGUI.php.

References $DIC, $ilErr, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, ilUtil\redirect(), ROOT_FOLDER_ID, SYSTEM_FOLDER_ID, and ilLanguage\txt().

1756  : void
1757  {
1758  global $DIC;
1759  $main_tpl = $DIC->ui()->mainTemplate();
1760 
1761  $ilAccess = $DIC->access();
1762  $ilErr = $DIC["ilErr"];
1763  $lng = $DIC->language();
1764 
1765  $a_target = SYSTEM_FOLDER_ID;
1766 
1767  if ($ilAccess->checkAccess("read", "", $a_target)) {
1768  ilUtil::redirect("ilias.php?baseClass=ilAdministrationGUI");
1769  exit;
1770  } else {
1771  if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
1772  $main_tpl->setOnScreenMessage('failure', sprintf(
1773  $lng->txt("msg_no_perm_read_item"),
1775  ), true);
1777  }
1778  }
1779  $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
1780  }
exit
Definition: login.php:29
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...
const ROOT_FOLDER_ID
Definition: constants.php:32
const SYSTEM_FOLDER_ID
Definition: constants.php:35
$ilErr
Definition: raiseError.php:17
static _lookupObjId(int $ref_id)
global $DIC
Definition: feed.php:28
ilLanguage $lng
static _lookupTitle(int $obj_id)
static redirect(string $a_script)
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
+ Here is the call graph for this function:

◆ addHeaderTitleObject()

ilObjSystemFolderGUI::addHeaderTitleObject ( )

Add a header title.

Definition at line 1437 of file class.ilObjSystemFolderGUI.php.

References showHeaderTitleObject().

1437  : void
1438  {
1439  $k = 1;
1440  $this->showHeaderTitleObject(true, true);
1441  }
showHeaderTitleObject( $a_get_post_values=false, bool $add_entry=false)
Show header title.
+ Here is the call graph for this function:

◆ addHeaderTitleTranslationObject()

ilObjSystemFolderGUI::addHeaderTitleTranslationObject ( )

adds a translation form & save post vars to session

public

Definition at line 579 of file class.ilObjSystemFolderGUI.php.

References ILIAS\Repository\ctrl().

579  : void
580  {
581  $_SESSION["translation_post"] = $_POST;
582 
583  $this->ctrl->setParameter($this, "mode", "session");
584  $this->ctrl->setParameter($this, "entry", "0");
585  $this->ctrl->redirect($this, "changeHeaderTitle");
586  }
+ Here is the call graph for this function:

◆ benchmarkObject()

ilObjSystemFolderGUI::benchmarkObject ( )

Benchmark settings.

Definition at line 676 of file class.ilObjSystemFolderGUI.php.

References ilObjUser\_lookupLogin(), benchmarkSubTabs(), ILIAS\Repository\ctrl(), ilBenchmark\DB_BENCH_USER, ilBenchmark\ENABLE_DB_BENCH, ILIAS\Repository\form(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ILIAS\Repository\settings().

676  : void
677  {
678  if (!$this->rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
679  $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
680  }
681 
682  $write_access = $this->rbacsystem->checkAccess("write", $this->object->getRefId());
683 
684  $this->benchmarkSubTabs("settings");
685 
686  $this->form = new ilPropertyFormGUI();
687 
688  // Activate DB Benchmark
689  $cb = new ilCheckboxInputGUI($this->lng->txt("adm_activate_db_benchmark"), ilBenchmark::ENABLE_DB_BENCH);
690  $cb->setChecked((bool) $this->settings->get(ilBenchmark::ENABLE_DB_BENCH));
691  $cb->setInfo($this->lng->txt("adm_activate_db_benchmark_desc"));
692  $cb->setDisabled(!$write_access);
693  $this->form->addItem($cb);
694 
695  // DB Benchmark User
696  $ti = new ilTextInputGUI($this->lng->txt("adm_db_benchmark_user"), ilBenchmark::DB_BENCH_USER);
697  $user_id = ($this->settings->get(ilBenchmark::DB_BENCH_USER)) ?? null;
698  if ($user_id !== null && ilObjUser::_lookupLogin((int) $user_id) !== '') {
699  $ti->setValue(ilObjUser::_lookupLogin($user_id));
700  } else {
701  $ti->setValue('');
702  }
703  $ti->setInfo($this->lng->txt("adm_db_benchmark_user_desc"));
704  $ti->setDisabled(!$write_access);
705  $this->form->addItem($ti);
706 
707  if ($write_access) {
708  $this->form->addCommandButton("saveBenchSettings", $this->lng->txt("save"));
709  }
710 
711  $this->form->setTitle($this->lng->txt("adm_db_benchmark"));
712  $this->form->setFormAction($this->ctrl->getFormAction($this));
713 
714  $this->tpl->setContent($this->form->getHTML());
715  }
benchmarkSubTabs($a_current)
Benchmark sub tabs.
form( $class_path, string $cmd, string $submit_caption="")
static _lookupLogin(int $a_user_id)
+ Here is the call graph for this function:

◆ benchmarkSubTabs()

ilObjSystemFolderGUI::benchmarkSubTabs (   $a_current)

Benchmark sub tabs.

Parameters

Definition at line 775 of file class.ilObjSystemFolderGUI.php.

References $bench, ilObjectGUI\$ctrl, ilObjectGUI\$lng, $tabs, ilBenchmark\getDbBenchRecords(), and ilLanguage\txt().

Referenced by benchmarkObject(), showDbBenchByFirstTableObject(), showDbBenchChronologicalObject(), showDbBenchSlowestFirstObject(), and showDbBenchSortedBySqlObject().

775  : void
776  {
777  $ilTabs = $this->tabs;
778  $lng = $this->lng;
779  $ilCtrl = $this->ctrl;
780 
781  $ilBench = $this->bench;
782  $ilTabs->activateTab("benchmarks"); // #18083
783 
784  $ilTabs->addSubtab(
785  "settings",
786  $lng->txt("settings"),
787  $ilCtrl->getLinkTarget($this, "benchmark")
788  );
789 
790  $rec = $ilBench->getDbBenchRecords();
791  if ($rec !== []) {
792  $ilTabs->addSubtab(
793  "chronological",
794  $lng->txt("adm_db_bench_chronological"),
795  $ilCtrl->getLinkTarget($this, "showDbBenchChronological")
796  );
797  $ilTabs->addSubtab(
798  "slowest_first",
799  $lng->txt("adm_db_bench_slowest_first"),
800  $ilCtrl->getLinkTarget($this, "showDbBenchSlowestFirst")
801  );
802  $ilTabs->addSubtab(
803  "sorted_by_sql",
804  $lng->txt("adm_db_bench_sorted_by_sql"),
805  $ilCtrl->getLinkTarget($this, "showDbBenchSortedBySql")
806  );
807  $ilTabs->addSubtab(
808  "by_first_table",
809  $lng->txt("adm_db_bench_by_first_table"),
810  $ilCtrl->getLinkTarget($this, "showDbBenchByFirstTable")
811  );
812  }
813 
814  $ilTabs->activateSubTab($a_current);
815  }
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...
ilLanguage $lng
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cancelObject()

ilObjSystemFolderGUI::cancelObject ( )

Definition at line 569 of file class.ilObjSystemFolderGUI.php.

References ILIAS\Repository\ctrl().

569  : void
570  {
571  $this->ctrl->redirect($this, "view");
572  }
+ Here is the call graph for this function:

◆ changeHeaderTitleObject()

ilObjSystemFolderGUI::changeHeaderTitleObject ( )

edit header title form

private

Definition at line 391 of file class.ilObjSystemFolderGUI.php.

References $_GET, ilObjectGUI\$data, ILIAS\LTI\ToolProvider\$key, $rbacsystem, $style_definition, ilMDLanguageItem\_getLanguages(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), and ilUtil\stripSlashes().

391  : void
392  {
394  $styleDefinition = $this->style_definition;
395 
396  $this->tpl->addBlockFile(
397  "ADM_CONTENT",
398  "adm_content",
399  "tpl.header_title_edit.html",
400  "Modules/SystemFolder"
401  );
402 
403  $array_push = true;
404 
405  if ($_SESSION["error_post_vars"]) {
406  $_SESSION["translation_post"] = $_SESSION["error_post_vars"];
407  $_GET["mode"] = "session";
408  $array_push = false;
409  }
410 
411  // load from db if edit category is called the first time
412  if (($_GET["mode"] != "session")) {
413  $data = $this->object->getHeaderTitleTranslations();
414  $_SESSION["translation_post"] = $data;
415  $array_push = false;
416  } // remove a translation from session
417  elseif ($_GET["entry"] != 0) {
418  array_splice($_SESSION["translation_post"]["Fobject"], $_GET["entry"], 1, array());
419 
420  if ($_GET["entry"] == $_SESSION["translation_post"]["default_language"]) {
421  $_SESSION["translation_post"]["default_language"] = "";
422  }
423  }
424 
425  $data = $_SESSION["translation_post"];
426 
427  // add additional translation form
428  if (!$_GET["entry"] and $array_push) {
429  $count = array_push($data["Fobject"], array("title" => "","desc" => ""));
430  } else {
431  $count = count($data["Fobject"]);
432  }
433 
434  // stripslashes in form?
435  $strip = isset($_SESSION["translation_post"]) ? true : false;
436 
437  foreach ($data["Fobject"] as $key => $val) {
438  // add translation button
439  if ($key == $count - 1) {
440  $this->tpl->setCurrentBlock("addTranslation");
441  $this->tpl->setVariable("TXT_ADD_TRANSLATION", $this->lng->txt("add_translation") . " >>");
442  $this->tpl->parseCurrentBlock();
443  }
444 
445  // remove translation button
446  if ($key != 0) {
447  $this->tpl->setCurrentBlock("removeTranslation");
448  $this->tpl->setVariable("TXT_REMOVE_TRANSLATION", $this->lng->txt("remove_translation"));
449  $this->ctrl->setParameter($this, "entry", $key);
450  $this->ctrl->setParameter($this, "mode", "edit");
451  $this->tpl->setVariable(
452  "LINK_REMOVE_TRANSLATION",
453  $this->ctrl->getLinkTarget($this, "removeTranslation")
454  );
455  $this->tpl->parseCurrentBlock();
456  }
457 
458  // lang selection
459  $this->tpl->addBlockFile(
460  "SEL_LANGUAGE",
461  "sel_language",
462  "tpl.lang_selection.html",
463  "Services/MetaData"
464  );
465  $this->tpl->setVariable("SEL_NAME", "Fobject[" . $key . "][lang]");
466 
467  $languages = ilMDLanguageItem::_getLanguages();
468 
469  foreach ($languages as $code => $language) {
470  $this->tpl->setCurrentBlock("lg_option");
471  $this->tpl->setVariable("VAL_LG", $code);
472  $this->tpl->setVariable("TXT_LG", $language);
473 
474  if ($code == $val["lang"]) {
475  $this->tpl->setVariable("SELECTED", "selected=\"selected\"");
476  }
477 
478  $this->tpl->parseCurrentBlock();
479  }
480 
481  // object data
482  $this->tpl->setCurrentBlock("obj_form");
483 
484  if ($key == 0) {
485  $this->tpl->setVariable("TXT_HEADER", $this->lng->txt("change_header_title"));
486  } else {
487  $this->tpl->setVariable("TXT_HEADER", $this->lng->txt("translation") . " " . $key);
488  }
489 
490  if ($key == $data["default_language"]) {
491  $this->tpl->setVariable("CHECKED", "checked=\"checked\"");
492  }
493 
494  $this->tpl->setVariable("TXT_TITLE", $this->lng->txt("title"));
495  $this->tpl->setVariable("TXT_DESC", $this->lng->txt("desc"));
496  $this->tpl->setVariable("TXT_DEFAULT", $this->lng->txt("default"));
497  $this->tpl->setVariable("TXT_LANGUAGE", $this->lng->txt("language"));
498  $this->tpl->setVariable("TITLE", ilLegacyFormElementsUtil::prepareFormOutput($val["title"], $strip));
499  $this->tpl->setVariable("DESC", ilUtil::stripSlashes($val["desc"]));
500  $this->tpl->setVariable("NUM", $key);
501  $this->tpl->parseCurrentBlock();
502  }
503 
504  // global
505  $this->tpl->setCurrentBlock("adm_content");
506 
507  $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
508  $this->tpl->setVariable("TXT_CANCEL", $this->lng->txt("cancel"));
509  $this->tpl->setVariable("TXT_SUBMIT", $this->lng->txt("save"));
510  $this->tpl->setVariable("CMD_SUBMIT", "saveHeaderTitle");
511  $this->tpl->setVariable("TXT_REQUIRED_FLD", $this->lng->txt("required_field"));
512  }
$_GET["client_id"]
Definition: webdav.php:30
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
static prepareFormOutput($a_str, bool $a_strip=false)
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:

◆ checkObject()

ilObjSystemFolderGUI::checkObject ( )

displays system check menu

public

Definition at line 173 of file class.ilObjSystemFolderGUI.php.

References $db, $error, $ilDB, $ilErr, $ilSetting, $obj_definition, $rbacsystem, ilObjectGUI\$settings, ilObjectGUI\$user, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ilLegacyFormElementsUtil\formSelect(), ilObjectPlugin\getPluginObjectByType(), ILIAS\Repository\lng(), setSystemCheckSubTabs(), ilRadioGroupInputGUI\setValue(), startValidator(), and writeCheckParams().

Referenced by saveCheckCronObject(), and saveCheckParamsObject().

173  : void
174  {
176  $ilUser = $this->user;
177  $objDefinition = $this->obj_definition;
180 
181  $this->setSystemCheckSubTabs("system_check_sub");
182 
183  if (!$rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
184  $ilErr->raiseError($this->lng->txt("permission_denied"), $ilErr->MESSAGE);
185  }
186 
187  if ($_POST['count_limit'] !== null || $_POST['age_limit'] !== null || $_POST['type_limit'] !== null) {
188  $ilUser->writePref(
189  'systemcheck_count_limit',
190  (is_numeric($_POST['count_limit']) && $_POST['count_limit'] > 0) ? $_POST['count_limit'] : ''
191  );
192  $ilUser->writePref(
193  'systemcheck_age_limit',
194  (is_numeric($_POST['age_limit']) && $_POST['age_limit'] > 0) ? $_POST['age_limit'] : ''
195  );
196  $ilUser->writePref('systemcheck_type_limit', trim($_POST['type_limit']));
197  }
198 
199  if ($_POST["mode"]) {
200  $this->writeCheckParams();
201  $this->startValidator($_POST["mode"], $_POST["log_scan"]);
202  } else {
203  $validator = new ilValidator();
204  $hasScanLog = $validator->hasScanLog();
205 
206  $this->tpl->addBlockFile(
207  "ADM_CONTENT",
208  "adm_content",
209  "tpl.adm_check.html",
210  "Modules/SystemFolder"
211  );
212 
213  if ($hasScanLog) {
214  $this->tpl->setVariable("TXT_VIEW_LOG", $this->lng->txt("view_last_log"));
215  }
216 
217  $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
218  $this->tpl->setVariable("TXT_TITLE", $this->lng->txt("systemcheck"));
219  $this->tpl->setVariable("COLSPAN", 3);
220  $this->tpl->setVariable("TXT_ANALYZE_TITLE", $this->lng->txt("analyze_data"));
221  $this->tpl->setVariable("TXT_ANALYSIS_OPTIONS", $this->lng->txt("analysis_options"));
222  $this->tpl->setVariable("TXT_REPAIR_OPTIONS", $this->lng->txt("repair_options"));
223  $this->tpl->setVariable("TXT_OUTPUT_OPTIONS", $this->lng->txt("output_options"));
224  $this->tpl->setVariable("TXT_SCAN", $this->lng->txt("scan"));
225  $this->tpl->setVariable("TXT_SCAN_DESC", $this->lng->txt("scan_desc"));
226  $this->tpl->setVariable("TXT_DUMP_TREE", $this->lng->txt("dump_tree"));
227  $this->tpl->setVariable("TXT_DUMP_TREE_DESC", $this->lng->txt("dump_tree_desc"));
228  $this->tpl->setVariable("TXT_CLEAN", $this->lng->txt("clean"));
229  $this->tpl->setVariable("TXT_CLEAN_DESC", $this->lng->txt("clean_desc"));
230  $this->tpl->setVariable("TXT_RESTORE", $this->lng->txt("restore_missing"));
231  $this->tpl->setVariable("TXT_RESTORE_DESC", $this->lng->txt("restore_missing_desc"));
232  $this->tpl->setVariable("TXT_PURGE", $this->lng->txt("purge_missing"));
233  $this->tpl->setVariable("TXT_PURGE_DESC", $this->lng->txt("purge_missing_desc"));
234  $this->tpl->setVariable("TXT_RESTORE_TRASH", $this->lng->txt("restore_trash"));
235  $this->tpl->setVariable("TXT_RESTORE_TRASH_DESC", $this->lng->txt("restore_trash_desc"));
236  $this->tpl->setVariable("TXT_PURGE_TRASH", $this->lng->txt("purge_trash"));
237  $this->tpl->setVariable("TXT_PURGE_TRASH_DESC", $this->lng->txt("purge_trash_desc"));
238  $this->tpl->setVariable("TXT_COUNT_LIMIT", $this->lng->txt("purge_count_limit"));
239  $this->tpl->setVariable("TXT_COUNT_LIMIT_DESC", $this->lng->txt("purge_count_limit_desc"));
240  $this->tpl->setVariable("COUNT_LIMIT_VALUE", $ilUser->getPref("systemcheck_count_limit"));
241  $this->tpl->setVariable("TXT_AGE_LIMIT", $this->lng->txt("purge_age_limit"));
242  $this->tpl->setVariable("TXT_AGE_LIMIT_DESC", $this->lng->txt("purge_age_limit_desc"));
243  $this->tpl->setVariable("AGE_LIMIT_VALUE", $ilUser->getPref("systemcheck_age_limit"));
244  $this->tpl->setVariable("TXT_TYPE_LIMIT", $this->lng->txt("purge_type_limit"));
245  $this->tpl->setVariable("TXT_TYPE_LIMIT_DESC", $this->lng->txt("purge_type_limit_desc"));
246 
247  if ($ilUser->getPref('systemcheck_mode_scan')) {
248  $this->tpl->touchBlock('mode_scan_checked');
249  }
250  if ($ilUser->getPref('systemcheck_mode_dump_tree')) {
251  $this->tpl->touchBlock('mode_dump_tree_checked');
252  }
253  if ($ilUser->getPref('systemcheck_mode_clean')) {
254  $this->tpl->touchBlock('mode_clean_checked');
255  }
256  if ($ilUser->getPref('systemcheck_mode_restore')) {
257  $this->tpl->touchBlock('mode_restore_checked');
258  $this->tpl->touchBlock('mode_purge_disabled');
259  } elseif ($ilUser->getPref('systemcheck_mode_purge')) {
260  $this->tpl->touchBlock('mode_purge_checked');
261  $this->tpl->touchBlock('mode_restore_disabled');
262  }
263  if ($ilUser->getPref('systemcheck_mode_restore_trash')) {
264  $this->tpl->touchBlock('mode_restore_trash_checked');
265  $this->tpl->touchBlock('mode_purge_trash_disabled');
266  } elseif ($ilUser->getPref('systemcheck_mode_purge_trash')) {
267  $this->tpl->touchBlock('mode_purge_trash_checked');
268  $this->tpl->touchBlock('mode_restore_trash_disabled');
269  }
270  if ($ilUser->getPref('systemcheck_log_scan')) {
271  $this->tpl->touchBlock('log_scan_checked');
272  }
273 
274 
275  // #9520 - restrict to types which can be found in tree
276 
277  $obj_types_in_tree = [];
278 
279  $ilDB = $this->db;
280  $set = $ilDB->query('SELECT type FROM object_data od' .
281  ' JOIN object_reference ref ON (od.obj_id = ref.obj_id)' .
282  ' JOIN tree ON (tree.child = ref.ref_id)' .
283  ' WHERE tree.tree < 1' .
284  ' GROUP BY type');
285  while ($row = $ilDB->fetchAssoc($set)) {
286  $obj_types_in_tree[] = $row['type'];
287  }
288 
289  $types = $objDefinition->getAllObjects();
290  $ts = ["" => ""];
291  foreach ($types as $t) {
292  if ($t != "" && !$objDefinition->isSystemObject($t) && $t != "root" &&
293  in_array($t, $obj_types_in_tree)) {
294  if ($objDefinition->isPlugin($t)) {
296  $ts[$t] = $pl->txt("obj_" . $t);
297  } else {
298  $ts[$t] = $this->lng->txt("obj_" . $t);
299  }
300  }
301  }
302  asort($ts);
303  $this->tpl->setVariable(
304  "TYPE_LIMIT_CHOICE",
306  $ilUser->getPref("systemcheck_type_limit"),
307  'type_limit',
308  $ts,
309  false,
310  true
311  )
312  );
313  $this->tpl->setVariable("TXT_LOG_SCAN", $this->lng->txt("log_scan"));
314  $this->tpl->setVariable("TXT_LOG_SCAN_DESC", $this->lng->txt("log_scan_desc"));
315  $this->tpl->setVariable("TXT_SUBMIT", $this->lng->txt("start_scan"));
316 
317  $this->tpl->setVariable("TXT_SAVE", $this->lng->txt("save_params_for_cron"));
318 
319  $cron_form = new ilPropertyFormGUI();
320  $cron_form->setFormAction($this->ctrl->getFormAction($this));
321  $cron_form->setTitle($this->lng->txt('systemcheck_cronform'));
322 
323  $radio_group = new ilRadioGroupInputGUI($this->lng->txt('systemcheck_cron'), 'cronjob');
324  $radio_group->setValue($ilSetting->get('systemcheck_cron'));
325 
326  $radio_opt = new ilRadioOption($this->lng->txt('disabled'), 0);
327  $radio_group->addOption($radio_opt);
328 
329  $radio_opt = new ilRadioOption($this->lng->txt('enabled'), 1);
330  $radio_group->addOption($radio_opt);
331 
332  $cron_form->addItem($radio_group);
333 
334  $cron_form->addCommandButton('saveCheckCron', $this->lng->txt('save'));
335 
336  $this->tpl->setVariable('CRON_FORM', $cron_form->getHTML());
337  }
338  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static formSelect( $selected, string $varname, array $options, bool $multiple=false, bool $direct_text=false, int $size=0, string $style_class="", array $attribs=[], bool $disabled=false)
Builds a select form field with options and shows the selected option first.
$ilErr
Definition: raiseError.php:17
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
This class represents a property in a property form.
setSystemCheckSubTabs($a_activate)
Set sub tabs for general settings.
static getPluginObjectByType(string $type)
Return either a repoObject plugin or a orgunit extension plugin or null if the type is not a plugin...
global $ilSetting
Definition: privfeed.php:18
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilSetting $settings
ilObjectDefinition $obj_definition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearBenchObject()

ilObjSystemFolderGUI::clearBenchObject ( )

delete all benchmark records

Definition at line 859 of file class.ilObjSystemFolderGUI.php.

References $bench, ilBenchmark\clearData(), and saveBenchSettingsObject().

859  : void
860  {
861  $ilBench = $this->bench;
862  $ilBench->clearData();
863  $this->saveBenchSettingsObject();
864  }
clearData()
delete all measurement data
saveBenchSettingsObject()
Save benchmark settings.
+ Here is the call graph for this function:

◆ createJavaServerIniObject()

ilObjSystemFolderGUI::createJavaServerIniObject ( )

Create a server ini file.

Returns

Definition at line 1686 of file class.ilObjSystemFolderGUI.php.

References ILIAS\Repository\form(), and setGeneralSettingsSubTabs().

1686  : void
1687  {
1688  $this->setGeneralSettingsSubTabs('java_server');
1689  $this->tpl->setContent($this->form->getHTML());
1690  }
form( $class_path, string $cmd, string $submit_caption="")
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
+ Here is the call graph for this function:

◆ deleteHeaderTitlesObject()

ilObjSystemFolderGUI::deleteHeaderTitlesObject ( )

Remove header titles.

Definition at line 1446 of file class.ilObjSystemFolderGUI.php.

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

1446  : void
1447  {
1448  $ilCtrl = $this->ctrl;
1449  $lng = $this->lng;
1450  $this->saveHeaderTitlesObject(true);
1451  }
ilLanguage $lng
saveHeaderTitlesObject(bool $delete=false)
Save header titles.
+ Here is the call graph for this function:

◆ executeCommand()

ilObjSystemFolderGUI::executeCommand ( )

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

References $tabs, ILIAS\Repository\ctrl(), ilObjectGUI\prepareOutput(), and setSystemCheckSubTabs().

88  : void
89  {
90  $ilTabs = $this->tabs;
91 
92  $next_class = $this->ctrl->getNextClass($this);
93  $this->prepareOutput();
94 
95  switch ($next_class) {
96  case 'ilpermissiongui':
97  $perm_gui = new ilPermissionGUI($this);
98  $this->ctrl->forwardCommand($perm_gui);
99  break;
100 
101  case "ilobjectownershipmanagementgui":
102  $this->setSystemCheckSubTabs("no_owner");
104  $this->ctrl->forwardCommand($gui);
105  break;
106 
107  case "ilcronmanagergui":
108  $ilTabs->activateTab("cron_jobs");
109  $gui = new ilCronManagerGUI();
110  $this->ctrl->forwardCommand($gui);
111  break;
112 
113  default:
114  //var_dump($_POST);
115  $cmd = $this->ctrl->getCmd("view");
116 
117  $cmd .= "Object";
118  $this->$cmd();
119 
120  break;
121  }
122  }
prepareOutput(bool $show_sub_objects=true)
ILIAS Repository InternalGUIService $gui
Class ilObjectOwnershipManagementGUI.
setSystemCheckSubTabs($a_activate)
Set sub tabs for general settings.
Class ilCronManagerGUI.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjSystemFolderGUI::getAdminTabs ( )

Definition at line 867 of file class.ilObjSystemFolderGUI.php.

References $help, $rbacsystem, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\object().

867  : void
868  {
870  $ilHelp = $this->help;
871 
872  // $ilHelp->setScreenIdComponent($this->object->getType());
873 
874  $this->ctrl->setParameter($this, "ref_id", $this->object->getRefId());
875 
876  // general settings
877  if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
878  $this->tabs_gui->addTarget(
879  "general_settings",
880  $this->ctrl->getLinkTarget($this, "showBasicSettings"),
881  ["showBasicSettings", "saveBasicSettings"],
882  get_class($this)
883  );
884  }
885 
886  // server info
887  if ($rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
888  $this->tabs_gui->addTarget(
889  "server",
890  $this->ctrl->getLinkTarget($this, "showServerInfo"),
891  ["showServerInfo", "view"],
892  get_class($this)
893  );
894  }
895 
896  if ($rbacsystem->checkAccess('visible,read', $this->object->getRefId())) {
897  $this->tabs_gui->addTarget(
898  'cron_jobs',
899  $this->ctrl->getLinkTargetByClass('ilCronManagerGUI', ''),
900  '',
901  get_class($this)
902  );
903 
904  $this->tabs_gui->addTarget(
905  'benchmarks',
906  $this->ctrl->getLinkTarget($this, 'benchmark'),
907  'benchmark',
908  get_class($this)
909  );
910  }
911 
912  if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
913  $this->tabs_gui->addTarget(
914  "perm_settings",
915  $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
916  array("perm","info","owner"),
917  'ilpermissiongui'
918  );
919  }
920  }
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
+ Here is the call graph for this function:

◆ getServerStatusInfo()

ilObjSystemFolderGUI::getServerStatusInfo ( ILIAS\Refinery\Factory  $refinery)
protected

Definition at line 1125 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$data, and ilObjectGUI\$lng.

Referenced by renderServerStatus().

1126  {
1127  $data = new Factory();
1128  $lng = new ilSetupLanguage('en');
1129  $interface_finder = new ImplementationOfInterfaceFinder();
1130 
1131  $agent_finder = new ImplementationOfAgentFinder(
1132  $refinery,
1133  $data,
1134  $lng,
1135  $interface_finder,
1136  []
1137  );
1138 
1139  $st = new StatusCommand($agent_finder);
1140 
1141  return $st->getMetrics($agent_finder->getAgents());
1142  }
ILIAS Refinery Factory $refinery
Command to output status information about the installation.
language handling for setup
ilLanguage $lng
+ Here is the caller graph for this function:

◆ initContactInformationForm()

ilObjSystemFolderGUI::initContactInformationForm ( )

Init contact information form.

Definition at line 1503 of file class.ilObjSystemFolderGUI.php.

References $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$settings, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilAccessibilitySupportContacts\getList(), ilSystemSupportContacts\getList(), ILIAS\Repository\lng(), ilEMailInputGUI\setMaxLength(), and ilLanguage\txt().

Referenced by saveContactInformationObject(), and showContactInformationObject().

1503  : void
1504  {
1505  $lng = $this->lng;
1507 
1508  $this->form = new ilPropertyFormGUI();
1509 
1510  // first name
1511  $ti = new ilTextInputGUI($this->lng->txt("firstname"), "admin_firstname");
1512  $ti->setMaxLength(64);
1513  $ti->setSize(40);
1514  $ti->setRequired(true);
1515  $ti->setValue($ilSetting->get("admin_firstname"));
1516  $this->form->addItem($ti);
1517 
1518  // last name
1519  $ti = new ilTextInputGUI($this->lng->txt("lastname"), "admin_lastname");
1520  $ti->setMaxLength(64);
1521  $ti->setSize(40);
1522  $ti->setRequired(true);
1523  $ti->setValue($ilSetting->get("admin_lastname"));
1524  $this->form->addItem($ti);
1525 
1526  // title
1527  $ti = new ilTextInputGUI($this->lng->txt("title"), "admin_title");
1528  $ti->setMaxLength(64);
1529  $ti->setSize(40);
1530  $ti->setValue($ilSetting->get("admin_title"));
1531  $this->form->addItem($ti);
1532 
1533  // position
1534  $ti = new ilTextInputGUI($this->lng->txt("position"), "admin_position");
1535  $ti->setMaxLength(64);
1536  $ti->setSize(40);
1537  $ti->setValue($ilSetting->get("admin_position"));
1538  $this->form->addItem($ti);
1539 
1540  // institution
1541  $ti = new ilTextInputGUI($this->lng->txt("institution"), "admin_institution");
1542  $ti->setMaxLength(200);
1543  $ti->setSize(40);
1544  $ti->setValue($ilSetting->get("admin_institution"));
1545  $this->form->addItem($ti);
1546 
1547  // street
1548  $ti = new ilTextInputGUI($this->lng->txt("street"), "admin_street");
1549  $ti->setMaxLength(64);
1550  $ti->setSize(40);
1551  //$ti->setRequired(true);
1552  $ti->setValue($ilSetting->get("admin_street"));
1553  $this->form->addItem($ti);
1554 
1555  // zip code
1556  $ti = new ilTextInputGUI($this->lng->txt("zipcode"), "admin_zipcode");
1557  $ti->setMaxLength(10);
1558  $ti->setSize(5);
1559  //$ti->setRequired(true);
1560  $ti->setValue($ilSetting->get("admin_zipcode"));
1561  $this->form->addItem($ti);
1562 
1563  // city
1564  $ti = new ilTextInputGUI($this->lng->txt("city"), "admin_city");
1565  $ti->setMaxLength(64);
1566  $ti->setSize(40);
1567  //$ti->setRequired(true);
1568  $ti->setValue($ilSetting->get("admin_city"));
1569  $this->form->addItem($ti);
1570 
1571  // country
1572  $ti = new ilTextInputGUI($this->lng->txt("country"), "admin_country");
1573  $ti->setMaxLength(64);
1574  $ti->setSize(40);
1575  //$ti->setRequired(true);
1576  $ti->setValue($ilSetting->get("admin_country"));
1577  $this->form->addItem($ti);
1578 
1579  // phone
1580  $ti = new ilTextInputGUI($this->lng->txt("phone"), "admin_phone");
1581  $ti->setMaxLength(64);
1582  $ti->setSize(40);
1583  //$ti->setRequired(true);
1584  $ti->setValue($ilSetting->get("admin_phone"));
1585  $this->form->addItem($ti);
1586 
1587  // email
1588  $ti = new ilEMailInputGUI($this->lng->txt("email"), "admin_email");
1589  $ti->setMaxLength(64);
1590  $ti->setSize(40);
1591  $ti->setRequired(true);
1592  $ti->allowRFC822(true);
1593  $ti->setValue($ilSetting->get("admin_email"));
1594  $this->form->addItem($ti);
1595 
1596  // System support contacts
1597  $ti = new ilTextInputGUI($this->lng->txt("adm_support_contacts"), "adm_support_contacts");
1598  $ti->setMaxLength(500);
1599  $ti->setValue(ilSystemSupportContacts::getList());
1600  //$ti->setSize();
1601  $ti->setInfo($this->lng->txt("adm_support_contacts_info"));
1602  $this->form->addItem($ti);
1603 
1604  // Accessibility support contacts
1605  $ti = new ilTextInputGUI($this->lng->txt("adm_accessibility_contacts"), "accessibility_support_contacts");
1606  $ti->setMaxLength(500);
1607  $ti->setValue(ilAccessibilitySupportContacts::getList());
1608  //$ti->setSize();
1609  $ti->setInfo($this->lng->txt("adm_accessibility_contacts_info"));
1610  $this->form->addItem($ti);
1611 
1612  $this->form->addCommandButton("saveContactInformation", $lng->txt("save"));
1613 
1614  $this->form->setTitle($lng->txt("contact_data"));
1615  $this->form->setFormAction($this->ctrl->getFormAction($this));
1616  }
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...
setMaxLength(int $max_length)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilLanguage $lng
form( $class_path, string $cmd, string $submit_caption="")
global $ilSetting
Definition: privfeed.php:18
ilSetting $settings
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initJavaServerForm()

ilObjSystemFolderGUI::initJavaServerForm ( )

Init java server form.

Definition at line 1695 of file class.ilObjSystemFolderGUI.php.

References $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$settings, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS\Repository\lng(), and ilLanguage\txt().

Referenced by saveJavaServerObject(), and showJavaServerObject().

1695  : void
1696  {
1697  $lng = $this->lng;
1699 
1700  $this->form = new ilPropertyFormGUI();
1701  $this->form->setFormAction($this->ctrl->getFormAction($this, 'saveJavaServer'));
1702 
1703  // pdf fonts
1704  $pdf = new ilFormSectionHeaderGUI();
1705  $pdf->setTitle($this->lng->txt('rpc_pdf_generation'));
1706  $this->form->addItem($pdf);
1707 
1708  $pdf_font = new ilTextInputGUI($this->lng->txt('rpc_pdf_font'), 'rpc_pdf_font');
1709  $pdf_font->setInfo($this->lng->txt('rpc_pdf_font_info'));
1710  $pdf_font->setSize(64);
1711  $pdf_font->setMaxLength(1024);
1712  $pdf_font->setRequired(true);
1713  $pdf_font->setValue(
1714  $ilSetting->get('rpc_pdf_font', 'Helvetica, unifont')
1715  );
1716  $this->form->addItem($pdf_font);
1717 
1718  // save and cancel commands
1719  $this->form->addCommandButton("saveJavaServer", $lng->txt("save"));
1720  }
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...
ilLanguage $lng
form( $class_path, string $cmd, string $submit_caption="")
global $ilSetting
Definition: privfeed.php:18
ilSetting $settings
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initServerInfoForm()

ilObjSystemFolderGUI::initServerInfoForm ( )

Init server info form.

Parameters
int$a_modeEdit Mode

Definition at line 1006 of file class.ilObjSystemFolderGUI.php.

References $_SERVER, $client_ini, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$settings, CLIENT_ID, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS_VERSION, ILIAS\Repository\lng(), and ilLanguage\txt().

Referenced by setServerInfoSubTabs().

1006  : void
1007  {
1008  $lng = $this->lng;
1009  $ilClientIniFile = $this->client_ini;
1011 
1012  $this->form = new ilPropertyFormGUI();
1013 
1014  // installation name
1015  $ne = new ilNonEditableValueGUI($lng->txt("inst_name"), "");
1016  $ne->setValue($ilClientIniFile->readVariable("client", "name"));
1017  $ne->setInfo($ilClientIniFile->readVariable("client", "description"));
1018  $this->form->addItem($ne);
1019 
1020  // client id
1021  $ne = new ilNonEditableValueGUI($lng->txt("client_id"), "");
1022  $ne->setValue(CLIENT_ID);
1023  $this->form->addItem($ne);
1024 
1025  // installation id
1026  $ne = new ilNonEditableValueGUI($lng->txt("inst_id"), "");
1027  $ne->setValue($ilSetting->get("inst_id"));
1028  $this->form->addItem($ne);
1029 
1030  // database version
1031  $ne = new ilNonEditableValueGUI($lng->txt("db_version"), "");
1032  $ne->setValue($ilSetting->get("db_version"));
1033 
1034  $this->form->addItem($ne);
1035 
1036  // ilias version
1037  $ne = new ilNonEditableValueGUI($lng->txt("ilias_version"), "");
1038  $ne->setValue(ILIAS_VERSION);
1039  $this->form->addItem($ne);
1040 
1041  // host
1042  $ne = new ilNonEditableValueGUI($lng->txt("host"), "");
1043  $ne->setValue($_SERVER["SERVER_NAME"]);
1044  $this->form->addItem($ne);
1045 
1046  // ip & port
1047  $ne = new ilNonEditableValueGUI($lng->txt("ip_address") . " & " . $this->lng->txt("port"), "");
1048  $ne->setValue($_SERVER["SERVER_ADDR"] . ":" . $_SERVER["SERVER_PORT"]);
1049  $this->form->addItem($ne);
1050 
1051  // server
1052  $ne = new ilNonEditableValueGUI($lng->txt("server_software"), "");
1053  $ne->setValue($_SERVER["SERVER_SOFTWARE"]);
1054  $this->form->addItem($ne);
1055 
1056  // http path
1057  $ne = new ilNonEditableValueGUI($lng->txt("http_path"), "");
1058  $ne->setValue(ILIAS_HTTP_PATH);
1059  $this->form->addItem($ne);
1060 
1061  // absolute path
1062  $ne = new ilNonEditableValueGUI($lng->txt("absolute_path"), "");
1063  $ne->setValue(ILIAS_ABSOLUTE_PATH);
1064  $this->form->addItem($ne);
1065 
1066  $not_set = $lng->txt("path_not_set");
1067 
1068  // convert
1069  $ne = new ilNonEditableValueGUI($lng->txt("path_to_convert"), "");
1070  $ne->setValue(PATH_TO_CONVERT ?: $not_set);
1071  $this->form->addItem($ne);
1072 
1073  // zip
1074  $ne = new ilNonEditableValueGUI($lng->txt("path_to_zip"), "");
1075  $ne->setValue(PATH_TO_ZIP ?: $not_set);
1076  $this->form->addItem($ne);
1077 
1078  // unzip
1079  $ne = new ilNonEditableValueGUI($lng->txt("path_to_unzip"), "");
1080  $ne->setValue(PATH_TO_UNZIP ?: $not_set);
1081  $this->form->addItem($ne);
1082 
1083  // java
1084  $ne = new ilNonEditableValueGUI($lng->txt("path_to_java"), "");
1085  $ne->setValue(PATH_TO_JAVA ?: $not_set);
1086  $this->form->addItem($ne);
1087 
1088  // mkisofs
1089  $ne = new ilNonEditableValueGUI($lng->txt("path_to_mkisofs"), "");
1090  $ne->setValue(PATH_TO_MKISOFS ?: $not_set);
1091  $this->form->addItem($ne);
1092 
1093  // latex
1094  $ne = new ilNonEditableValueGUI($lng->txt("url_to_latex"), "");
1095  $ne->setValue(URL_TO_LATEX ?: $not_set);
1096  $this->form->addItem($ne);
1097 
1098 
1099  $this->form->setTitle($lng->txt("server_data"));
1100  $this->form->setFormAction($this->ctrl->getFormAction($this));
1101  }
const ILIAS_VERSION
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...
ilLanguage $lng
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
const CLIENT_ID
Definition: constants.php:41
form( $class_path, string $cmd, string $submit_caption="")
global $ilSetting
Definition: privfeed.php:18
ilSetting $settings
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ jumpToCronJobsObject()

ilObjSystemFolderGUI::jumpToCronJobsObject ( )

Definition at line 1475 of file class.ilObjSystemFolderGUI.php.

References ILIAS\Repository\ctrl().

1475  : void
1476  {
1477  // #13010 - this is used for external settings
1478  $this->ctrl->redirectByClass("ilCronManagerGUI", "render");
1479  }
+ Here is the call graph for this function:

◆ removeTranslationObject()

ilObjSystemFolderGUI::removeTranslationObject ( )

removes a translation form & save post vars to session

public

Definition at line 593 of file class.ilObjSystemFolderGUI.php.

References $_GET, and ILIAS\Repository\ctrl().

593  : void
594  {
595  $this->ctrl->setParameter($this, "entry", $_GET["entry"]);
596  $this->ctrl->setParameter($this, "mode", "session");
597  $this->ctrl->redirect($this, "changeHeaderTitle");
598  }
$_GET["client_id"]
Definition: webdav.php:30
+ Here is the call graph for this function:

◆ renderServerStatus()

ilObjSystemFolderGUI::renderServerStatus ( )
protected

Definition at line 1112 of file class.ilObjSystemFolderGUI.php.

References $DIC, Vendor\Package\$f, $r, getServerStatusInfo(), and ILIAS\Repository\lng().

Referenced by showServerInstallationStatusObject().

1112  : void
1113  {
1114  global $DIC;
1115  $f = $DIC->ui()->factory();
1116  $r = $DIC->ui()->renderer();
1117  $refinery = $DIC->refinery();
1118 
1119  $metric = $this->getServerStatusInfo($refinery);
1120  $report = $metric->toUIReport($f, $this->lng->txt("installation_status"));
1121 
1122  $this->tpl->setContent($r->render($report));
1123  }
ILIAS Refinery Factory $refinery
getServerStatusInfo(ILIAS\Refinery\Factory $refinery)
global $DIC
Definition: feed.php:28
$r
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveBasicSettingsObject()

ilObjSystemFolderGUI::saveBasicSettingsObject ( )

Save basic settings form.

Definition at line 1266 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$ctrl, $error, $ilErr, $ilSetting, ilObjectGUI\$lng, $rbacsystem, ilObjectGUI\$settings, ilObjectGUI\$tpl, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilPublicSectionSettings\getInstance(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\setContent(), setGeneralSettingsSubTabs(), and ilLanguage\txt().

1266  : void
1267  {
1268  $tpl = $this->tpl;
1269  $lng = $this->lng;
1270  $ilCtrl = $this->ctrl;
1273  $ilErr = $this->error;
1274 
1275  if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
1276  $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
1277  $this->ctrl->redirectByClass(self::class);
1278  //$ilErr->raiseError($this->lng->txt("permission_denied"), $ilErr->MESSAGE);
1279  }
1280 
1281  $this->initBasicSettingsForm();
1282  if ($this->form->checkInput()) {
1283  $ilSetting->set("short_inst_name", $this->form->getInput("short_inst_name"));
1284 
1285  $public_section = ilPublicSectionSettings::getInstance();
1286  $public_section->setEnabled($this->form->getInput('pub_section'));
1287 
1288  $domains = [];
1289  foreach ((array) $this->form->getInput('public_section_domains') as $domain) {
1290  if (strlen(trim($domain)) !== 0) {
1291  $domains[] = $domain;
1292  }
1293  }
1294  $public_section->setDomains($domains);
1295  $public_section->save();
1296 
1297  $global_profiles = ($this->form->getInput("pub_section"))
1298  ? (int) $this->form->getInput('enable_global_profiles')
1299  : 0;
1300  $ilSetting->set('enable_global_profiles', $global_profiles);
1301 
1302  $ilSetting->set("open_google", $this->form->getInput("open_google"));
1303  $ilSetting->set("locale", $this->form->getInput("locale"));
1304 
1305  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1306  $ilCtrl->redirect($this, "showBasicSettings");
1307  }
1308  $this->setGeneralSettingsSubTabs("basic_settings");
1309  $this->form->setValuesByPost();
1310  $tpl->setContent($this->form->getHtml());
1311  }
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...
$ilErr
Definition: raiseError.php:17
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
ilLanguage $lng
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd, string $submit_caption="")
global $ilSetting
Definition: privfeed.php:18
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
ilSetting $settings
+ Here is the call graph for this function:

◆ saveBenchSettingsObject()

ilObjSystemFolderGUI::saveBenchSettingsObject ( )

Save benchmark settings.

Definition at line 821 of file class.ilObjSystemFolderGUI.php.

References ILIAS\Repository\ctrl(), ilBenchmark\DB_BENCH_USER, ilBenchmark\ENABLE_DB_BENCH, ILIAS\Repository\lng(), ILIAS\Repository\object(), and ILIAS\Repository\refinery().

Referenced by clearBenchObject().

821  : void
822  {
823  $write_access = $this->rbacsystem->checkAccess("write", $this->object->getRefId());
824  if (!$write_access) {
825  $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
826  return;
827  }
828 
829  if ($this->wrapper->post()->has(ilBenchmark::ENABLE_DB_BENCH)
830  && $this->wrapper->post()->has(ilBenchmark::DB_BENCH_USER)) {
831  $activate = $this->wrapper->post()->retrieve(ilBenchmark::ENABLE_DB_BENCH, $this->refinery->kindlyTo()->bool());
832  if ($activate) {
833  $user_name = $this->wrapper->post()->retrieve(ilBenchmark::DB_BENCH_USER, $this->refinery->kindlyTo()->string());
834  $this->bench->enableDbBenchmarkForUserName($user_name);
835  }
836  } else {
837  $this->bench->disableDbBenchmark();
838  }
839 
840  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
841 
842  $this->ctrl->redirect($this, "benchmark");
843  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveCheckCronObject()

ilObjSystemFolderGUI::saveCheckCronObject ( )
private

Definition at line 375 of file class.ilObjSystemFolderGUI.php.

References $ilSetting, ilObjectGUI\$settings, and checkObject().

375  : void
376  {
378 
379  $systemcheck_cron = ($_POST['cronjob'] ? 1 : 0);
380  $ilSetting->set('systemcheck_cron', $systemcheck_cron);
381 
382  unset($_POST['mode']);
383  $this->checkObject();
384  }
checkObject()
displays system check menu
global $ilSetting
Definition: privfeed.php:18
ilSetting $settings
+ Here is the call graph for this function:

◆ saveCheckParamsObject()

ilObjSystemFolderGUI::saveCheckParamsObject ( )
private

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

References checkObject(), and writeCheckParams().

340  : void
341  {
342  $this->writeCheckParams();
343  unset($_POST['mode']);
344  $this->checkObject();
345  }
checkObject()
displays system check menu
+ Here is the call graph for this function:

◆ saveContactInformationObject()

ilObjSystemFolderGUI::saveContactInformationObject ( )

Save contact information form.

Definition at line 1622 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$ctrl, $error, Vendor\Package\$f, $ilErr, $ilSetting, ilObjectGUI\$lng, $rbacsystem, ilObjectGUI\$settings, ilObjectGUI\$tpl, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), initContactInformationForm(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\setContent(), setGeneralSettingsSubTabs(), ilAccessibilitySupportContacts\setList(), ilSystemSupportContacts\setList(), and ilLanguage\txt().

1622  : void
1623  {
1624  $tpl = $this->tpl;
1625  $lng = $this->lng;
1626  $ilCtrl = $this->ctrl;
1629  $ilErr = $this->error;
1630 
1631  if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
1632  $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
1633  $this->ctrl->redirectByClass(self::class, "showContactInformation");
1634  }
1635 
1636  $this->initContactInformationForm();
1637  if ($this->form->checkInput()) {
1638  $fs = array("admin_firstname", "admin_lastname", "admin_title", "admin_position",
1639  "admin_institution", "admin_street", "admin_zipcode", "admin_city",
1640  "admin_country", "admin_phone", "admin_email");
1641  foreach ($fs as $f) {
1642  $ilSetting->set($f, $_POST[$f]);
1643  }
1644 
1645  // System support contacts
1646  ilSystemSupportContacts::setList($_POST["adm_support_contacts"]);
1647 
1648  // Accessibility support contacts
1649  ilAccessibilitySupportContacts::setList($_POST["accessibility_support_contacts"]);
1650 
1651  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1652  $ilCtrl->redirect($this, "showContactInformation");
1653  } else {
1654  $this->setGeneralSettingsSubTabs("contact_data");
1655  $this->form->setValuesByPost();
1656  $tpl->setContent($this->form->getHtml());
1657  }
1658  }
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...
static setList($a_list)
Set list.
$ilErr
Definition: raiseError.php:17
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
ilLanguage $lng
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd, string $submit_caption="")
initContactInformationForm()
Init contact information form.
global $ilSetting
Definition: privfeed.php:18
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
ilSetting $settings
+ Here is the call graph for this function:

◆ saveHeaderTitleObject()

ilObjSystemFolderGUI::saveHeaderTitleObject ( )

save header title

Definition at line 517 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$data, $error, $ilErr, ILIAS\LTI\ToolProvider\$key, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilUtil\stripSlashes().

517  : void
518  {
519  $langs = [];
521 
522  $data = $_POST;
523 
524  // default language set?
525  if (!isset($data["default_language"])) {
526  $ilErr->raiseError($this->lng->txt("msg_no_default_language"), $ilErr->MESSAGE);
527  }
528 
529  // prepare array fro further checks
530  foreach ($data["Fobject"] as $key => $val) {
531  $langs[$key] = $val["lang"];
532  }
533 
534  $langs = array_count_values($langs);
535 
536  // all languages set?
537  if (array_key_exists("", $langs)) {
538  $ilErr->raiseError($this->lng->txt("msg_no_language_selected"), $ilErr->MESSAGE);
539  }
540 
541  // no single language is selected more than once?
542  if (array_sum($langs) > count($langs)) {
543  $ilErr->raiseError($this->lng->txt("msg_multi_language_selected"), $ilErr->MESSAGE);
544  }
545 
546  // copy default translation to variable for object data entry
547  $_POST["Fobject"]["title"] = $_POST["Fobject"][$_POST["default_language"]]["title"];
548  $_POST["Fobject"]["desc"] = $_POST["Fobject"][$_POST["default_language"]]["desc"];
549 
550  // first delete all translation entries...
551  $this->object->removeHeaderTitleTranslations();
552 
553  // ...and write new translations to object_translation
554  foreach ($data["Fobject"] as $key => $val) {
555  if ($key == $data["default_language"]) {
556  $default = 1;
557  } else {
558  $default = 0;
559  }
560 
561  $this->object->addHeaderTitleTranslation(ilUtil::stripSlashes($val["title"]), ilUtil::stripSlashes($val["desc"]), $val["lang"], $default);
562  }
563 
564  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
565 
566  $this->ctrl->redirect($this);
567  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
$ilErr
Definition: raiseError.php:17
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:

◆ saveHeaderTitlesObject()

ilObjSystemFolderGUI::saveHeaderTitlesObject ( bool  $delete = false)

Save header titles.

Definition at line 1367 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$ctrl, $DIC, $error, $ilErr, ilObjectGUI\$lng, $post, $rbacsystem, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), showHeaderTitleObject(), ilUtil\stripSlashes(), and ilLanguage\txt().

Referenced by deleteHeaderTitlesObject().

1368  {
1369  global $DIC;
1370 
1371  $ilCtrl = $this->ctrl;
1372  $lng = $this->lng;
1374  $ilErr = $this->error;
1375 
1376  if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
1377  $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
1378  $this->ctrl->redirectByClass(self::class, "showHeaderTitle");
1379  }
1380 
1381  // var_dump($_POST);
1382 
1383  $post = $DIC->http()->request()->getParsedBody();
1384  foreach ($post["title"] as $k => $v) {
1385  if ($delete && ($post["check"][$k] ?? false)) {
1386  unset($post["title"][$k]);
1387  unset($post["desc"][$k]);
1388  unset($post["lang"][$k]);
1389  if ($k == $post["default"]) {
1390  unset($post["default"]);
1391  }
1392  }
1393  }
1394 
1395 
1396 
1397  // default language set?
1398  if (!isset($post["default"]) && count($post["lang"]) > 0) {
1399  $this->tpl->setOnScreenMessage('failure', $lng->txt("msg_no_default_language"));
1400  $this->showHeaderTitleObject(true);
1401  return;
1402  }
1403 
1404  // all languages set?
1405  if (array_key_exists("", $post["lang"])) {
1406  $this->tpl->setOnScreenMessage('failure', $lng->txt("msg_no_language_selected"));
1407  $this->showHeaderTitleObject(true);
1408  return;
1409  }
1410 
1411  // no single language is selected more than once?
1412  if (count(array_unique($post["lang"])) < count($post["lang"])) {
1413  $this->tpl->setOnScreenMessage('failure', $lng->txt("msg_multi_language_selected"));
1414  $this->showHeaderTitleObject(true);
1415  return;
1416  }
1417 
1418  // save the stuff
1419  $this->object->removeHeaderTitleTranslations();
1420  foreach ($post["title"] as $k => $v) {
1421  $desc = $post["desc"][$k] ?? "";
1422  $this->object->addHeaderTitleTranslation(
1424  ilUtil::stripSlashes($desc),
1425  ilUtil::stripSlashes($post["lang"][$k]),
1426  ($post["default"] == $k)
1427  );
1428  }
1429 
1430  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1431  $ilCtrl->redirect($this, "showHeaderTitle");
1432  }
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...
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
$ilErr
Definition: raiseError.php:17
global $DIC
Definition: feed.php:28
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
ilLanguage $lng
showHeaderTitleObject( $a_get_post_values=false, bool $add_entry=false)
Show header title.
$post
Definition: ltitoken.php:49
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveJavaServerObject()

ilObjSystemFolderGUI::saveJavaServerObject ( )

Save java server form.

Definition at line 1726 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$ctrl, $error, $ilErr, $ilSetting, ilObjectGUI\$lng, $rbacsystem, ilObjectGUI\$settings, ilObjectGUI\$tpl, ilRbacSystem\checkAccess(), ILIAS\Repository\form(), initJavaServerForm(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\setContent(), setGeneralSettingsSubTabs(), ilUtil\stripSlashes(), and ilLanguage\txt().

1726  : void
1727  {
1728  $tpl = $this->tpl;
1729  $lng = $this->lng;
1730  $ilCtrl = $this->ctrl;
1733  $ilErr = $this->error;
1734 
1735  if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
1736  $ilErr->raiseError($this->lng->txt("permission_denied"), $ilErr->MESSAGE);
1737  }
1738 
1739  $this->initJavaServerForm();
1740  if ($this->form->checkInput()) {
1741  $ilSetting->set('rpc_pdf_font', ilUtil::stripSlashes($_POST['rpc_pdf_font']));
1742  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1743  $ilCtrl->redirect($this, "showJavaServer");
1744 
1745  // TODO check settings, ping server
1746  } else {
1747  $this->setGeneralSettingsSubTabs("java_server");
1748  $this->form->setValuesByPost();
1749  $tpl->setContent($this->form->getHtml());
1750  }
1751  }
initJavaServerForm()
Init java server form.
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...
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
$ilErr
Definition: raiseError.php:17
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
ilLanguage $lng
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd, string $submit_caption="")
global $ilSetting
Definition: privfeed.php:18
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
ilSetting $settings
+ Here is the call graph for this function:

◆ setGeneralSettingsSubTabs()

ilObjSystemFolderGUI::setGeneralSettingsSubTabs (   $a_activate)

Set sub tabs for general settings.

Definition at line 1153 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$ctrl, and $tabs.

Referenced by createJavaServerIniObject(), saveBasicSettingsObject(), saveContactInformationObject(), saveJavaServerObject(), showBasicSettingsObject(), showContactInformationObject(), and showHeaderTitleObject().

1153  : void
1154  {
1155  $ilTabs = $this->tabs;
1156  $ilCtrl = $this->ctrl;
1157 
1158  $ilTabs->addSubTabTarget("basic_settings", $ilCtrl->getLinkTarget($this, "showBasicSettings"));
1159  $ilTabs->addSubTabTarget("header_title", $ilCtrl->getLinkTarget($this, "showHeaderTitle"));
1160  $ilTabs->addSubTabTarget("contact_data", $ilCtrl->getLinkTarget($this, "showContactInformation"));
1161 
1162  $ilTabs->setSubTabActive($a_activate);
1163  $ilTabs->setTabActive("general_settings");
1164  }
+ Here is the caller graph for this function:

◆ setServerInfoSubTabs()

ilObjSystemFolderGUI::setServerInfoSubTabs (   $a_activate)

Set sub tabs for server info.

Definition at line 945 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$ctrl, $rbacsystem, $tabs, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), initServerInfoForm(), ILIAS\Repository\lng(), and ilGlobalTemplateInterface\setContent().

Referenced by showJavaServerObject(), and showServerInstallationStatusObject().

945  : void
946  {
947  $ilTabs = $this->tabs;
948  $ilCtrl = $this->ctrl;
950 
951  if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
952  $ilTabs->addSubTabTarget("installation_status", $ilCtrl->getLinkTarget($this, "showServerInstallationStatus"));
953 
954  $ilTabs->addSubTabTarget("server_data", $ilCtrl->getLinkTarget($this, "showServerInfo"));
955  }
956 
957 
958  if ($rbacsystem->checkAccess("write", $this->object->getRefId())) {
959  $ilTabs->addSubTabTarget("java_server", $ilCtrl->getLinkTarget($this, "showJavaServer"));
960  }
961 
962  $ilTabs->setSubTabActive($a_activate);
963  $ilTabs->setTabActive("server");
964  }
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSystemCheckSubTabs()

ilObjSystemFolderGUI::setSystemCheckSubTabs (   $a_activate)

Set sub tabs for general settings.

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

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

Referenced by checkObject(), and executeCommand().

148  : void
149  {
150  $ilTabs = $this->tabs;
151  $ilCtrl = $this->ctrl;
152 
153  $ilTabs->addSubTab(
154  "system_check_sub",
155  $this->lng->txt("system_check"),
156  $ilCtrl->getLinkTarget($this, "check")
157  );
158  $ilTabs->addSubTab(
159  "no_owner",
160  $this->lng->txt("system_check_no_owner"),
161  $ilCtrl->getLinkTargetByClass("ilObjectOwnershipManagementGUI")
162  );
163 
164  $ilTabs->setSubTabActive($a_activate);
165  $ilTabs->setTabActive("system_check");
166  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showBasicSettingsObject()

ilObjSystemFolderGUI::showBasicSettingsObject ( )

Show basic settings.

Definition at line 1175 of file class.ilObjSystemFolderGUI.php.

References $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$settings, ilObjectGUI\$tpl, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilPublicSectionSettings\getInstance(), ilRobotSettings\getInstance(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ilGlobalTemplateInterface\setContent(), setGeneralSettingsSubTabs(), and ilLanguage\txt().

Referenced by viewObject().

1175  : void
1176  {
1177  $tpl = $this->tpl;
1178 
1179  $this->initBasicSettingsForm();
1180  $this->setGeneralSettingsSubTabs("basic_settings");
1181 
1182  $tpl->setContent($this->form->getHTML());
1183  }
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd, string $submit_caption="")
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showContactInformationObject()

ilObjSystemFolderGUI::showContactInformationObject ( )

Show contact information.

Definition at line 1491 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$tpl, ILIAS\Repository\form(), initContactInformationForm(), ilGlobalTemplateInterface\setContent(), and setGeneralSettingsSubTabs().

1491  : void
1492  {
1493  $tpl = $this->tpl;
1494 
1495  $this->initContactInformationForm();
1496  $this->setGeneralSettingsSubTabs("contact_data");
1497  $tpl->setContent($this->form->getHTML());
1498  }
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd, string $submit_caption="")
initContactInformationForm()
Init contact information form.
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
+ Here is the call graph for this function:

◆ showDbBenchByFirstTableObject()

ilObjSystemFolderGUI::showDbBenchByFirstTableObject ( )

Show db benchmark results.

Definition at line 747 of file class.ilObjSystemFolderGUI.php.

References benchmarkSubTabs(), and showDbBenchResults().

747  : void
748  {
749  $this->benchmarkSubTabs("by_first_table");
750  $this->showDbBenchResults("by_first_table");
751  }
benchmarkSubTabs($a_current)
Benchmark sub tabs.
showDbBenchResults($a_mode)
Show Db Benchmark Results.
+ Here is the call graph for this function:

◆ showDbBenchChronologicalObject()

ilObjSystemFolderGUI::showDbBenchChronologicalObject ( )

Show db benchmark results.

Definition at line 720 of file class.ilObjSystemFolderGUI.php.

References benchmarkSubTabs(), and showDbBenchResults().

720  : void
721  {
722  $this->benchmarkSubTabs("chronological");
723  $this->showDbBenchResults("chronological");
724  }
benchmarkSubTabs($a_current)
Benchmark sub tabs.
showDbBenchResults($a_mode)
Show Db Benchmark Results.
+ Here is the call graph for this function:

◆ showDbBenchResults()

ilObjSystemFolderGUI::showDbBenchResults (   $a_mode)

Show Db Benchmark Results.

Parameters
stringmode

Definition at line 758 of file class.ilObjSystemFolderGUI.php.

References $bench, ilObjectGUI\$tpl, ilBenchmark\getDbBenchRecords(), and ilGlobalTemplateInterface\setContent().

Referenced by showDbBenchByFirstTableObject(), showDbBenchChronologicalObject(), showDbBenchSlowestFirstObject(), and showDbBenchSortedBySqlObject().

758  : void
759  {
760  $tpl = $this->tpl;
761 
762  $ilBench = $this->bench;
763  $rec = $ilBench->getDbBenchRecords();
764 
765  $table = new ilBenchmarkTableGUI($this, "benchmark", $rec, $a_mode);
766  $tpl->setContent($table->getHTML());
767  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showDbBenchSlowestFirstObject()

ilObjSystemFolderGUI::showDbBenchSlowestFirstObject ( )

Show db benchmark results.

Definition at line 729 of file class.ilObjSystemFolderGUI.php.

References benchmarkSubTabs(), and showDbBenchResults().

729  : void
730  {
731  $this->benchmarkSubTabs("slowest_first");
732  $this->showDbBenchResults("slowest_first");
733  }
benchmarkSubTabs($a_current)
Benchmark sub tabs.
showDbBenchResults($a_mode)
Show Db Benchmark Results.
+ Here is the call graph for this function:

◆ showDbBenchSortedBySqlObject()

ilObjSystemFolderGUI::showDbBenchSortedBySqlObject ( )

Show db benchmark results.

Definition at line 738 of file class.ilObjSystemFolderGUI.php.

References benchmarkSubTabs(), and showDbBenchResults().

738  : void
739  {
740  $this->benchmarkSubTabs("sorted_by_sql");
741  $this->showDbBenchResults("sorted_by_sql");
742  }
benchmarkSubTabs($a_current)
Benchmark sub tabs.
showDbBenchResults($a_mode)
Show Db Benchmark Results.
+ Here is the call graph for this function:

◆ showHeaderTitleObject()

ilObjSystemFolderGUI::showHeaderTitleObject (   $a_get_post_values = false,
bool  $add_entry = false 
)

Show header title.

Definition at line 1322 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$data, ilObjectGUI\$tpl, ilGlobalTemplateInterface\setContent(), and setGeneralSettingsSubTabs().

Referenced by addHeaderTitleObject(), and saveHeaderTitlesObject().

1325  : void {
1326  $tpl = $this->tpl;
1327 
1328  $this->setGeneralSettingsSubTabs("header_title");
1329  $table = new ilObjectTranslationTableGUI($this, "showHeaderTitle", false);
1330  if ($a_get_post_values) {
1331  $vals = array();
1332  foreach (($_POST["title"] ?? []) as $k => $v) {
1333  $def = $_POST["default"] ?? "";
1334  $vals[] = array("title" => $v,
1335  "desc" => ($_POST["desc"][$k] ?? ""),
1336  "lang" => ($_POST["lang"][$k] ?? ""),
1337  "default" => ($def == $k));
1338  }
1339  if ($add_entry) {
1340  $vals[] = array("title" => "",
1341  "desc" => "",
1342  "lang" => "",
1343  "default" => false);
1344  }
1345  $table->setData($vals);
1346  } else {
1347  $data = $this->object->getHeaderTitleTranslations();
1348  if (isset($data["Fobject"]) && is_array($data["Fobject"])) {
1349  foreach ($data["Fobject"] as $k => $v) {
1350  if ($k == $data["default_language"]) {
1351  $data["Fobject"][$k]["default"] = true;
1352  } else {
1353  $data["Fobject"][$k]["default"] = false;
1354  }
1355  }
1356  } else {
1357  $data["Fobject"] = array();
1358  }
1359  $table->setData($data["Fobject"]);
1360  }
1361  $tpl->setContent($table->getHTML());
1362  }
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showJavaServerObject()

ilObjSystemFolderGUI::showJavaServerObject ( )

Show Java Server Settings.

Definition at line 1669 of file class.ilObjSystemFolderGUI.php.

References $GLOBALS, ilObjectGUI\$tpl, ilGlobalTemplateInterface\addBlockFile(), ILIAS\Repository\form(), initJavaServerForm(), setServerInfoSubTabs(), and ilGlobalTemplateInterface\setVariable().

1669  : void
1670  {
1671  $tpl = $this->tpl;
1672 
1673  $tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.java_settings.html', 'Modules/SystemFolder');
1674 
1675  $GLOBALS['lng']->loadLanguageModule('search');
1676 
1677  $this->initJavaServerForm();
1678  $this->setServerInfoSubTabs("java_server");
1679  $tpl->setVariable('SETTINGS_TABLE', $this->form->getHTML());
1680  }
addBlockFile(string $var, string $block, string $template_name, string $in_module=null)
overwrites ITX::addBlockFile
initJavaServerForm()
Init java server form.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
ilGlobalTemplateInterface $tpl
$GLOBALS["DIC"]
Definition: wac.php:31
setServerInfoSubTabs($a_activate)
Set sub tabs for server info.
form( $class_path, string $cmd, string $submit_caption="")
+ Here is the call graph for this function:

◆ showPHPInfoObject()

ilObjSystemFolderGUI::showPHPInfoObject ( )

Show PHP Information.

Returns
never

Definition at line 926 of file class.ilObjSystemFolderGUI.php.

References $rbacsystem, ilRbacSystem\checkAccess(), and exit.

926  : void
927  {
929  if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
930  phpinfo();
931  exit;
932  }
933  }
exit
Definition: login.php:29
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
+ Here is the call graph for this function:

◆ showServerInstallationStatusObject()

ilObjSystemFolderGUI::showServerInstallationStatusObject ( )
protected

Definition at line 1103 of file class.ilObjSystemFolderGUI.php.

References $rbacsystem, ilRbacSystem\checkAccess(), renderServerStatus(), and setServerInfoSubTabs().

1103  : void
1104  {
1106  if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
1107  $this->setServerInfoSubTabs("installation_status");
1108  $this->renderServerStatus();
1109  }
1110  }
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
setServerInfoSubTabs($a_activate)
Set sub tabs for server info.
+ Here is the call graph for this function:

◆ showVcsInformationObject()

ilObjSystemFolderGUI::showVcsInformationObject ( )
protected

Definition at line 1785 of file class.ilObjSystemFolderGUI.php.

References ilObjectGUI\$html, $rbacsystem, ilRbacSystem\checkAccess(), and ILIAS\Repository\lng().

1785  : void
1786  {
1787  $vcInfo = [];
1789  if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
1790  foreach ([new ilGitInformation()] as $vc) {
1791  $html = $vc->getInformationAsHtml();
1792  if ($html) {
1793  $vcInfo[] = $html;
1794  }
1795  }
1796 
1797  if ($vcInfo !== []) {
1798  $this->tpl->setOnScreenMessage('info', implode("<br />", $vcInfo));
1799  } else {
1800  $this->tpl->setOnScreenMessage('info', $this->lng->txt('vc_information_not_determined'));
1801  }
1802 
1803  $this->showServerInfoObject();
1804  }
1805  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
+ Here is the call graph for this function:

◆ startValidator()

ilObjSystemFolderGUI::startValidator (   $a_mode,
  $a_log 
)

Definition at line 601 of file class.ilObjSystemFolderGUI.php.

References $error, $ilErr, $rbacsystem, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by checkObject().

601  : void
602  {
605 
606  if (!$rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
607  $ilErr->raiseError($this->lng->txt("permission_denied"), $ilErr->MESSAGE);
608  }
609 
610  $logging = ($a_log) ? true : false;
611  $validator = new ilValidator($logging);
612  $validator->setMode("all", false);
613 
614  $modes = array();
615  foreach ($a_mode as $mode => $value) {
616  $validator->setMode($mode, (bool) $value);
617  $modes[] = $mode . '=' . $value;
618  }
619 
620  $scan_log = $validator->validate();
621 
622  $mode = $this->lng->txt("scan_modes") . ": " . implode(', ', $modes);
623 
624  // output
625  $this->tpl->addBlockFile(
626  "ADM_CONTENT",
627  "adm_content",
628  "tpl.adm_scan.html",
629  "Modules/SystemFolder"
630  );
631 
632  $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
633  $this->tpl->setVariable("TXT_TITLE", $this->lng->txt("scanning_system"));
634  $this->tpl->setVariable("COLSPAN", 3);
635  $this->tpl->setVariable("TXT_SCAN_LOG", $scan_log);
636  $this->tpl->setVariable("TXT_MODE", $mode);
637 
638  if ($logging === true) {
639  $this->tpl->setVariable("TXT_VIEW_LOG", $this->lng->txt("view_log"));
640  }
641 
642  $this->tpl->setVariable("TXT_DONE", $this->lng->txt("done"));
643 
644  $validator->writeScanLogLine($mode);
645  }
$ilErr
Definition: raiseError.php:17
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ switchBenchModuleObject()

ilObjSystemFolderGUI::switchBenchModuleObject ( )

save benchmark settings

Definition at line 849 of file class.ilObjSystemFolderGUI.php.

References ILIAS\Repository\ctrl().

849  : void
850  {
851  $this->ctrl->setParameter($this, 'cur_mod', $_POST['module']);
852  $this->ctrl->redirect($this, "benchmark");
853  }
+ Here is the call graph for this function:

◆ viewObject()

ilObjSystemFolderGUI::viewObject ( )

show admin subpanels and basic settings form

public

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

References ilObjectGUI\$access, and showBasicSettingsObject().

129  : void
130  {
131  $ilAccess = $this->access;
132 
133  if ($ilAccess->checkAccess("read", "", $this->object->getRefId())) {
134  $this->showBasicSettingsObject();
135  return;
136  }
137  $this->showServerInfoObject();
138  }
ilAccessHandler $access
showBasicSettingsObject()
Show basic settings.
+ Here is the call graph for this function:

◆ viewScanLog()

ilObjSystemFolderGUI::viewScanLog ( )

Definition at line 647 of file class.ilObjSystemFolderGUI.php.

References ILIAS\Repository\lng().

Referenced by viewScanLogObject().

647  : void
648  {
649  $validator = new ilValidator();
650  $scan_log = $validator->readScanLog();
651 
652  if (is_array($scan_log)) {
653  $scan_log = '<pre>' . implode("", $scan_log) . '</pre>';
654  $this->tpl->setVariable("ADM_CONTENT", $scan_log);
655  } else {
656  $scan_log = "no scanlog found.";
657  }
658 
659  // output
660  $this->tpl->addBlockFile(
661  "ADM_CONTENT",
662  "adm_content",
663  "tpl.adm_scan.html",
664  "Modules/SystemFolder"
665  );
666  $this->tpl->setVariable("TXT_TITLE", $this->lng->txt("scan_details"));
667  $this->tpl->setVariable("COLSPAN", 3);
668  $this->tpl->setVariable("TXT_SCAN_LOG", $scan_log);
669  $this->tpl->setVariable("TXT_DONE", $this->lng->txt("done"));
670  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ viewScanLogObject()

ilObjSystemFolderGUI::viewScanLogObject ( )

Definition at line 140 of file class.ilObjSystemFolderGUI.php.

References viewScanLog().

140  : void
141  {
142  $this->viewScanLog();
143  }
+ Here is the call graph for this function:

◆ writeCheckParams()

ilObjSystemFolderGUI::writeCheckParams ( )
private

Definition at line 347 of file class.ilObjSystemFolderGUI.php.

References ILIAS\LTI\ToolProvider\$key, ilObjectGUI\$user, ILIAS\Repository\int(), and ilObjUser\writePref().

Referenced by checkObject(), and saveCheckParamsObject().

347  : void
348  {
349  $validator = new ilValidator();
350  $modes = $validator->getPossibleModes();
351 
352  $prefs = array();
353  foreach ($modes as $mode) {
354  if (isset($_POST['mode'][$mode])) {
355  $value = (int) $_POST['mode'][$mode];
356  } else {
357  $value = 0;
358  }
359  $prefs[ 'systemcheck_mode_' . $mode ] = $value;
360  }
361 
362  if (isset($_POST['log_scan'])) {
363  $value = (int) $_POST['log_scan'];
364  } else {
365  $value = 0;
366  }
367  $prefs['systemcheck_log_scan'] = $value;
368 
369  $ilUser = $this->user;
370  foreach ($prefs as $key => $val) {
371  $ilUser->writePref($key, $val);
372  }
373  }
writePref(string $a_keyword, string $a_value)
string $key
Consumer key/client ID value.
Definition: System.php:193
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $bench

ilBenchmark ilObjSystemFolderGUI::$bench
protected

◆ $client_ini

ilIniFile ilObjSystemFolderGUI::$client_ini
protected

Definition at line 45 of file class.ilObjSystemFolderGUI.php.

Referenced by initServerInfoForm().

◆ $content_style_domain

ILIAS Style Content Object ObjectFacade ilObjSystemFolderGUI::$content_style_domain
protected

Definition at line 37 of file class.ilObjSystemFolderGUI.php.

◆ $db

ilDBInterface ilObjSystemFolderGUI::$db
protected

Definition at line 42 of file class.ilObjSystemFolderGUI.php.

Referenced by checkObject().

◆ $error

◆ $form

ilPropertyFormGUI ilObjSystemFolderGUI::$form
protected

Definition at line 36 of file class.ilObjSystemFolderGUI.php.

◆ $gui

ILIAS Repository InternalGUIService ilObjSystemFolderGUI::$gui
protected

Definition at line 35 of file class.ilObjSystemFolderGUI.php.

◆ $help

ilHelpGUI ilObjSystemFolderGUI::$help
protected

Definition at line 44 of file class.ilObjSystemFolderGUI.php.

Referenced by getAdminTabs().

◆ $obj_definition

ilObjectDefinition ilObjSystemFolderGUI::$obj_definition
protected

Definition at line 40 of file class.ilObjSystemFolderGUI.php.

Referenced by checkObject().

◆ $rbacsystem

◆ $refinery

ILIAS Refinery Factory ilObjSystemFolderGUI::$refinery
protected

Definition at line 49 of file class.ilObjSystemFolderGUI.php.

◆ $style_definition

ilStyleDefinition ilObjSystemFolderGUI::$style_definition
protected

Definition at line 43 of file class.ilObjSystemFolderGUI.php.

Referenced by changeHeaderTitleObject().

◆ $tabs

ilTabsGUI ilObjSystemFolderGUI::$tabs
protected

◆ $type

string ilObjSystemFolderGUI::$type

Definition at line 47 of file class.ilObjSystemFolderGUI.php.

◆ $wrapper

ILIAS HTTP Wrapper WrapperFactory ilObjSystemFolderGUI::$wrapper
protected

Definition at line 48 of file class.ilObjSystemFolderGUI.php.


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