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

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 ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
const SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]
 

Protected Member Functions

 showServerInstallationStatusObject ()
 
 renderServerStatus ()
 
 getServerStatusInfo ()
 
 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...
 
 getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form)
 
 getTitleForCreationFormPage ()
 
 getCreationFormTitle ()
 
 initCreateForm (string $new_type)
 
 didacticTemplatesToForm ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 retrieveAdditionalDidacticTemplateOptions ()
 
 addAdoptContentLinkToToolbar ()
 
 addImportButtonToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 parseDidacticTemplateVar (string $var, string $type)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 routeImportCmdObject ()
 
 importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir)
 
 deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

Pimple Container $dic
 
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
 
GlobalHttpState $http
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
CustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Constructor @access public.

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

57 {
58 global $DIC;
59
60 $this->dic = $DIC;
61 $this->tabs = $DIC->tabs();
62 $this->access = $DIC->access();
63 $this->ctrl = $DIC->ctrl();
64 $this->rbacsystem = $DIC->rbac()->system();
65 $this->user = $DIC->user();
66 $this->obj_definition = $DIC["objDefinition"];
67 $this->settings = $DIC->settings();
68 $this->error = $DIC["ilErr"];
69 $this->db = $DIC->database();
70 $this->style_definition = $DIC["styleDefinition"];
71 $this->lng = $DIC->language();
72 $this->tpl = $DIC["tpl"];
73 $this->help = $DIC["ilHelp"];
74 $this->toolbar = $DIC->toolbar();
75 $this->client_ini = $DIC["ilClientIniFile"];
76 $this->type = "adm";
77 $this->bench = $DIC["ilBench"];
78 $this->wrapper = $DIC->http()->wrapper();
79 $this->refinery = $DIC->refinery();
80 parent::__construct($a_data, $a_id, $a_call_by_reference, false);
81
82 $this->lng->loadLanguageModule("administration");
83 $this->lng->loadLanguageModule("adm");
84 $this->content_style_domain = $DIC->contentStyle()
85 ->domain()
86 ->styleForRefId($this->object->getRefId());
87 $this->gui = $DIC->repository()->internal()->gui();
88 }
error(string $a_errmsg)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), error(), 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().

+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjSystemFolderGUI::_goto ( )
static

goto target group

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

1228 : void
1229 {
1230 global $DIC;
1231 $main_tpl = $DIC->ui()->mainTemplate();
1232
1233 $ilAccess = $DIC->access();
1234 $ilErr = $DIC["ilErr"];
1235 $lng = $DIC->language();
1236
1237 $a_target = SYSTEM_FOLDER_ID;
1238
1239 if ($ilAccess->checkAccess("read", "", $a_target)) {
1240 ilUtil::redirect("ilias.php?baseClass=ilAdministrationGUI");
1241 exit;
1242 } else {
1243 if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
1244 $main_tpl->setOnScreenMessage('failure', sprintf(
1245 $lng->txt("msg_no_perm_read_item"),
1247 ), true);
1249 }
1250 }
1251 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
1252 }
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 _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
ilLanguage $lng
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
static redirect(string $a_script)
const SYSTEM_FOLDER_ID
Definition: constants.php:35
const ROOT_FOLDER_ID
Definition: constants.php:32
exit
$ilErr
Definition: raiseError.php:33

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

+ Here is the call graph for this function:

◆ addHeaderTitleObject()

ilObjSystemFolderGUI::addHeaderTitleObject ( )

Add a header title.

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

909 : void
910 {
911 $k = 1;
912 $this->showHeaderTitleObject(true, true);
913 }
showHeaderTitleObject( $a_get_post_values=false, bool $add_entry=false)
Show header title.

◆ benchmarkObject()

ilObjSystemFolderGUI::benchmarkObject ( )

Benchmark settings.

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

173 : void
174 {
175 if (!$this->rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
176 $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
177 }
178
179 $write_access = $this->rbacsystem->checkAccess("write", $this->object->getRefId());
180
181 $this->benchmarkSubTabs("settings");
182
183 $this->form = new ilPropertyFormGUI();
184
185 // Activate DB Benchmark
186 $cb = new ilCheckboxInputGUI($this->lng->txt("adm_activate_db_benchmark"), ilBenchmark::ENABLE_DB_BENCH);
187 $cb->setChecked((bool) $this->settings->get(ilBenchmark::ENABLE_DB_BENCH));
188 $cb->setInfo($this->lng->txt("adm_activate_db_benchmark_desc"));
189 $cb->setDisabled(!$write_access);
190 $this->form->addItem($cb);
191
192 // DB Benchmark User
193 $ti = new ilTextInputGUI($this->lng->txt("adm_db_benchmark_user"), ilBenchmark::DB_BENCH_USER);
194 $user_id = ($this->settings->get(ilBenchmark::DB_BENCH_USER)) ?? null;
195 if ($user_id !== null && ilObjUser::_lookupLogin((int) $user_id) !== '') {
196 $ti->setValue(ilObjUser::_lookupLogin($user_id));
197 } else {
198 $ti->setValue('');
199 }
200 $ti->setInfo($this->lng->txt("adm_db_benchmark_user_desc"));
201 $ti->setDisabled(!$write_access);
202 $this->form->addItem($ti);
203
204 if ($write_access) {
205 $this->form->addCommandButton("saveBenchSettings", $this->lng->txt("save"));
206 }
207
208 $this->form->setTitle($this->lng->txt("adm_db_benchmark"));
209 $this->form->setFormAction($this->ctrl->getFormAction($this));
210
211 $this->tpl->setContent($this->form->getHTML());
212 }
This class represents a checkbox property in a property form.
benchmarkSubTabs($a_current)
Benchmark sub tabs.
static _lookupLogin(int $a_user_id)
This class represents a property form user interface.
This class represents a text property in a property form.
form( $class_path, string $cmd, string $submit_caption="")

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

+ Here is the call graph for this function:

◆ benchmarkSubTabs()

ilObjSystemFolderGUI::benchmarkSubTabs (   $a_current)

Benchmark sub tabs.

Parameters

return

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

272 : void
273 {
274 $ilTabs = $this->tabs;
276 $ilCtrl = $this->ctrl;
277
278 $ilBench = $this->bench;
279 $ilTabs->activateTab("benchmarks"); // #18083
280
281 $ilTabs->addSubtab(
282 "settings",
283 $lng->txt("settings"),
284 $ilCtrl->getLinkTarget($this, "benchmark")
285 );
286
287 $rec = $ilBench->getDbBenchRecords();
288 if ($rec !== []) {
289 $ilTabs->addSubtab(
290 "chronological",
291 $lng->txt("adm_db_bench_chronological"),
292 $ilCtrl->getLinkTarget($this, "showDbBenchChronological")
293 );
294 $ilTabs->addSubtab(
295 "slowest_first",
296 $lng->txt("adm_db_bench_slowest_first"),
297 $ilCtrl->getLinkTarget($this, "showDbBenchSlowestFirst")
298 );
299 $ilTabs->addSubtab(
300 "sorted_by_sql",
301 $lng->txt("adm_db_bench_sorted_by_sql"),
302 $ilCtrl->getLinkTarget($this, "showDbBenchSortedBySql")
303 );
304 $ilTabs->addSubtab(
305 "by_first_table",
306 $lng->txt("adm_db_bench_by_first_table"),
307 $ilCtrl->getLinkTarget($this, "showDbBenchByFirstTable")
308 );
309 }
310
311 $ilTabs->activateSubTab($a_current);
312 }

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

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

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

◆ cancelObject()

ilObjSystemFolderGUI::cancelObject ( )

cancel action and go back to previous page

Reimplemented from ilObjectGUI.

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

164 : void
165 {
166 $this->ctrl->redirect($this, "view");
167 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ clearBenchObject()

ilObjSystemFolderGUI::clearBenchObject ( )

delete all benchmark records

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

356 : void
357 {
358 $ilBench = $this->bench;
359 $ilBench->clearData();
361 }
clearData()
delete all measurement data
saveBenchSettingsObject()
Save benchmark settings.

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

+ Here is the call graph for this function:

◆ createJavaServerIniObject()

ilObjSystemFolderGUI::createJavaServerIniObject ( )

Create a server ini file.

Returns

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

1158 : void
1159 {
1160 $this->setGeneralSettingsSubTabs('java_server');
1161 $this->tpl->setContent($this->form->getHTML());
1162 }
setGeneralSettingsSubTabs($a_activate)
Set sub tabs for general settings.

References ILIAS\Repository\form().

+ Here is the call graph for this function:

◆ deleteHeaderTitlesObject()

ilObjSystemFolderGUI::deleteHeaderTitlesObject ( )

Remove header titles.

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

918 : void
919 {
920 $ilCtrl = $this->ctrl;
922 $this->saveHeaderTitlesObject(true);
923 }
saveHeaderTitlesObject(bool $delete=false)
Save header titles.

References $lng.

◆ executeCommand()

ilObjSystemFolderGUI::executeCommand ( )

Reimplemented from ilObjectGUI.

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

90 : void
91 {
92 $ilTabs = $this->tabs;
93
94 $next_class = $this->ctrl->getNextClass($this);
95 $this->prepareOutput();
96
97 switch ($next_class) {
98 case 'ilpermissiongui':
99 $perm_gui = new ilPermissionGUI($this);
100 $this->ctrl->forwardCommand($perm_gui);
101 break;
102
103 case "ilobjectownershipmanagementgui":
104 $this->setSystemCheckSubTabs("no_owner");
105 $gui = $this->gui->ownership()->ownershipManagementGUI(0);
106 $this->ctrl->forwardCommand($gui);
107 break;
108
109 case "ilcronmanagergui":
110 $ilTabs->activateTab("cron_jobs");
111 $gui = new ilCronManagerGUI();
112 $this->ctrl->forwardCommand($gui);
113 break;
114
115 default:
116 $cmd = $this->ctrl->getCmd("view");
117
118 $cmd .= "Object";
119 $this->$cmd();
120
121 break;
122 }
123 }
@ilCtrl_Calls ilCronManagerGUI: ilPropertyFormGUI @ilCtrl_isCalledBy ilCronManagerGUI: ilAdministrati...
setSystemCheckSubTabs($a_activate)
Set sub tabs for general settings.
ILIAS Repository InternalGUIService $gui
prepareOutput(bool $show_sub_objects=true)

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

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjSystemFolderGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

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

364 : void
365 {
367 $ilHelp = $this->help;
368
369 // $ilHelp->setScreenIdComponent($this->object->getType());
370
371 $this->ctrl->setParameter($this, "ref_id", $this->object->getRefId());
372
373 // general settings
374 if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
375 $this->tabs_gui->addTarget(
376 "general_settings",
377 $this->ctrl->getLinkTarget($this, "showBasicSettings"),
378 ["showBasicSettings", "saveBasicSettings"],
379 get_class($this)
380 );
381 }
382
383 // server info
384 if ($rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
385 $this->tabs_gui->addTarget(
386 "server",
387 $this->ctrl->getLinkTarget($this, "showServerInfo"),
388 ["showServerInfo", "view"],
389 get_class($this)
390 );
391 }
392
393 if ($rbacsystem->checkAccess('visible,read', $this->object->getRefId())) {
394 $this->tabs_gui->addTarget(
395 'cron_jobs',
396 $this->ctrl->getLinkTargetByClass('ilCronManagerGUI', ''),
397 '',
398 get_class($this)
399 );
400
401 $this->tabs_gui->addTarget(
402 'benchmarks',
403 $this->ctrl->getLinkTarget($this, 'benchmark'),
404 'benchmark',
405 get_class($this)
406 );
407 }
408
409 if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
410 $this->tabs_gui->addTarget(
411 "perm_settings",
412 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
413 array("perm","info","owner"),
414 'ilpermissiongui'
415 );
416 }
417 }
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 ...

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

+ Here is the call graph for this function:

◆ getServerStatusInfo()

ilObjSystemFolderGUI::getServerStatusInfo ( )
protected

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

614 {
615 $agent_finder = $this->dic['setup.agentfinder'];
616 $st = new StatusCommand($agent_finder);
617 return $st->getMetrics($agent_finder->getAgents());
618 }
Command to output status information about the installation.
A metric is something we can measure about the system.
Definition: Metric.php:34

Referenced by renderServerStatus().

+ Here is the caller graph for this function:

◆ initContactInformationForm()

ilObjSystemFolderGUI::initContactInformationForm ( )

Init contact information form.

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

975 : void
976 {
979
980 $this->form = new ilPropertyFormGUI();
981
982 // first name
983 $ti = new ilTextInputGUI($this->lng->txt("firstname"), "admin_firstname");
984 $ti->setMaxLength(64);
985 $ti->setSize(40);
986 $ti->setRequired(true);
987 $ti->setValue($ilSetting->get("admin_firstname"));
988 $this->form->addItem($ti);
989
990 // last name
991 $ti = new ilTextInputGUI($this->lng->txt("lastname"), "admin_lastname");
992 $ti->setMaxLength(64);
993 $ti->setSize(40);
994 $ti->setRequired(true);
995 $ti->setValue($ilSetting->get("admin_lastname"));
996 $this->form->addItem($ti);
997
998 // title
999 $ti = new ilTextInputGUI($this->lng->txt("title"), "admin_title");
1000 $ti->setMaxLength(64);
1001 $ti->setSize(40);
1002 $ti->setValue($ilSetting->get("admin_title"));
1003 $this->form->addItem($ti);
1004
1005 // position
1006 $ti = new ilTextInputGUI($this->lng->txt("position"), "admin_position");
1007 $ti->setMaxLength(64);
1008 $ti->setSize(40);
1009 $ti->setValue($ilSetting->get("admin_position"));
1010 $this->form->addItem($ti);
1011
1012 // institution
1013 $ti = new ilTextInputGUI($this->lng->txt("institution"), "admin_institution");
1014 $ti->setMaxLength(200);
1015 $ti->setSize(40);
1016 $ti->setValue($ilSetting->get("admin_institution"));
1017 $this->form->addItem($ti);
1018
1019 // street
1020 $ti = new ilTextInputGUI($this->lng->txt("street"), "admin_street");
1021 $ti->setMaxLength(64);
1022 $ti->setSize(40);
1023 //$ti->setRequired(true);
1024 $ti->setValue($ilSetting->get("admin_street"));
1025 $this->form->addItem($ti);
1026
1027 // zip code
1028 $ti = new ilTextInputGUI($this->lng->txt("zipcode"), "admin_zipcode");
1029 $ti->setMaxLength(10);
1030 $ti->setSize(5);
1031 //$ti->setRequired(true);
1032 $ti->setValue($ilSetting->get("admin_zipcode"));
1033 $this->form->addItem($ti);
1034
1035 // city
1036 $ti = new ilTextInputGUI($this->lng->txt("city"), "admin_city");
1037 $ti->setMaxLength(64);
1038 $ti->setSize(40);
1039 //$ti->setRequired(true);
1040 $ti->setValue($ilSetting->get("admin_city"));
1041 $this->form->addItem($ti);
1042
1043 // country
1044 $ti = new ilTextInputGUI($this->lng->txt("country"), "admin_country");
1045 $ti->setMaxLength(64);
1046 $ti->setSize(40);
1047 //$ti->setRequired(true);
1048 $ti->setValue($ilSetting->get("admin_country"));
1049 $this->form->addItem($ti);
1050
1051 // phone
1052 $ti = new ilTextInputGUI($this->lng->txt("phone"), "admin_phone");
1053 $ti->setMaxLength(64);
1054 $ti->setSize(40);
1055 //$ti->setRequired(true);
1056 $ti->setValue($ilSetting->get("admin_phone"));
1057 $this->form->addItem($ti);
1058
1059 // email
1060 $ti = new ilEMailInputGUI($this->lng->txt("email"), "admin_email");
1061 $ti->setMaxLength(64);
1062 $ti->setSize(40);
1063 $ti->setRequired(true);
1064 $ti->allowRFC822(true);
1065 $ti->setValue($ilSetting->get("admin_email"));
1066 $this->form->addItem($ti);
1067
1068 // System support contacts
1069 $ti = new ilTextInputGUI($this->lng->txt("adm_support_contacts"), "adm_support_contacts");
1070 $ti->setMaxLength(500);
1071 $ti->setValue(ilSystemSupportContacts::getList());
1072 //$ti->setSize();
1073 $ti->setInfo($this->lng->txt("adm_support_contacts_info"));
1074 $this->form->addItem($ti);
1075
1076 // Accessibility support contacts
1077 $ti = new ilTextInputGUI($this->lng->txt("adm_accessibility_contacts"), "accessibility_support_contacts");
1078 $ti->setMaxLength(500);
1080 //$ti->setSize();
1081 $ti->setInfo($this->lng->txt("adm_accessibility_contacts_info"));
1082 $this->form->addItem($ti);
1083
1084 $this->form->addCommandButton("saveContactInformation", $lng->txt("save"));
1085
1086 $this->form->setTitle($lng->txt("contact_data"));
1087 $this->form->setFormAction($this->ctrl->getFormAction($this));
1088 }
This class represents a email property in a property form.
ilSetting $settings
global $ilSetting
Definition: privfeed.php:31

References $ilSetting, $lng, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilAccessibilitySupportContacts\getList(), ilSystemSupportContacts\getList(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ initJavaServerForm()

ilObjSystemFolderGUI::initJavaServerForm ( )

Init java server form.

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

1167 : void
1168 {
1169 $lng = $this->lng;
1171
1172 $this->form = new ilPropertyFormGUI();
1173 $this->form->setFormAction($this->ctrl->getFormAction($this, 'saveJavaServer'));
1174
1175 // pdf fonts
1176 $pdf = new ilFormSectionHeaderGUI();
1177 $pdf->setTitle($this->lng->txt('rpc_pdf_generation'));
1178 $this->form->addItem($pdf);
1179
1180 $pdf_font = new ilTextInputGUI($this->lng->txt('rpc_pdf_font'), 'rpc_pdf_font');
1181 $pdf_font->setInfo($this->lng->txt('rpc_pdf_font_info'));
1182 $pdf_font->setSize(64);
1183 $pdf_font->setMaxLength(1024);
1184 $pdf_font->setRequired(true);
1185 $pdf_font->setValue(
1186 $ilSetting->get('rpc_pdf_font', 'Helvetica, unifont')
1187 );
1188 $this->form->addItem($pdf_font);
1189
1190 // save and cancel commands
1191 $this->form->addCommandButton("saveJavaServer", $lng->txt("save"));
1192 }
This class represents a section header in a property form.

References $ilSetting, $lng, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ initServerInfoForm()

ilObjSystemFolderGUI::initServerInfoForm ( )

Init server info form.

Parameters
int$a_modeEdit Mode

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

503 : void
504 {
506 $ilClientIniFile = $this->client_ini;
508
509 $this->form = new ilPropertyFormGUI();
510
511 // installation name
512 $ne = new ilNonEditableValueGUI($lng->txt("inst_name"), "");
513 $ne->setValue($ilClientIniFile->readVariable("client", "name"));
514 $ne->setInfo($ilClientIniFile->readVariable("client", "description"));
515 $this->form->addItem($ne);
516
517 // client id
518 $ne = new ilNonEditableValueGUI($lng->txt("client_id"), "");
519 $ne->setValue(CLIENT_ID);
520 $this->form->addItem($ne);
521
522 // installation id
523 $ne = new ilNonEditableValueGUI($lng->txt("inst_id"), "");
524 $ne->setValue($ilSetting->get("inst_id"));
525 $this->form->addItem($ne);
526
527 // database version
528 $ne = new ilNonEditableValueGUI($lng->txt("db_version"), "");
529 $ne->setValue($ilSetting->get("db_version"));
530
531 $this->form->addItem($ne);
532
533 // ilias version
534 $ne = new ilNonEditableValueGUI($lng->txt("ilias_version"), "");
535 $ne->setValue(ILIAS_VERSION);
536 $this->form->addItem($ne);
537
538 // host
539 $ne = new ilNonEditableValueGUI($lng->txt("host"), "");
540 $ne->setValue($_SERVER["SERVER_NAME"]);
541 $this->form->addItem($ne);
542
543 // ip & port
544 $ne = new ilNonEditableValueGUI($lng->txt("ip_address") . " & " . $this->lng->txt("port"), "");
545 $ne->setValue($_SERVER["SERVER_ADDR"] . ":" . $_SERVER["SERVER_PORT"]);
546 $this->form->addItem($ne);
547
548 // server
549 $ne = new ilNonEditableValueGUI($lng->txt("server_software"), "");
550 $ne->setValue($_SERVER["SERVER_SOFTWARE"]);
551 $this->form->addItem($ne);
552
553 // http path
554 $ne = new ilNonEditableValueGUI($lng->txt("http_path"), "");
555 $ne->setValue(ILIAS_HTTP_PATH);
556 $this->form->addItem($ne);
557
558 // absolute path
559 $ne = new ilNonEditableValueGUI($lng->txt("absolute_path"), "");
560 $ne->setValue(ILIAS_ABSOLUTE_PATH);
561 $this->form->addItem($ne);
562
563 $not_set = $lng->txt("path_not_set");
564
565 // convert
566 $ne = new ilNonEditableValueGUI($lng->txt("path_to_convert"), "");
567 $ne->setValue(PATH_TO_CONVERT ?: $not_set);
568 $this->form->addItem($ne);
569
570 // zip
571 $ne = new ilNonEditableValueGUI($lng->txt("path_to_zip"), "");
572 $ne->setValue(PATH_TO_ZIP ?: $not_set);
573 $this->form->addItem($ne);
574
575 // unzip
576 $ne = new ilNonEditableValueGUI($lng->txt("path_to_unzip"), "");
577 $ne->setValue(PATH_TO_UNZIP ?: $not_set);
578 $this->form->addItem($ne);
579
580 // java
581 $ne = new ilNonEditableValueGUI($lng->txt("path_to_java"), "");
582 $ne->setValue(PATH_TO_JAVA ?: $not_set);
583 $this->form->addItem($ne);
584
585 // mkisofs
586 $ne = new ilNonEditableValueGUI($lng->txt("path_to_mkisofs"), "");
587 $ne->setValue(PATH_TO_MKISOFS ?: $not_set);
588 $this->form->addItem($ne);
589
590 $this->form->setTitle($lng->txt("server_data"));
591 $this->form->setFormAction($this->ctrl->getFormAction($this));
592 }
This class represents a non editable value in a property form.
const CLIENT_ID
Definition: constants.php:41
const ILIAS_VERSION
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26

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

+ Here is the call graph for this function:

◆ jumpToCronJobsObject()

ilObjSystemFolderGUI::jumpToCronJobsObject ( )

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

947 : void
948 {
949 // #13010 - this is used for external settings
950 $this->ctrl->redirectByClass("ilCronManagerGUI", "render");
951 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ renderServerStatus()

ilObjSystemFolderGUI::renderServerStatus ( )
protected

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

603 : void
604 {
605 $f = $this->dic->ui()->factory();
606 $r = $this->dic->ui()->renderer();
607 $metric = $this->getServerStatusInfo();
608 $report = $metric->toUIReport($f, $this->lng->txt("installation_status"));
609
610 $this->tpl->setContent($r->render($report));
611 }

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

Referenced by showServerInstallationStatusObject().

+ 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 742 of file class.ilObjSystemFolderGUI.php.

742 : void
743 {
746 $ilCtrl = $this->ctrl;
750
751 if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
752 $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
753 $this->ctrl->redirectByClass(self::class);
754 //$ilErr->raiseError($this->lng->txt("permission_denied"), $ilErr->MESSAGE);
755 }
756
757 $this->initBasicSettingsForm();
758 if ($this->form->checkInput()) {
759 $ilSetting->set("short_inst_name", $this->form->getInput("short_inst_name"));
760
761 $public_section = ilPublicSectionSettings::getInstance();
762 $public_section->setEnabled($this->form->getInput('pub_section'));
763
764 $domains = [];
765 foreach ((array) $this->form->getInput('public_section_domains') as $domain) {
766 if (strlen(trim($domain)) !== 0) {
767 $domains[] = $domain;
768 }
769 }
770 $public_section->setDomains($domains);
771 $public_section->save();
772
773 $global_profiles = ($this->form->getInput("pub_section"))
774 ? (int) $this->form->getInput('enable_global_profiles')
775 : 0;
776 $ilSetting->set('enable_global_profiles', $global_profiles);
777
778 $ilSetting->set("open_google", $this->form->getInput("open_google"));
779 $ilSetting->set("locale", $this->form->getInput("locale"));
780
781 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
782 $ilCtrl->redirect($this, "showBasicSettings");
783 }
784 $this->setGeneralSettingsSubTabs("basic_settings");
785 $this->form->setValuesByPost();
786 $tpl->setContent($this->form->getHtml());
787 }
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.

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(), ILIAS\UICore\GlobalTemplate\setContent(), setGeneralSettingsSubTabs(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ saveBenchSettingsObject()

ilObjSystemFolderGUI::saveBenchSettingsObject ( )

Save benchmark settings.

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

318 : void
319 {
320 $write_access = $this->rbacsystem->checkAccess("write", $this->object->getRefId());
321 if (!$write_access) {
322 $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
323 return;
324 }
325
326 if ($this->wrapper->post()->has(ilBenchmark::ENABLE_DB_BENCH)
327 && $this->wrapper->post()->has(ilBenchmark::DB_BENCH_USER)) {
328 $activate = $this->wrapper->post()->retrieve(ilBenchmark::ENABLE_DB_BENCH, $this->refinery->kindlyTo()->bool());
329 if ($activate) {
330 $user_name = $this->wrapper->post()->retrieve(ilBenchmark::DB_BENCH_USER, $this->refinery->kindlyTo()->string());
331 $this->bench->enableDbBenchmarkForUserName($user_name);
332 }
333 } else {
334 $this->bench->disableDbBenchmark();
335 }
336
337 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
338
339 $this->ctrl->redirect($this, "benchmark");
340 }

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

Referenced by clearBenchObject().

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

◆ saveContactInformationObject()

ilObjSystemFolderGUI::saveContactInformationObject ( )

Save contact information form.

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

1094 : void
1095 {
1096 $tpl = $this->tpl;
1097 $lng = $this->lng;
1098 $ilCtrl = $this->ctrl;
1102
1103 if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
1104 $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
1105 $this->ctrl->redirectByClass(self::class, "showContactInformation");
1106 }
1107
1109 if ($this->form->checkInput()) {
1110 $fs = array("admin_firstname", "admin_lastname", "admin_title", "admin_position",
1111 "admin_institution", "admin_street", "admin_zipcode", "admin_city",
1112 "admin_country", "admin_phone", "admin_email");
1113 foreach ($fs as $f) {
1114 $ilSetting->set($f, $_POST[$f]);
1115 }
1116
1117 // System support contacts
1118 ilSystemSupportContacts::setList($_POST["adm_support_contacts"]);
1119
1120 // Accessibility support contacts
1121 ilAccessibilitySupportContacts::setList($_POST["accessibility_support_contacts"]);
1122
1123 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1124 $ilCtrl->redirect($this, "showContactInformation");
1125 } else {
1126 $this->setGeneralSettingsSubTabs("contact_data");
1127 $this->form->setValuesByPost();
1128 $tpl->setContent($this->form->getHtml());
1129 }
1130 }
initContactInformationForm()
Init contact information form.
$_POST['cmd']
Definition: lti.php:27

References $_POST, Vendor\Package\$f, $ilErr, $ilSetting, $lng, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS\Repository\lng(), ilSystemSupportContacts\setList(), and ilAccessibilitySupportContacts\setList().

+ Here is the call graph for this function:

◆ saveHeaderTitlesObject()

ilObjSystemFolderGUI::saveHeaderTitlesObject ( bool  $delete = false)

Save header titles.

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

844 {
845 $ilCtrl = $this->ctrl;
849
850 if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
851 $this->tpl->setOnScreenMessage("failure", $this->lng->txt("permission_denied"), true);
852 $this->ctrl->redirectByClass(self::class, "showHeaderTitle");
853 }
854
855 $post = $this->dic->http()->request()->getParsedBody();
856 foreach ($post["title"] as $k => $v) {
857 if ($delete && ($post["check"][$k] ?? false)) {
858 unset($post["title"][$k]);
859 unset($post["desc"][$k]);
860 unset($post["lang"][$k]);
861 if ($k == $post["default"]) {
862 unset($post["default"]);
863 }
864 }
865 }
866
867
868
869 // default language set?
870 if (!isset($post["default"]) && count($post["lang"]) > 0) {
871 $this->tpl->setOnScreenMessage('failure', $lng->txt("msg_no_default_language"));
872 $this->showHeaderTitleObject(true);
873 return;
874 }
875
876 // all languages set?
877 if (array_key_exists("", $post["lang"])) {
878 $this->tpl->setOnScreenMessage('failure', $lng->txt("msg_no_language_selected"));
879 $this->showHeaderTitleObject(true);
880 return;
881 }
882
883 // no single language is selected more than once?
884 if (count(array_unique($post["lang"])) < count($post["lang"])) {
885 $this->tpl->setOnScreenMessage('failure', $lng->txt("msg_multi_language_selected"));
886 $this->showHeaderTitleObject(true);
887 return;
888 }
889
890 // save the stuff
891 $this->object->removeHeaderTitleTranslations();
892 foreach ($post["title"] as $k => $v) {
893 $desc = $post["desc"][$k] ?? "";
894 $this->object->addHeaderTitleTranslation(
897 ilUtil::stripSlashes($post["lang"][$k]),
898 ($post["default"] == $k)
899 );
900 }
901
902 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
903 $ilCtrl->redirect($this, "showHeaderTitle");
904 }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
$post
Definition: ltitoken.php:46

References $ilErr, $lng, $post, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ saveJavaServerObject()

ilObjSystemFolderGUI::saveJavaServerObject ( )

Save java server form.

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

1198 : void
1199 {
1200 $tpl = $this->tpl;
1201 $lng = $this->lng;
1202 $ilCtrl = $this->ctrl;
1206
1207 if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
1208 $ilErr->raiseError($this->lng->txt("permission_denied"), $ilErr->MESSAGE);
1209 }
1210
1211 $this->initJavaServerForm();
1212 if ($this->form->checkInput()) {
1213 $ilSetting->set('rpc_pdf_font', ilUtil::stripSlashes($_POST['rpc_pdf_font']));
1214 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1215 $ilCtrl->redirect($this, "showJavaServer");
1216
1217 // TODO check settings, ping server
1218 } else {
1219 $this->setGeneralSettingsSubTabs("java_server");
1220 $this->form->setValuesByPost();
1221 $tpl->setContent($this->form->getHtml());
1222 }
1223 }
initJavaServerForm()
Init java server form.

References $_POST, $ilErr, $ilSetting, $lng, ilRbacSystem\checkAccess(), ILIAS\Repository\form(), ILIAS\Repository\lng(), and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ setGeneralSettingsSubTabs()

ilObjSystemFolderGUI::setGeneralSettingsSubTabs (   $a_activate)

Set sub tabs for general settings.

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

629 : void
630 {
631 $ilTabs = $this->tabs;
632 $ilCtrl = $this->ctrl;
633
634 $ilTabs->addSubTabTarget("basic_settings", $ilCtrl->getLinkTarget($this, "showBasicSettings"));
635 $ilTabs->addSubTabTarget("header_title", $ilCtrl->getLinkTarget($this, "showHeaderTitle"));
636 $ilTabs->addSubTabTarget("contact_data", $ilCtrl->getLinkTarget($this, "showContactInformation"));
637
638 $ilTabs->setSubTabActive($a_activate);
639 $ilTabs->setTabActive("general_settings");
640 }

References ilObjectGUI\$ctrl, and $tabs.

Referenced by saveBasicSettingsObject(), and showBasicSettingsObject().

+ Here is the caller graph for this function:

◆ setServerInfoSubTabs()

ilObjSystemFolderGUI::setServerInfoSubTabs (   $a_activate)

Set sub tabs for server info.

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

442 : void
443 {
444 $ilTabs = $this->tabs;
445 $ilCtrl = $this->ctrl;
447
448 if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
449 $ilTabs->addSubTabTarget("installation_status", $ilCtrl->getLinkTarget($this, "showServerInstallationStatus"));
450
451 $ilTabs->addSubTabTarget("server_data", $ilCtrl->getLinkTarget($this, "showServerInfo"));
452 }
453
454
455 if ($rbacsystem->checkAccess("write", $this->object->getRefId())) {
456 $ilTabs->addSubTabTarget("java_server", $ilCtrl->getLinkTarget($this, "showJavaServer"));
457 }
458
459 $ilTabs->setSubTabActive($a_activate);
460 $ilTabs->setTabActive("server");
461 }

References ilObjectGUI\$ctrl, $rbacsystem, $tabs, and ilRbacSystem\checkAccess().

Referenced by showServerInstallationStatusObject().

+ 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 144 of file class.ilObjSystemFolderGUI.php.

144 : void
145 {
146 $ilTabs = $this->tabs;
147 $ilCtrl = $this->ctrl;
148
149 $ilTabs->addSubTab(
150 "system_check_sub",
151 $this->lng->txt("system_check"),
152 $ilCtrl->getLinkTarget($this, "check")
153 );
154 $ilTabs->addSubTab(
155 "no_owner",
156 $this->lng->txt("system_check_no_owner"),
157 $ilCtrl->getLinkTargetByClass("ilObjectOwnershipManagementGUI")
158 );
159
160 $ilTabs->setSubTabActive($a_activate);
161 $ilTabs->setTabActive("system_check");
162 }

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

Referenced by executeCommand().

+ 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 651 of file class.ilObjSystemFolderGUI.php.

651 : void
652 {
654
655 $this->initBasicSettingsForm();
656 $this->setGeneralSettingsSubTabs("basic_settings");
657
658 $tpl->setContent($this->form->getHTML());
659 }

References ilObjectGUI\$tpl, ILIAS\Repository\form(), ILIAS\UICore\GlobalTemplate\setContent(), and setGeneralSettingsSubTabs().

Referenced by viewObject().

+ 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 963 of file class.ilObjSystemFolderGUI.php.

963 : void
964 {
966
968 $this->setGeneralSettingsSubTabs("contact_data");
969 $tpl->setContent($this->form->getHTML());
970 }

References ILIAS\Repository\form().

+ Here is the call graph for this function:

◆ showDbBenchByFirstTableObject()

ilObjSystemFolderGUI::showDbBenchByFirstTableObject ( )

Show db benchmark results.

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

244 : void
245 {
246 $this->benchmarkSubTabs("by_first_table");
247 $this->showDbBenchResults("by_first_table");
248 }
showDbBenchResults($a_mode)
Show Db Benchmark Results.

References benchmarkSubTabs(), and showDbBenchResults().

+ Here is the call graph for this function:

◆ showDbBenchChronologicalObject()

ilObjSystemFolderGUI::showDbBenchChronologicalObject ( )

Show db benchmark results.

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

217 : void
218 {
219 $this->benchmarkSubTabs("chronological");
220 $this->showDbBenchResults("chronological");
221 }

References benchmarkSubTabs(), and showDbBenchResults().

+ Here is the call graph for this function:

◆ showDbBenchResults()

ilObjSystemFolderGUI::showDbBenchResults (   $a_mode)

Show Db Benchmark Results.

Parameters
stringmode

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

255 : void
256 {
258
259 $ilBench = $this->bench;
260 $rec = $ilBench->getDbBenchRecords();
261
262 $table = new ilBenchmarkTableGUI($this, "benchmark", $rec, $a_mode);
263 $tpl->setContent($table->getHTML());
264 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $bench, ilObjectGUI\$tpl, ilBenchmark\getDbBenchRecords(), and ILIAS\UICore\GlobalTemplate\setContent().

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

+ 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 226 of file class.ilObjSystemFolderGUI.php.

226 : void
227 {
228 $this->benchmarkSubTabs("slowest_first");
229 $this->showDbBenchResults("slowest_first");
230 }

References benchmarkSubTabs(), and showDbBenchResults().

+ Here is the call graph for this function:

◆ showDbBenchSortedBySqlObject()

ilObjSystemFolderGUI::showDbBenchSortedBySqlObject ( )

Show db benchmark results.

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

235 : void
236 {
237 $this->benchmarkSubTabs("sorted_by_sql");
238 $this->showDbBenchResults("sorted_by_sql");
239 }

References benchmarkSubTabs(), and showDbBenchResults().

+ 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 798 of file class.ilObjSystemFolderGUI.php.

801 : void {
803 $this->setGeneralSettingsSubTabs("header_title");
804 $table = new ilInstallationHeadingTableGUI($this, "showHeaderTitle", false);
805 $post = $this->gui->http()->request()->getParsedBody();
806 if ($a_get_post_values) {
807 $vals = array();
808 foreach (($post["title"] ?? []) as $k => $v) {
809 $def = $post["default"] ?? "";
810 $vals[] = array("title" => $v,
811 "desc" => ($post["desc"][$k] ?? ""),
812 "lang" => ($post["lang"][$k] ?? ""),
813 "default" => ($def == $k));
814 }
815 if ($add_entry) {
816 $vals[] = array("title" => "",
817 "desc" => "",
818 "lang" => "",
819 "default" => false);
820 }
821 $table->setData($vals);
822 } else {
823 $data = $this->object->getHeaderTitleTranslations();
824 if (isset($data["Fobject"]) && is_array($data["Fobject"])) {
825 foreach ($data["Fobject"] as $k => $v) {
826 if ($k == $data["default_language"]) {
827 $data["Fobject"][$k]["default"] = true;
828 } else {
829 $data["Fobject"][$k]["default"] = false;
830 }
831 }
832 } else {
833 $data["Fobject"] = array();
834 }
835 $table->setData($data["Fobject"]);
836 }
837 $tpl->setContent($table->getHTML());
838 }
TableGUI class for title/description translations.

◆ showJavaServerObject()

ilObjSystemFolderGUI::showJavaServerObject ( )

Show Java Server Settings.

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

1141 : void
1142 {
1143 $tpl = $this->tpl;
1144
1145 $tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.java_settings.html', 'components/ILIAS/SystemFolder');
1146
1147 $GLOBALS['lng']->loadLanguageModule('search');
1148
1149 $this->initJavaServerForm();
1150 $this->setServerInfoSubTabs("java_server");
1151 $tpl->setVariable('SETTINGS_TABLE', $this->form->getHTML());
1152 }
setServerInfoSubTabs($a_activate)
Set sub tabs for server info.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
addBlockFile(string $var, string $block, string $template_name, ?string $in_module=null)
overwrites ITX::addBlockFile
$GLOBALS["DIC"]
Definition: wac.php:54

References $GLOBALS, and ILIAS\Repository\form().

+ Here is the call graph for this function:

◆ showPHPInfoObject()

ilObjSystemFolderGUI::showPHPInfoObject ( )

Show PHP Information.

Returns
never

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

423 : void
424 {
426 if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
427 phpinfo();
428 exit;
429 }
430 }

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

+ Here is the call graph for this function:

◆ showServerInstallationStatusObject()

ilObjSystemFolderGUI::showServerInstallationStatusObject ( )
protected

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

594 : void
595 {
597 if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
598 $this->setServerInfoSubTabs("installation_status");
599 $this->renderServerStatus();
600 }
601 }

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

+ Here is the call graph for this function:

◆ showVcsInformationObject()

ilObjSystemFolderGUI::showVcsInformationObject ( )
protected

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

1257 : void
1258 {
1259 $vcInfo = [];
1261 if ($rbacsystem->checkAccess("read", $this->object->getRefId())) {
1262 foreach ([new ilGitInformation()] as $vc) {
1263 $html = $vc->getInformationAsHtml();
1264 if ($html) {
1265 $vcInfo[] = $html;
1266 }
1267 }
1268
1269 if ($vcInfo !== []) {
1270 $this->tpl->setOnScreenMessage('info', implode("<br />", $vcInfo));
1271 } else {
1272 $this->tpl->setOnScreenMessage('info', $this->lng->txt('vc_information_not_determined'));
1273 }
1274
1275 $this->showServerInfoObject();
1276 }
1277 }
Class ilGitInformation.

References ilRbacSystem\checkAccess(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ switchBenchModuleObject()

ilObjSystemFolderGUI::switchBenchModuleObject ( )

save benchmark settings

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

346 : void
347 {
348 $this->ctrl->setParameter($this, 'cur_mod', $_POST['module']);
349 $this->ctrl->redirect($this, "benchmark");
350 }

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

+ Here is the call graph for this function:

◆ viewObject()

ilObjSystemFolderGUI::viewObject ( )

show admin subpanels and basic settings form

@access public

Reimplemented from ilObjectGUI.

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

130 : void
131 {
132 $ilAccess = $this->access;
133
134 if ($ilAccess->checkAccess("read", "", $this->object->getRefId())) {
136 return;
137 }
138 $this->showServerInfoObject();
139 }
showBasicSettingsObject()
Show basic settings.
ilAccessHandler $access

References ilObjectGUI\$access, and showBasicSettingsObject().

+ Here is the call graph for this function:

Field Documentation

◆ $bench

ilBenchmark ilObjSystemFolderGUI::$bench
protected

◆ $client_ini

ilIniFile ilObjSystemFolderGUI::$client_ini
protected

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

Referenced by initServerInfoForm().

◆ $content_style_domain

ILIAS Style Content Object ObjectFacade ilObjSystemFolderGUI::$content_style_domain
protected

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

◆ $db

ilDBInterface ilObjSystemFolderGUI::$db
protected

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

◆ $dic

Pimple Container ilObjSystemFolderGUI::$dic
protected

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

◆ $error

ilErrorHandling ilObjSystemFolderGUI::$error
protected

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

Referenced by saveBasicSettingsObject().

◆ $form

ilPropertyFormGUI ilObjSystemFolderGUI::$form
protected

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

◆ $gui

ILIAS Repository InternalGUIService ilObjSystemFolderGUI::$gui
protected

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

Referenced by executeCommand().

◆ $help

ilHelpGUI ilObjSystemFolderGUI::$help
protected

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

Referenced by getAdminTabs().

◆ $obj_definition

ilObjectDefinition ilObjSystemFolderGUI::$obj_definition
protected

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

◆ $rbacsystem

◆ $refinery

ILIAS Refinery Factory ilObjSystemFolderGUI::$refinery
protected

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

◆ $style_definition

ilStyleDefinition ilObjSystemFolderGUI::$style_definition
protected

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

◆ $tabs

ilTabsGUI ilObjSystemFolderGUI::$tabs
protected

◆ $type

string ilObjSystemFolderGUI::$type

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

◆ $wrapper

ILIAS HTTP Wrapper WrapperFactory ilObjSystemFolderGUI::$wrapper
protected

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


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