ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjSystemFolderGUI Class Reference

Class ilObjSystemFolderGUI. More...

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

Public Member Functions

 ilObjSystemFolderGUI ($a_data, $a_id, $a_call_by_reference)
 Constructor public.
executeCommand ()
 execute command
 viewObject ()
 show admin subpanels and basic settings form
 viewScanLogObject ()
 setSystemCheckSubTabs ($a_activate)
 Set sub tabs for general settings.
 checkObject ()
 displays system check menu
 changeHeaderTitleObject ()
 edit header title form
 saveHeaderTitleObject ()
 save header title
 cancelObject ()
 addHeaderTitleTranslationObject ()
 adds a translation form & save post vars to session
 removeTranslationObject ()
 removes a translation form & save post vars to session
 startValidator ($a_mode, $a_log)
 viewScanLog ()
 benchmarkObject ()
 Benchmark settings.
 showDbBenchChronologicalObject ()
 Show db benchmark results.
 showDbBenchSlowestFirstObject ()
 Show db benchmark results.
 showDbBenchSortedBySqlObject ()
 Show db benchmark results.
 showDbBenchByFirstTableObject ()
 Show db benchmark results.
 showDbBenchResults ($a_mode)
 Show Db Benchmark Results.
 benchmarkSubTabs ($a_current)
 Benchmark sub tabs.
 saveBenchSettingsObject ()
 Save benchmark settings.
 switchBenchModuleObject ()
 save benchmark settings
 clearBenchObject ()
 delete all benchmark records
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 showPHPInfoObject ()
 Show PHP Information.
 setServerInfoSubTabs ($a_activate)
 Set sub tabs for server info.
 initServerInfoForm ()
 Init server info form.
 setGeneralSettingsSubTabs ($a_activate)
 Set sub tabs for general settings.
 showBasicSettingsObject ()
 Show basic settings.
 saveBasicSettingsObject ()
 Save basic settings form.
 showHeaderTitleObject ($a_get_post_values=false)
 Show header title.
 saveHeaderTitlesObject ()
 Save header titles.
 addHeaderTitleObject ()
 Add a header title.
 deleteHeaderTitlesObject ()
 Remove header titles.
 jumpToCronJobsObject ()
 showContactInformationObject ()
 Show contact information.
 initContactInformationForm ()
 Init contact information form.
 saveContactInformationObject ()
 Save contact information form.
 showWebServicesObject ()
 Show Web Services.
 initWebServicesForm ()
 Init web services form.
 saveWebServicesObject ()
 Save web services form.
 showJavaServerObject ()
 Show Java Server Settings.
 createJavaServerIniObject ()
 Create a server ini file.
 initJavaServerForm ()
 Init java server form.
 saveJavaServerObject ()
 Save java server form.
 showProxyObject ()
 Show proxy settings.
 saveProxyObject ()
 Save proxy settings.
 showHTTPSObject ()
 saveHTTPSObject ()
 addToExternalSettingsForm ($a_form_id)
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not)
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui
 getCreationMode ()
 get creation mode
 getHTML ()
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 createObject ()
 create new object form
 cancelCreation ()
 cancel create action and go back to repository parent
 saveObject ()
 save object
 editObject ()
 edit object
 updateObject ()
 updates object entry in object_data
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g.
 isVisible ($a_ref_id, $a_type)
 deleteObject ($a_error=false)
 Display deletion confirmation screen.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.

Static Public Member Functions

static _goto ()
 goto target group
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root.
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root.

Data Fields

 $type
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 $ilias
 $objDefinition
 $tpl
 $tree
 $lng
 $data
 $object
 $ref_id
 $obj_id
 $maxcount
 $formaction
 $return_location
 $target_frame
 $tab_target_script
 $actions
 $sub_objects
 $omit_locator = false
const CFORM_NEW = 1
const CFORM_IMPORT = 2
const CFORM_CLONE = 3

Protected Member Functions

 initJavaServerIniForm ()
 downloadJavaServerIniObject ()
 Create and offer server ini file for download.
 showVcsInformationObject ()
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 prepareOutput ()
 prepare output
 setTitleAndDescription ()
 called by prepare output
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu.
 insertHeaderAction ($a_list_gui)
 Insert header action into main template.
 addHeaderAction ()
 Add header action menu.
 redrawHeaderActionObject ()
 Ajax call: redraw action header only.
 showMountWebfolderIcon ()
 setTabs ()
 set admin tabs public
 setAdminTabs ()
 set admin tabs public
 setLocator ()
 set Locator
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 omitLocator ($a_omit=true)
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded)
 initCreationForms ($a_new_type)
 Init creation froms.
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion)
 initCreateForm ($a_new_type)
 Init object creation form.
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types.
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates.
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen.
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position.
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook.
 initEditForm ()
 Init object edit form.
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form.
 getEditFormValues ()
 Get values for edit form.
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields.
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput())
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object.
 afterUpdate ()
 Post (successful) object update hook.
 initImportForm ($a_new_type)
 Init object import form.
 importFileObject ($parent_id=null)
 Import.
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook.
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g.
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g.
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu)
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl.
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste
 getTabs (&$tabs_gui)
 get tabs abstract method.
 __showButton ($a_cmd, $a_text, $a_target= '')
 hitsperpageObject ()
__initTableGUI ()
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table
 redirectToRefId ($a_ref_id, $a_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 $_GET["ref_id"] value
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning.
 getCenterColumnHTML ()
 Get center column.
 getRightColumnHTML ()
 Display right column.
 setColumnSettings ($column_gui)
 May be overwritten in subclasses.
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error.
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission.
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files.
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting.

Private Member Functions

 saveCheckParamsObject ()
 writeCheckParams ()
 saveCheckCronObject ()
 printProxyStatus ()
 Print proxy settings.
 initProxyForm ()
 Initialize proxy settings form.
 initHTTPSForm ()

Detailed Description

Member Function Documentation

static ilObjSystemFolderGUI::_goto ( )
static

goto target group

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

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

{
global $ilAccess, $ilErr, $lng;
$a_target = SYSTEM_FOLDER_ID;
if ($ilAccess->checkAccess("read", "", $a_target))
{
ilUtil::redirect("ilias.php?baseClass=ilAdministrationGUI");
}
else
{
if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID))
{
ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"),
}
}
$ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::addHeaderTitleObject ( )

Add a header title.

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

References $_POST, $ilCtrl, ilObjectGUI\$lng, and showHeaderTitleObject().

{
global $ilCtrl, $lng;
if (is_array($_POST["title"]))
{
foreach($_POST["title"] as $k => $v) {}
}
$k++;
$_POST["title"][$k] = "";
$this->showHeaderTitleObject(true);
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::addHeaderTitleTranslationObject ( )

adds a translation form & save post vars to session

public

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

References $_POST, and $_SESSION.

{
$_SESSION["translation_post"] = $_POST;
$this->ctrl->setParameter($this, "mode", "session");
$this->ctrl->setParameter($this, "entry", "0");
$this->ctrl->redirect($this, "changeHeaderTitle");
}
ilObjSystemFolderGUI::addToExternalSettingsForm (   $a_form_id)

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

References ilSecuritySettings\_getInstance(), ilAdministrationSettingsFormHandler\FORM_SECURITY, and ilAdministrationSettingsFormHandler\VALUE_BOOL.

{
switch($a_form_id)
{
include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
$subitems = null;
$fields['activate_https'] =
array($security->isHTTPSEnabled(), ilAdministrationSettingsFormHandler::VALUE_BOOL);
return array("general_settings" => array("showHTTPS", $fields));
}
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::benchmarkObject ( )

Benchmark settings.

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

References $ilBench, $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$tpl, benchmarkSubTabs(), ilCheckboxInputGUI\setChecked(), and ilTextInputGUI\setValue().

{
global $ilBench, $rbacsystem, $lng, $ilCtrl, $ilSetting, $tpl;
if (!$rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
$this->benchmarkSubTabs("settings");
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
// Activate DB Benchmark
$cb = new ilCheckboxInputGUI($lng->txt("adm_activate_db_benchmark"), "enable_db_bench");
$cb->setChecked($ilSetting->get("enable_db_bench"));
$cb->setInfo($lng->txt("adm_activate_db_benchmark_desc"));
$this->form->addItem($cb);
// DB Benchmark User
$ti = new ilTextInputGUI($lng->txt("adm_db_benchmark_user"), "db_bench_user");
$ti->setValue($ilSetting->get("db_bench_user"));
$ti->setInfo($lng->txt("adm_db_benchmark_user_desc"));
$this->form->addItem($ti);
$this->form->addCommandButton("saveBenchSettings", $lng->txt("save"));
$this->form->setTitle($lng->txt("adm_db_benchmark"));
$this->form->setFormAction($ilCtrl->getFormAction($this));
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::benchmarkSubTabs (   $a_current)

Benchmark sub tabs.

Parameters
@return

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

References $ilBench, $ilCtrl, and ilObjectGUI\$lng.

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

{
global $ilTabs, $lng, $ilCtrl, $ilBench;
$ilTabs->activateTab("benchmarks"); // #18083
$ilTabs->addSubtab("settings",
$lng->txt("settings"),
$ilCtrl->getLinkTarget($this, "benchmark"));
$rec = $ilBench->getDbBenchRecords();
if (count($rec) > 0)
{
$ilTabs->addSubtab("chronological",
$lng->txt("adm_db_bench_chronological"),
$ilCtrl->getLinkTarget($this, "showDbBenchChronological"));
$ilTabs->addSubtab("slowest_first",
$lng->txt("adm_db_bench_slowest_first"),
$ilCtrl->getLinkTarget($this, "showDbBenchSlowestFirst"));
$ilTabs->addSubtab("sorted_by_sql",
$lng->txt("adm_db_bench_sorted_by_sql"),
$ilCtrl->getLinkTarget($this, "showDbBenchSortedBySql"));
$ilTabs->addSubtab("by_first_table",
$lng->txt("adm_db_bench_by_first_table"),
$ilCtrl->getLinkTarget($this, "showDbBenchByFirstTable"));
}
$ilTabs->activateSubTab($a_current);
}

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::cancelObject ( )

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

{
$this->ctrl->redirect($this, "view");
}
ilObjSystemFolderGUI::changeHeaderTitleObject ( )

edit header title form

private

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

References $_GET, $_SESSION, ilObjectGUI\$data, ilMDLanguageItem\_getLanguages(), ilUtil\prepareFormOutput(), and ilUtil\stripSlashes().

{
global $rbacsystem, $styleDefinition;
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.header_title_edit.html",
"Modules/SystemFolder");
$array_push = true;
if ($_SESSION["error_post_vars"])
{
$_SESSION["translation_post"] = $_SESSION["error_post_vars"];
$_GET["mode"] = "session";
$array_push = false;
}
// load from db if edit category is called the first time
if (($_GET["mode"] != "session"))
{
$data = $this->object->getHeaderTitleTranslations();
$_SESSION["translation_post"] = $data;
$array_push = false;
} // remove a translation from session
elseif ($_GET["entry"] != 0)
{
array_splice($_SESSION["translation_post"]["Fobject"],$_GET["entry"],1,array());
if ($_GET["entry"] == $_SESSION["translation_post"]["default_language"])
{
$_SESSION["translation_post"]["default_language"] = "";
}
}
$data = $_SESSION["translation_post"];
// add additional translation form
if (!$_GET["entry"] and $array_push)
{
$count = array_push($data["Fobject"],array("title" => "","desc" => ""));
}
else
{
$count = count($data["Fobject"]);
}
// stripslashes in form?
$strip = isset($_SESSION["translation_post"]) ? true : false;
foreach ($data["Fobject"] as $key => $val)
{
// add translation button
if ($key == $count -1)
{
$this->tpl->setCurrentBlock("addTranslation");
$this->tpl->setVariable("TXT_ADD_TRANSLATION",$this->lng->txt("add_translation")." >>");
$this->tpl->parseCurrentBlock();
}
// remove translation button
if ($key != 0)
{
$this->tpl->setCurrentBlock("removeTranslation");
$this->tpl->setVariable("TXT_REMOVE_TRANSLATION",$this->lng->txt("remove_translation"));
$this->ctrl->setParameter($this, "entry", $key);
$this->ctrl->setParameter($this, "mode", "edit");
$this->tpl->setVariable("LINK_REMOVE_TRANSLATION",
$this->ctrl->getLinkTarget($this, "removeTranslation"));
$this->tpl->parseCurrentBlock();
}
// lang selection
$this->tpl->addBlockFile("SEL_LANGUAGE", "sel_language", "tpl.lang_selection.html",
"Services/MetaData");
$this->tpl->setVariable("SEL_NAME", "Fobject[".$key."][lang]");
include_once('Services/MetaData/classes/class.ilMDLanguageItem.php');
foreach ($languages as $code => $language)
{
$this->tpl->setCurrentBlock("lg_option");
$this->tpl->setVariable("VAL_LG", $code);
$this->tpl->setVariable("TXT_LG", $language);
if ($code == $val["lang"])
{
$this->tpl->setVariable("SELECTED", "selected=\"selected\"");
}
$this->tpl->parseCurrentBlock();
}
// object data
$this->tpl->setCurrentBlock("obj_form");
if ($key == 0)
{
$this->tpl->setVariable("TXT_HEADER", $this->lng->txt("change_header_title"));
}
else
{
$this->tpl->setVariable("TXT_HEADER", $this->lng->txt("translation")." ".$key);
}
if ($key == $data["default_language"])
{
$this->tpl->setVariable("CHECKED", "checked=\"checked\"");
}
$this->tpl->setVariable("TXT_TITLE", $this->lng->txt("title"));
$this->tpl->setVariable("TXT_DESC", $this->lng->txt("desc"));
$this->tpl->setVariable("TXT_DEFAULT", $this->lng->txt("default"));
$this->tpl->setVariable("TXT_LANGUAGE", $this->lng->txt("language"));
$this->tpl->setVariable("TITLE", ilUtil::prepareFormOutput($val["title"],$strip));
$this->tpl->setVariable("DESC", ilUtil::stripSlashes($val["desc"]));
$this->tpl->setVariable("NUM", $key);
$this->tpl->parseCurrentBlock();
}
// global
$this->tpl->setCurrentBlock("adm_content");
$this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_CANCEL", $this->lng->txt("cancel"));
$this->tpl->setVariable("TXT_SUBMIT", $this->lng->txt("save"));
$this->tpl->setVariable("CMD_SUBMIT", "saveHeaderTitle");
$this->tpl->setVariable("TXT_REQUIRED_FLD", $this->lng->txt("required_field"));
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::checkObject ( )

displays system check menu

public

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

References $_POST, $ilDB, ilObjectGUI\$ilias, $ilSetting, ilObjectGUI\$objDefinition, $row, $t, ilUtil\formSelect(), ilPlugin\lookupTxt(), setSystemCheckSubTabs(), ilRadioGroupInputGUI\setValue(), startValidator(), and writeCheckParams().

Referenced by saveCheckCronObject(), and saveCheckParamsObject().

{
global $rbacsystem, $ilias, $objDefinition, $ilSetting;
$this->setSystemCheckSubTabs("system_check_sub");
if (!$rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
//echo "1";
if ($_POST['count_limit'] !== null || $_POST['age_limit'] !== null || $_POST['type_limit'] !== null)
{
$ilias->account->writePref('systemcheck_count_limit',
(is_numeric($_POST['count_limit']) && $_POST['count_limit'] > 0) ? $_POST['count_limit'] : ''
);
$ilias->account->writePref('systemcheck_age_limit',
(is_numeric($_POST['age_limit']) && $_POST['age_limit'] > 0) ? $_POST['age_limit'] : '');
$ilias->account->writePref('systemcheck_type_limit', trim($_POST['type_limit']));
}
if ($_POST["mode"])
{
//echo "3";
$this->writeCheckParams();
$this->startValidator($_POST["mode"],$_POST["log_scan"]);
}
else
{
//echo "4";
include_once "./Services/Repository/classes/class.ilValidator.php";
$validator = new ilValidator();
$hasScanLog = $validator->hasScanLog();
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.adm_check.html",
"Modules/SystemFolder");
if ($hasScanLog)
{
$this->tpl->setVariable("TXT_VIEW_LOG", $this->lng->txt("view_last_log"));
}
$this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_TITLE", $this->lng->txt("systemcheck"));
$this->tpl->setVariable("COLSPAN", 3);
$this->tpl->setVariable("TXT_ANALYZE_TITLE", $this->lng->txt("analyze_data"));
$this->tpl->setVariable("TXT_ANALYSIS_OPTIONS", $this->lng->txt("analysis_options"));
$this->tpl->setVariable("TXT_REPAIR_OPTIONS", $this->lng->txt("repair_options"));
$this->tpl->setVariable("TXT_OUTPUT_OPTIONS", $this->lng->txt("output_options"));
$this->tpl->setVariable("TXT_SCAN", $this->lng->txt("scan"));
$this->tpl->setVariable("TXT_SCAN_DESC", $this->lng->txt("scan_desc"));
$this->tpl->setVariable("TXT_DUMP_TREE", $this->lng->txt("dump_tree"));
$this->tpl->setVariable("TXT_DUMP_TREE_DESC", $this->lng->txt("dump_tree_desc"));
$this->tpl->setVariable("TXT_CLEAN", $this->lng->txt("clean"));
$this->tpl->setVariable("TXT_CLEAN_DESC", $this->lng->txt("clean_desc"));
$this->tpl->setVariable("TXT_RESTORE", $this->lng->txt("restore_missing"));
$this->tpl->setVariable("TXT_RESTORE_DESC", $this->lng->txt("restore_missing_desc"));
$this->tpl->setVariable("TXT_PURGE", $this->lng->txt("purge_missing"));
$this->tpl->setVariable("TXT_PURGE_DESC", $this->lng->txt("purge_missing_desc"));
$this->tpl->setVariable("TXT_RESTORE_TRASH", $this->lng->txt("restore_trash"));
$this->tpl->setVariable("TXT_RESTORE_TRASH_DESC", $this->lng->txt("restore_trash_desc"));
$this->tpl->setVariable("TXT_PURGE_TRASH", $this->lng->txt("purge_trash"));
$this->tpl->setVariable("TXT_PURGE_TRASH_DESC", $this->lng->txt("purge_trash_desc"));
$this->tpl->setVariable("TXT_COUNT_LIMIT", $this->lng->txt("purge_count_limit"));
$this->tpl->setVariable("TXT_COUNT_LIMIT_DESC", $this->lng->txt("purge_count_limit_desc"));
$this->tpl->setVariable("COUNT_LIMIT_VALUE", $ilias->account->getPref("systemcheck_count_limit"));
$this->tpl->setVariable("TXT_AGE_LIMIT", $this->lng->txt("purge_age_limit"));
$this->tpl->setVariable("TXT_AGE_LIMIT_DESC", $this->lng->txt("purge_age_limit_desc"));
$this->tpl->setVariable("AGE_LIMIT_VALUE", $ilias->account->getPref("systemcheck_age_limit"));
$this->tpl->setVariable("TXT_TYPE_LIMIT", $this->lng->txt("purge_type_limit"));
$this->tpl->setVariable("TXT_TYPE_LIMIT_DESC", $this->lng->txt("purge_type_limit_desc"));
if($ilias->account->getPref('systemcheck_mode_scan'))
$this->tpl->touchBlock('mode_scan_checked');
if($ilias->account->getPref('systemcheck_mode_dump_tree'))
$this->tpl->touchBlock('mode_dump_tree_checked');
if($ilias->account->getPref('systemcheck_mode_clean'))
$this->tpl->touchBlock('mode_clean_checked');
if($ilias->account->getPref('systemcheck_mode_restore'))
{
$this->tpl->touchBlock('mode_restore_checked');
$this->tpl->touchBlock('mode_purge_disabled');
}
elseif($ilias->account->getPref('systemcheck_mode_purge'))
{
$this->tpl->touchBlock('mode_purge_checked');
$this->tpl->touchBlock('mode_restore_disabled');
}
if($ilias->account->getPref('systemcheck_mode_restore_trash'))
{
$this->tpl->touchBlock('mode_restore_trash_checked');
$this->tpl->touchBlock('mode_purge_trash_disabled');
}
elseif($ilias->account->getPref('systemcheck_mode_purge_trash'))
{
$this->tpl->touchBlock('mode_purge_trash_checked');
$this->tpl->touchBlock('mode_restore_trash_disabled');
}
if($ilias->account->getPref('systemcheck_log_scan'))
$this->tpl->touchBlock('log_scan_checked');
// #9520 - restrict to types which can be found in tree
$obj_types_in_tree = array();
global $ilDB;
$set = $ilDB->query('SELECT type FROM object_data od'.
' JOIN object_reference ref ON (od.obj_id = ref.obj_id)'.
' JOIN tree ON (tree.child = ref.ref_id)'.
' WHERE tree.tree < 1'.
' GROUP BY type');
while($row = $ilDB->fetchAssoc($set))
{
$obj_types_in_tree[] = $row['type'];
}
$types = $objDefinition->getAllObjects();
$ts = array("" => "");
foreach ($types as $t)
{
if ($t != "" && !$objDefinition->isSystemObject($t) && $t != "root" &&
in_array($t, $obj_types_in_tree))
{
if ($objDefinition->isPlugin($t))
{
$ts[$t] = ilPlugin::lookupTxt("rep_robj", $t, "obj_".$t);
}
else
{
$ts[$t] = $this->lng->txt("obj_".$t);
}
}
}
asort($ts);
$this->tpl->setVariable("TYPE_LIMIT_CHOICE",
$ilias->account->getPref("systemcheck_type_limit"),
'type_limit',
$ts, false, true
)
);
$this->tpl->setVariable("TXT_LOG_SCAN", $this->lng->txt("log_scan"));
$this->tpl->setVariable("TXT_LOG_SCAN_DESC", $this->lng->txt("log_scan_desc"));
$this->tpl->setVariable("TXT_SUBMIT", $this->lng->txt("start_scan"));
$this->tpl->setVariable("TXT_SAVE", $this->lng->txt("save_params_for_cron"));
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$cron_form = new ilPropertyFormGUI();
$cron_form->setFormAction($this->ctrl->getFormAction($this));
$cron_form->setTitle($this->lng->txt('systemcheck_cronform'));
$radio_group = new ilRadioGroupInputGUI($this->lng->txt('systemcheck_cron'), 'cronjob' );
$radio_group->setValue( $ilSetting->get('systemcheck_cron') );
$radio_opt = new ilRadioOption($this->lng->txt('disabled'),0);
$radio_group->addOption($radio_opt);
$radio_opt = new ilRadioOption($this->lng->txt('enabled'),1);
$radio_group->addOption($radio_opt);
$cron_form->addItem($radio_group);
$cron_form->addCommandButton('saveCheckCron',$this->lng->txt('save'));
$this->tpl->setVariable('CRON_FORM',$cron_form->getHTML());
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::clearBenchObject ( )

delete all benchmark records

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

References $ilBench, and saveBenchSettingsObject().

{
global $ilBench;
$ilBench->clearData();
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::createJavaServerIniObject ( )

Create a server ini file.

Returns

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

References initJavaServerIniForm(), and setGeneralSettingsSubTabs().

{
$this->setGeneralSettingsSubTabs('java_server');
$this->tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::deleteHeaderTitlesObject ( )

Remove header titles.

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

References $_POST, $ilCtrl, ilObjectGUI\$lng, and saveHeaderTitlesObject().

{
global $ilCtrl, $lng;
//var_dump($_POST);
foreach($_POST["title"] as $k => $v)
{
if ($_POST["check"][$k])
{
unset($_POST["title"][$k]);
unset($_POST["desc"][$k]);
unset($_POST["lang"][$k]);
if ($k == $_POST["default"])
{
unset($_POST["default"]);
}
}
}
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::downloadJavaServerIniObject ( )
protected

Create and offer server ini file for download.

Returns

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

References $ini, ilUtil\deliverData(), initJavaServerIniForm(), ilUtil\sendFailure(), and setGeneralSettingsSubTabs().

{
if($this->form->checkInput())
{
include_once './Services/WebServices/RPC/classes/class.ilRpcIniFileWriter.php';
$ini->setHost($this->form->getInput('ho'));
$ini->setPort($this->form->getInput('po'));
$ini->setIndexPath($this->form->getInput('in'));
$ini->setLogPath($this->form->getInput('lo'));
$ini->setLogLevel($this->form->getInput('le'));
$ini->setNumThreads($this->form->getInput('cp'));
$ini->setMaxFileSize($this->form->getInput('fs'));
$ini->write();
ilUtil::deliverData($ini->getIniString(),'ilServer.ini','text/plain','utf-8');
return true;
}
$this->form->setValuesByPost();
ilUtil::sendFailure($this->lng->txt('err_check_input'));
$this->setGeneralSettingsSubTabs('java_server');
$this->tpl->setContent($this->form->getHTML());
return true;
}

+ Here is the call graph for this function:

& ilObjSystemFolderGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

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

References $cmd, $ret, ilObjectGUI\checkPermissionBool(), ilObjStyleSheet\getEffectiveContentStyleId(), ilObjectGUI\prepareOutput(), and setSystemCheckSubTabs().

{
global $ilTabs;
$next_class = $this->ctrl->getNextClass($this);
$this->prepareOutput();
switch($next_class)
{
case 'ilpermissiongui':
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
case 'ilimprintgui':
// page editor will set its own tabs
$ilTabs->clearTargets();
$ilTabs->setBackTarget($this->lng->txt("back"),
$this->ctrl->getLinkTarget($this, ""));
include_once("./Services/Imprint/classes/class.ilImprintGUI.php");
$igui = new ilImprintGUI();
// needed for editor
$igui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(0, "impr"));
if(!$this->checkPermissionBool("write"))
{
$igui->setEnableEditing(false);
}
$ret = $this->ctrl->forwardCommand($igui);
if ($ret != "")
{
$this->tpl->setContent($ret);
}
break;
case "ilobjectownershipmanagementgui":
$this->setSystemCheckSubTabs("no_owner");
include_once("Services/Object/classes/class.ilObjectOwnershipManagementGUI.php");
$this->ctrl->forwardCommand($gui);
break;
case "ilcronmanagergui":
$ilTabs->activateTab("cron_jobs");
include_once("Services/Cron/classes/class.ilCronManagerGUI.php");
$gui = new ilCronManagerGUI();
$this->ctrl->forwardCommand($gui);
break;
default:
//var_dump($_POST);
$cmd = $this->ctrl->getCmd("view");
$cmd .= "Object";
$this->$cmd();
break;
}
return true;
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::getAdminTabs ( $tabs_gui)

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

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

{
global $rbacsystem, $ilHelp;
// $ilHelp->setScreenIdComponent($this->object->getType());
$this->ctrl->setParameter($this,"ref_id",$this->object->getRefId());
// general settings
if ($rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$tabs_gui->addTarget("general_settings",
$this->ctrl->getLinkTarget($this, "showBasicSettings"),
array("showBasicSettings", "saveBasicSettings"), get_class($this));
}
// server info
if ($rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$tabs_gui->addTarget("server",
$this->ctrl->getLinkTarget($this, "showServerInfo"),
array("showServerInfo", "view"), get_class($this));
}
if ($rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$tabs_gui->addTarget("cron_jobs",
$this->ctrl->getLinkTargetByClass("ilCronManagerGUI", ""), "", get_class($this));
$tabs_gui->addTarget("system_check",
$this->ctrl->getLinkTarget($this, "check"), array("check","viewScanLog","saveCheckParams","saveCheckCron"), get_class($this));
$tabs_gui->addTarget("benchmarks",
$this->ctrl->getLinkTarget($this, "benchmark"), "benchmark", get_class($this));
}
if ($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
{
$tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"), array("perm","info","owner"), 'ilpermissiongui');
}
}
ilObjSystemFolderGUI::ilObjSystemFolderGUI (   $a_data,
  $a_id,
  $a_call_by_reference 
)

Constructor public.

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

References ilObjectGUI\ilObjectGUI().

{
$this->type = "adm";
$this->ilObjectGUI($a_data,$a_id,$a_call_by_reference, false);
$this->lng->loadLanguageModule("administration");
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::initContactInformationForm ( )

Init contact information form.

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

References $ilSetting, ilObjectGUI\$lng, and ilTextInputGUI\setMaxLength().

Referenced by saveContactInformationObject(), and showContactInformationObject().

{
global $lng, $ilSetting;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
// first name
$ti = new ilTextInputGUI($this->lng->txt("firstname"), "admin_firstname");
$ti->setMaxLength(64);
$ti->setSize(40);
$ti->setRequired(true);
$ti->setValue($ilSetting->get("admin_firstname"));
$this->form->addItem($ti);
// last name
$ti = new ilTextInputGUI($this->lng->txt("lastname"), "admin_lastname");
$ti->setMaxLength(64);
$ti->setSize(40);
$ti->setRequired(true);
$ti->setValue($ilSetting->get("admin_lastname"));
$this->form->addItem($ti);
// title
$ti = new ilTextInputGUI($this->lng->txt("title"), "admin_title");
$ti->setMaxLength(64);
$ti->setSize(40);
$ti->setValue($ilSetting->get("admin_title"));
$this->form->addItem($ti);
// position
$ti = new ilTextInputGUI($this->lng->txt("position"), "admin_position");
$ti->setMaxLength(64);
$ti->setSize(40);
$ti->setValue($ilSetting->get("admin_position"));
$this->form->addItem($ti);
// institution
$ti = new ilTextInputGUI($this->lng->txt("institution"), "admin_institution");
$ti->setMaxLength(200);
$ti->setSize(40);
$ti->setValue($ilSetting->get("admin_institution"));
$this->form->addItem($ti);
// street
$ti = new ilTextInputGUI($this->lng->txt("street"), "admin_street");
$ti->setMaxLength(64);
$ti->setSize(40);
//$ti->setRequired(true);
$ti->setValue($ilSetting->get("admin_street"));
$this->form->addItem($ti);
// zip code
$ti = new ilTextInputGUI($this->lng->txt("zipcode"), "admin_zipcode");
$ti->setMaxLength(10);
$ti->setSize(5);
//$ti->setRequired(true);
$ti->setValue($ilSetting->get("admin_zipcode"));
$this->form->addItem($ti);
// city
$ti = new ilTextInputGUI($this->lng->txt("city"), "admin_city");
$ti->setMaxLength(64);
$ti->setSize(40);
//$ti->setRequired(true);
$ti->setValue($ilSetting->get("admin_city"));
$this->form->addItem($ti);
// country
$ti = new ilTextInputGUI($this->lng->txt("country"), "admin_country");
$ti->setMaxLength(64);
$ti->setSize(40);
//$ti->setRequired(true);
$ti->setValue($ilSetting->get("admin_country"));
$this->form->addItem($ti);
// phone
$ti = new ilTextInputGUI($this->lng->txt("phone"), "admin_phone");
$ti->setMaxLength(64);
$ti->setSize(40);
//$ti->setRequired(true);
$ti->setValue($ilSetting->get("admin_phone"));
$this->form->addItem($ti);
// email
$ti = new ilEmailInputGUI($this->lng->txt("email"), "admin_email");
$ti->setMaxLength(64);
$ti->setSize(40);
$ti->setRequired(true);
$ti->allowRFC822(true);
$ti->setValue($ilSetting->get("admin_email"));
$this->form->addItem($ti);
// feedback recipient
$ti = new ilEmailInputGUI($this->lng->txt("feedback_recipient"), "feedback_recipient");
$ti->setInfo(sprintf($this->lng->txt("feedback_recipient_info"), $this->lng->txt("contact_sysadmin")));
$ti->setMaxLength(64);
$ti->setSize(40);
$ti->setRequired(true);
$ti->allowRFC822(true);
$ti->setValue($ilSetting->get("feedback_recipient"));
$this->form->addItem($ti);
// error recipient
$ti = new ilEmailInputGUI($this->lng->txt("error_recipient"), "error_recipient");
$ti->setMaxLength(64);
$ti->setSize(40);
$ti->allowRFC822(true);
$ti->setValue($ilSetting->get("error_recipient"));
$this->form->addItem($ti);
$this->form->addCommandButton("saveContactInformation", $lng->txt("save"));
$this->form->setTitle($lng->txt("contact_data"));
$this->form->setFormAction($this->ctrl->getFormAction($this));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::initHTTPSForm ( )
private

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

References $ilCtrl, ilObjectGUI\$lng, ilSecuritySettings\_getInstance(), ilCheckboxInputGUI\setChecked(), and setServerInfoSubTabs().

Referenced by saveHTTPSObject(), and showHTTPSObject().

{
global $ilCtrl, $lng;
$this->setServerInfoSubTabs('adm_https');
$lng->loadLanguageModule('ps');
include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
include_once('Services/Form/classes/class.ilPropertyFormGUI.php');
$form = new ilPropertyFormGUI();
$form->setTitle($lng->txt("adm_https"));
$form->setFormAction($ilCtrl->getFormAction($this, 'saveHTTPS'));
$check2 = new ilCheckboxInputGUI($lng->txt('activate_https'),'https_enabled');
$check2->setChecked($security->isHTTPSEnabled() ? 1 : 0);
$check2->setValue(1);
$form->addItem($check2);
// save and cancel commands
$form->addCommandButton('saveHTTPS', $lng->txt('save'));
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::initJavaServerForm ( )

Init java server form.

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

References $ilSetting, ilObjectGUI\$lng, ilFormPropertyGUI\setInfo(), ilNumberInputGUI\setMaxLength(), and ilTextInputGUI\setMaxLength().

Referenced by saveJavaServerObject(), and showJavaServerObject().

{
global $lng, $ilSetting;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
// host
$ti = new ilTextInputGUI($this->lng->txt("java_server_host"), "rpc_server_host");
$ti->setMaxLength(64);
$ti->setSize(32);
$ti->setValue($ilSetting->get("rpc_server_host"));
$this->form->addItem($ti);
// port
$ti = new ilNumberInputGUI($this->lng->txt("java_server_port"), "rpc_server_port");
$ti->setMaxLength(5);
$ti->setSize(5);
$ti->setValue($ilSetting->get("rpc_server_port"));
$this->form->addItem($ti);
// pdf fonts
$pdf = new ilFormSectionHeaderGUI();
$pdf->setTitle($this->lng->txt('rpc_pdf_generation'));
$this->form->addItem($pdf);
$pdf_font = new ilTextInputGUI($this->lng->txt('rpc_pdf_font'), 'rpc_pdf_font');
$pdf_font->setInfo($this->lng->txt('rpc_pdf_font_info'));
$pdf_font->setSize(64);
$pdf_font->setMaxLength(1024);
$pdf_font->setRequired(true);
$pdf_font->setValue(
$ilSetting->get('rpc_pdf_font','Helvetica, unifont'));
$this->form->addItem($pdf_font);
// save and cancel commands
$this->form->addCommandButton("saveJavaServer", $lng->txt("save"));
$this->form->setTitle($lng->txt("java_server"));
$this->form->setDescription($lng->txt("java_server_info").
'<br /><a href="Services/WebServices/RPC/lib/README.txt" target="_blank">'.
$lng->txt("java_server_readme").'</a>');
$this->form->setFormAction($this->ctrl->getFormAction($this));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::initJavaServerIniForm ( )
protected

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

References $GLOBALS, $log, $path, ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilNumberInputGUI\setSize(), and ilNumberInputGUI\setValue().

Referenced by createJavaServerIniObject(), and downloadJavaServerIniObject().

{
include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
$this->form = new ilPropertyFormGUI();
$GLOBALS['lng']->loadLanguageModule('search');
$this->form->setTitle($this->lng->txt('lucene_tbl_create_ini'));
$this->form->setFormAction($this->ctrl->getFormAction($this,'createJavaServerIni'));
$this->form->addCommandButton('downloadJavaServerIni',$this->lng->txt('lucene_download_ini'));
$this->form->addCommandButton('showJavaServer', $this->lng->txt('cancel'));
// Host
$ip = new ilTextInputGUI($this->lng->txt('lucene_host'),'ho');
$ip->setInfo($this->lng->txt('lucene_host_info'));
$ip->setMaxLength(128);
$ip->setSize(32);
$ip->setRequired(true);
$this->form->addItem($ip);
// Port
$port = new ilNumberInputGUI($this->lng->txt('lucene_port'),'po');
$port->setSize(5);
$port->setMinValue(1);
$port->setMaxValue(65535);
$port->setRequired(true);
$this->form->addItem($port);
// Index Path
$path = new ilTextInputGUI($this->lng->txt('lucene_index_path'),'in');
$path->setSize(80);
$path->setMaxLength(1024);
$path->setInfo($this->lng->txt('lucene_index_path_info'));
$path->setRequired(true);
$this->form->addItem($path);
// Logging
$log = new ilTextInputGUI($this->lng->txt('lucene_log'),'lo');
$log->setSize(80);
$log->setMaxLength(1024);
$log->setInfo($this->lng->txt('lucene_log_info'));
$log->setRequired(true);
$this->form->addItem($log);
// Level
$lev = new ilSelectInputGUI($this->lng->txt('lucene_level'),'le');
$lev->setOptions(array(
'DEBUG' => 'DEBUG',
'INFO' => 'INFO',
'WARN' => 'WARN',
'ERROR' => 'ERROR',
'FATAL' => 'FATAL'));
$lev->setValue('INFO');
$lev->setRequired(true);
$this->form->addItem($lev);
// CPU
$cpu = new ilNumberInputGUI($this->lng->txt('lucene_cpu'),'cp');
$cpu->setValue(1);
$cpu->setSize(1);
$cpu->setMaxLength(2);
$cpu->setMinValue(1);
$cpu->setRequired(true);
$this->form->addItem($cpu);
// Max file size
$fs = new ilNumberInputGUI($this->lng->txt('lucene_max_fs'), 'fs');
$fs->setInfo($this->lng->txt('lucene_max_fs_info'));
$fs->setValue(500);
$fs->setSize(4);
$fs->setMaxLength(4);
$fs->setMinValue(1);
$fs->setRequired(true);
$this->form->addItem($fs);
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::initProxyForm ( )
private

Initialize proxy settings form.

public

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

References $ilCtrl, ilObjectGUI\$lng, ilFormPropertyGUI\setInfo(), and setServerInfoSubTabs().

Referenced by saveProxyObject(), and showProxyObject().

{
global $lng, $ilCtrl;
$this->setServerInfoSubTabs('proxy');
include_once('Services/Form/classes/class.ilPropertyFormGUI.php');
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($ilCtrl->getFormAction($this, 'saveProxy'));
// Proxy status
$proxs = new ilCheckboxInputGUI($lng->txt('proxy_status'), 'proxy_status');
$proxs->setInfo($lng->txt('proxy_status_info'));
$proxs->setValue(1);
$this->form->addItem($proxs);
// Proxy availability
$proxa = new ilCustomInputGUI('', 'proxy_availability');
$proxs->addSubItem($proxa);
// Proxy
$prox = new ilTextInputGUI($lng->txt('proxy_host'), 'proxy_host');
$prox->setInfo($lng->txt('proxy_host_info'));
$proxs->addSubItem($prox);
// Proxy Port
$proxp = new ilTextInputGUI($lng->txt('proxy_port'), 'proxy_port');
$proxp->setInfo($lng->txt('proxy_port_info'));
$proxp->setSize(10);
$proxp->setMaxLength(10);
$proxs->addSubItem($proxp);
// save and cancel commands
$this->form->addCommandButton('saveProxy', $lng->txt('save'));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::initServerInfoForm ( )

Init server info form.

Parameters
int$a_modeEdit Mode

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

References $ilSetting, ilObjectGUI\$lng, ILIAS_ABSOLUTE_PATH, and ilNonEditableValueGUI\setValue().

{
global $lng, $ilClientIniFile, $ilSetting;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
// installation name
$ne = new ilNonEditableValueGUI($lng->txt("inst_name"), "");
$ne->setValue($ilClientIniFile->readVariable("client","name"));
$ne->setInfo($ilClientIniFile->readVariable("client","description"));
$this->form->addItem($ne);
// client id
$ne = new ilNonEditableValueGUI($lng->txt("client_id"), "");
$ne->setValue(CLIENT_ID);
$this->form->addItem($ne);
// installation id
$ne = new ilNonEditableValueGUI($lng->txt("inst_id"), "");
$ne->setValue($ilSetting->get("inst_id"));
$this->form->addItem($ne);
// database version
$ne = new ilNonEditableValueGUI($lng->txt("db_version"), "");
$ne->setValue($ilSetting->get("db_version"));
include_once ("./Services/Database/classes/class.ilDBUpdate.php");
$this->form->addItem($ne);
// ilias version
$ne = new ilNonEditableValueGUI($lng->txt("ilias_version"), "");
$ne->setValue($ilSetting->get("ilias_version"));
$this->form->addItem($ne);
// host
$ne = new ilNonEditableValueGUI($lng->txt("host"), "");
$ne->setValue($_SERVER["SERVER_NAME"]);
$this->form->addItem($ne);
// ip & port
$ne = new ilNonEditableValueGUI($lng->txt("ip_address")." & ".$this->lng->txt("port"), "");
$ne->setValue($_SERVER["SERVER_ADDR"].":".$_SERVER["SERVER_PORT"]);
$this->form->addItem($ne);
// server
$ne = new ilNonEditableValueGUI($lng->txt("server_software"), "");
$ne->setValue($_SERVER["SERVER_SOFTWARE"]);
$this->form->addItem($ne);
// http path
$ne = new ilNonEditableValueGUI($lng->txt("http_path"), "");
$ne->setValue(ILIAS_HTTP_PATH);
$this->form->addItem($ne);
// absolute path
$ne = new ilNonEditableValueGUI($lng->txt("absolute_path"), "");
$this->form->addItem($ne);
$not_set = $lng->txt("path_not_set");
// convert
$ne = new ilNonEditableValueGUI($lng->txt("path_to_convert"), "");
$ne->setValue((PATH_TO_CONVERT) ? PATH_TO_CONVERT : $not_set);
$this->form->addItem($ne);
// zip
$ne = new ilNonEditableValueGUI($lng->txt("path_to_zip"), "");
$ne->setValue((PATH_TO_ZIP) ? PATH_TO_ZIP : $not_set);
$this->form->addItem($ne);
// unzip
$ne = new ilNonEditableValueGUI($lng->txt("path_to_unzip"), "");
$ne->setValue((PATH_TO_UNZIP) ? PATH_TO_UNZIP : $not_set);
$this->form->addItem($ne);
// java
$ne = new ilNonEditableValueGUI($lng->txt("path_to_java"), "");
$ne->setValue((PATH_TO_JAVA) ? PATH_TO_JAVA : $not_set);
$this->form->addItem($ne);
// htmldoc
$ne = new ilNonEditableValueGUI($lng->txt("path_to_htmldoc"), "");
$ne->setValue((PATH_TO_HTMLDOC) ? PATH_TO_HTMLDOC : $not_set);
$this->form->addItem($ne);
// mkisofs
$ne = new ilNonEditableValueGUI($lng->txt("path_to_mkisofs"), "");
$ne->setValue((PATH_TO_MKISOFS) ? PATH_TO_MKISOFS : $not_set);
$this->form->addItem($ne);
// latex
$ne = new ilNonEditableValueGUI($lng->txt("url_to_latex"), "");
$ne->setValue((URL_TO_LATEX) ? URL_TO_LATEX : $not_set);
$this->form->addItem($ne);
$this->form->setTitle($lng->txt("server_data"));
$this->form->setFormAction($this->ctrl->getFormAction($this));
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::initWebServicesForm ( )

Init web services form.

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

References $ilSetting, ilObjectGUI\$lng, ilSoapClient\DEFAULT_CONNECT_TIMEOUT, ilFormPropertyGUI\setInfo(), and ilNumberInputGUI\setMinValue().

Referenced by saveWebServicesObject(), and showWebServicesObject().

{
global $lng, $ilSetting;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
// soap administration
$cb = new ilCheckboxInputGUI($this->lng->txt("soap_user_administration"), "soap_user_administration");
$cb->setInfo($this->lng->txt("soap_user_administration_desc"));
if ($ilSetting->get("soap_user_administration"))
{
$cb->setChecked(true);
}
$this->form->addItem($cb);
// wsdl path
$wsdl = new ilTextInputGUI($this->lng->txt('soap_wsdl_path'), 'soap_wsdl_path');
$wsdl->setInfo(sprintf($this->lng->txt('soap_wsdl_path_info'), "<br />'".ILIAS_HTTP_PATH."/webservice/soap/server.php?wsdl'"));
$wsdl->setValue((string)$ilSetting->get('soap_wsdl_path'));
$wsdl->setSize(60);
$wsdl->setMaxLength(255);
$this->form->addItem($wsdl);
// response timeout
$ctime = new ilNumberInputGUI($this->lng->txt('soap_connect_timeout'), 'ctimeout');
$ctime->setMinValue(1);
$ctime->setSize(2);
$ctime->setMaxLength(3);
include_once './Services/WebServices/SOAP/classes/class.ilSoapClient.php';
$ctime->setValue((int) $ilSetting->get('soap_connect_timeout', ilSoapClient::DEFAULT_CONNECT_TIMEOUT));
$ctime->setInfo($this->lng->txt('soap_connect_timeout_info'));
$this->form->addItem($ctime);
$this->form->addCommandButton("saveWebServices", $lng->txt("save"));
$this->form->setTitle($lng->txt("webservices"));
$this->form->setFormAction($this->ctrl->getFormAction($this));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::jumpToCronJobsObject ( )

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

{
// #13010 - this is used for external settings
$this->ctrl->redirectByClass("ilCronManagerGUI", "render");
}
ilObjSystemFolderGUI::printProxyStatus ( )
private

Print proxy settings.

private

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

References ilProxySettings\_getInstance(), ilUtil\getImagePath(), and ilUtil\sendFailure().

Referenced by saveProxyObject(), and showProxyObject().

{
try
{
ilProxySettings::_getInstance()->checkConnection();
$this->form->getItemByPostVar('proxy_availability')->setHTML(
'<img src="'.ilUtil::getImagePath('icon_ok.svg').'" /> '.
$this->lng->txt('proxy_connectable')
);
}
catch(ilProxyException $e)
{
$this->form->getItemByPostVar('proxy_availability')->setHTML(
'<img src="'.ilUtil::getImagePath('icon_not_ok.svg').'" /> '.
$this->lng->txt('proxy_not_connectable')
);
ilUtil::sendFailure($this->lng->txt('proxy_pear_net_socket_error').': '.$e->getMessage());
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::removeTranslationObject ( )

removes a translation form & save post vars to session

public

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

References $_GET.

{
$this->ctrl->setParameter($this, "entry", $_GET["entry"]);
$this->ctrl->setParameter($this, "mode", "session");
$this->ctrl->redirect($this, "changeHeaderTitle");
}
ilObjSystemFolderGUI::saveBasicSettingsObject ( )

Save basic settings form.

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

References $_POST, $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilUtil\sendSuccess(), setGeneralSettingsSubTabs(), ilUserUtil\setStartingPoint(), and ilUserUtil\togglePersonalStartingPoint().

{
global $tpl, $lng, $ilCtrl, $ilSetting, $rbacsystem;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
$this->initBasicSettingsForm();
if ($this->form->checkInput())
{
$ilSetting->set("short_inst_name", $_POST["short_inst_name"]);
$ilSetting->set("pub_section", $_POST["pub_section"]);
$global_profiles = ($_POST["pub_section"])
? (int)$_POST['enable_global_profiles']
: 0;
$ilSetting->set('enable_global_profiles', $global_profiles);
$ilSetting->set("open_google", $_POST["open_google"]);
$ilSetting->set("locale", $_POST["locale"]);
include_once "Services/User/classes/class.ilUserUtil.php";
ilUserUtil::setStartingPoint($this->form->getInput('usr_start'), $this->form->getInput('usr_start_ref_id'));
ilUserUtil::togglePersonalStartingPoint($this->form->getInput('usr_start_pers'));
ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
$ilCtrl->redirect($this, "showBasicSettings");
}
$this->setGeneralSettingsSubTabs("basic_settings");
$this->form->setValuesByPost();
$tpl->setContent($this->form->getHtml());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::saveBenchSettingsObject ( )

Save benchmark settings.

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

References $_POST, $ilBench, ilUtil\sendSuccess(), and ilUtil\stripSlashes().

Referenced by clearBenchObject().

{
global $ilBench;
if ($_POST["enable_db_bench"])
{
$ilBench->enableDbBench(true, ilUtil::stripSlashes($_POST["db_bench_user"]));
}
else
{
$ilBench->enableDbBench(false);
}
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
$this->ctrl->redirect($this, "benchmark");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::saveCheckCronObject ( )
private

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

References $_POST, $ilSetting, and checkObject().

{
global $ilSetting;
$systemcheck_cron = ($_POST['cronjob'] ? 1 : 0);
$ilSetting->set('systemcheck_cron',$systemcheck_cron);
unset($_POST['mode']);
return $this->checkObject();
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::saveCheckParamsObject ( )
private

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

References $_POST, checkObject(), and writeCheckParams().

{
$this->writeCheckParams();
unset($_POST['mode']);
return $this->checkObject();
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::saveContactInformationObject ( )

Save contact information form.

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

References $_POST, $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$tpl, initContactInformationForm(), ilUtil\sendSuccess(), and setGeneralSettingsSubTabs().

{
global $tpl, $lng, $ilCtrl, $ilSetting, $rbacsystem;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
if ($this->form->checkInput())
{
$fs = array("admin_firstname", "admin_lastname", "admin_title", "admin_position",
"admin_institution", "admin_street", "admin_zipcode", "admin_city",
"admin_country", "admin_phone", "admin_email",
"feedback_recipient", "error_recipient");
foreach ($fs as $f)
{
$ilSetting->set($f, $_POST[$f]);
}
ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
$ilCtrl->redirect($this, "showContactInformation");
}
else
{
$this->setGeneralSettingsSubTabs("contact_data");
$this->form->setValuesByPost();
$tpl->setContent($this->form->getHtml());
}
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::saveHeaderTitleObject ( )

save header title

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

References $_POST, ilObjectGUI\$data, ilUtil\sendSuccess(), and ilUtil\stripSlashes().

{
// default language set?
if (!isset($data["default_language"]))
{
$this->ilias->raiseError($this->lng->txt("msg_no_default_language"),$this->ilias->error_obj->MESSAGE);
}
// prepare array fro further checks
foreach ($data["Fobject"] as $key => $val)
{
$langs[$key] = $val["lang"];
}
$langs = array_count_values($langs);
// all languages set?
if (array_key_exists("",$langs))
{
$this->ilias->raiseError($this->lng->txt("msg_no_language_selected"),$this->ilias->error_obj->MESSAGE);
}
// no single language is selected more than once?
if (array_sum($langs) > count($langs))
{
$this->ilias->raiseError($this->lng->txt("msg_multi_language_selected"),$this->ilias->error_obj->MESSAGE);
}
// copy default translation to variable for object data entry
$_POST["Fobject"]["title"] = $_POST["Fobject"][$_POST["default_language"]]["title"];
$_POST["Fobject"]["desc"] = $_POST["Fobject"][$_POST["default_language"]]["desc"];
// first delete all translation entries...
$this->object->removeHeaderTitleTranslations();
// ...and write new translations to object_translation
foreach ($data["Fobject"] as $key => $val)
{
if ($key == $data["default_language"])
{
$default = 1;
}
else
{
$default = 0;
}
$this->object->addHeaderTitleTranslation(ilUtil::stripSlashes($val["title"]),ilUtil::stripSlashes($val["desc"]),$val["lang"],$default);
}
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"),true);
$this->ctrl->redirect($this);
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::saveHeaderTitlesObject ( )

Save header titles.

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

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilUtil\sendFailure(), ilUtil\sendSuccess(), showHeaderTitleObject(), and ilUtil\stripSlashes().

Referenced by deleteHeaderTitlesObject().

{
global $ilCtrl, $lng, $rbacsystem;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
// var_dump($_POST);
// default language set?
if (!isset($_POST["default"]) && count($_POST["lang"]) > 0)
{
ilUtil::sendFailure($lng->txt("msg_no_default_language"));
return $this->showHeaderTitleObject(true);
}
// all languages set?
if (array_key_exists("",$_POST["lang"]))
{
ilUtil::sendFailure($lng->txt("msg_no_language_selected"));
return $this->showHeaderTitleObject(true);
}
// no single language is selected more than once?
if (count(array_unique($_POST["lang"])) < count($_POST["lang"]))
{
ilUtil::sendFailure($lng->txt("msg_multi_language_selected"));
return $this->showHeaderTitleObject(true);
}
// save the stuff
$this->object->removeHeaderTitleTranslations();
foreach($_POST["title"] as $k => $v)
{
$this->object->addHeaderTitleTranslation(
($_POST["default"] == $k));
}
ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
$ilCtrl->redirect($this, "showHeaderTitle");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::saveHTTPSObject ( )

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

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilSecuritySettings\_getInstance(), initHTTPSForm(), and ilUtil\sendSuccess().

{
global $tpl, $lng, $ilCtrl;
$form = $this->initHTTPSForm();
if($form->checkInput())
{
// ilias https handling settings
$security->setHTTPSEnabled($_POST["https_enabled"]);
if($security->validate($form))
{
$security->save();
ilUtil::sendSuccess($lng->txt('saved_successfully'), true);
$ilCtrl->redirect($this, "showHTTPS");
}
}
$form->setValuesByPost();
$tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::saveJavaServerObject ( )

Save java server form.

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

References $_POST, $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$tpl, initJavaServerForm(), ilUtil\sendSuccess(), setGeneralSettingsSubTabs(), and ilUtil\stripSlashes().

{
global $tpl, $lng, $ilCtrl, $ilSetting, $rbacsystem;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
if ($this->form->checkInput())
{
$ilSetting->set("rpc_server_host", trim($_POST["rpc_server_host"]));
$ilSetting->set("rpc_server_port", trim($_POST["rpc_server_port"]));
$ilSetting->set('rpc_pdf_font',ilUtil::stripSlashes($_POST['rpc_pdf_font']));
ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
$ilCtrl->redirect($this, "showJavaServer");
// TODO check settings, ping server
}
else
{
$this->setGeneralSettingsSubTabs("java_server");
$this->form->setValuesByPost();
$tpl->setContent($this->form->getHtml());
}
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::saveProxyObject ( )

Save proxy settings.

public

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

References $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilProxySettings\_getInstance(), initProxyForm(), printProxyStatus(), ilUtil\sendFailure(), and ilUtil\sendSuccess().

{
global $tpl, $ilAccess, $ilSetting, $lng;
if(!$ilAccess->checkAccess('write', '', $this->object->getRefId()))
{
$this->ilias->raiseError($lng->txt('permission_denied'), $this->ilias->error_obj->MESSAGE);
}
require_once './Services/Http/classes/class.ilProxySettings.php';
$this->initProxyForm();
$isFormValid = $this->form->checkInput();
ilProxySettings::_getInstance()->isActive((int)$this->form->getInput('proxy_status'))
->setHost(trim($this->form->getInput('proxy_host')))
->setPort(trim($this->form->getInput('proxy_port')));
if($isFormValid)
{
{
if(!strlen(ilProxySettings::_getInstance()->getHost()))
{
$isFormValid = false;
$this->form->getItemByPostVar('proxy_host')->setAlert($lng->txt('msg_input_is_required'));
}
if(!strlen(ilProxySettings::_getInstance()->getPort()))
{
$isFormValid = false;
$this->form->getItemByPostVar('proxy_port')->setAlert($lng->txt('msg_input_is_required'));
}
if(!preg_match('/[0-9]{1,}/', ilProxySettings::_getInstance()->getPort()) ||
ilProxySettings::_getInstance()->getPort() < 0 ||
ilProxySettings::_getInstance()->getPort() > 65535)
{
$isFormValid = false;
$this->form->getItemByPostVar('proxy_port')->setAlert($lng->txt('proxy_port_numeric'));
}
}
if($isFormValid)
{
ilUtil::sendSuccess($lng->txt('saved_successfully'));
{
$this->printProxyStatus();
}
}
else
{
ilUtil::sendFailure($lng->txt('form_input_not_valid'));
}
}
$this->form->setValuesByPost();
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::saveWebServicesObject ( )

Save web services form.

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

References $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$tpl, initWebServicesForm(), ilUtil\sendSuccess(), and setGeneralSettingsSubTabs().

{
global $tpl, $lng, $ilCtrl, $ilSetting, $rbacsystem;
if (!$rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
if ($this->form->checkInput())
{
$ilSetting->set('soap_user_administration', $this->form->getInput('soap_user_administration'));
$ilSetting->set('soap_wsdl_path', trim($this->form->getInput('soap_wsdl_path')));
$ilSetting->set('soap_connect_timeout',$this->form->getInput('ctimeout'));
ilUtil::sendSuccess($lng->txt('msg_obj_modified'), true);
$ilCtrl->redirect($this, 'showWebServices');
}
else
{
$this->setGeneralSettingsSubTabs("webservices");
$this->form->setValuesByPost();
$tpl->setContent($this->form->getHtml());
}
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::setGeneralSettingsSubTabs (   $a_activate)

Set sub tabs for general settings.

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

References $ilCtrl.

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

{
global $ilTabs, $ilCtrl;
$ilTabs->addSubTabTarget("basic_settings", $ilCtrl->getLinkTarget($this, "showBasicSettings"));
$ilTabs->addSubTabTarget("header_title", $ilCtrl->getLinkTarget($this, "showHeaderTitle"));
$ilTabs->addSubTabTarget("contact_data", $ilCtrl->getLinkTarget($this, "showContactInformation"));
$ilTabs->addSubTabTarget("adm_imprint", $ilCtrl->getLinkTargetByClass("ilimprintgui", "preview"));
$ilTabs->setSubTabActive($a_activate);
$ilTabs->setTabActive("general_settings");
}

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::setServerInfoSubTabs (   $a_activate)

Set sub tabs for server info.

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

References $ilCtrl.

Referenced by initHTTPSForm(), initProxyForm(), showJavaServerObject(), and showWebServicesObject().

{
global $ilTabs, $ilCtrl, $rbacsystem;
$ilTabs->addSubTabTarget("server_data", $ilCtrl->getLinkTarget($this, "showServerInfo"));
if ($rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$ilTabs->addSubTabTarget("adm_https", $ilCtrl->getLinkTarget($this, "showHTTPS"));
$ilTabs->addSubTabTarget("proxy", $ilCtrl->getLinkTarget($this, "showProxy"));
$ilTabs->addSubTabTarget("java_server", $ilCtrl->getLinkTarget($this, "showJavaServer"));
$ilTabs->addSubTabTarget("webservices", $ilCtrl->getLinkTarget($this, "showWebServices"));
}
$ilTabs->setSubTabActive($a_activate);
$ilTabs->setTabActive("server");
}

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::setSystemCheckSubTabs (   $a_activate)

Set sub tabs for general settings.

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

References $ilCtrl.

Referenced by checkObject(), and executeCommand().

{
global $ilTabs, $ilCtrl;
$ilTabs->addSubTab("system_check_sub", $this->lng->txt("system_check"),
$ilCtrl->getLinkTarget($this, "check"));
$ilTabs->addSubTab("no_owner", $this->lng->txt("system_check_no_owner"),
$ilCtrl->getLinkTargetByClass("ilObjectOwnershipManagementGUI"));
$ilTabs->setSubTabActive($a_activate);
$ilTabs->setTabActive("system_check");
}

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::showBasicSettingsObject ( )

Show basic settings.

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

References ilObjectGUI\$tpl, and setGeneralSettingsSubTabs().

Referenced by viewObject().

{
global $tpl;
$this->initBasicSettingsForm();
$this->setGeneralSettingsSubTabs("basic_settings");
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::showContactInformationObject ( )

Show contact information.

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

References ilObjectGUI\$tpl, initContactInformationForm(), and setGeneralSettingsSubTabs().

{
global $tpl;
$this->setGeneralSettingsSubTabs("contact_data");
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showDbBenchByFirstTableObject ( )

Show db benchmark results.

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

References benchmarkSubTabs(), and showDbBenchResults().

{
$this->benchmarkSubTabs("by_first_table");
$this->showDbBenchResults("by_first_table");
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showDbBenchChronologicalObject ( )

Show db benchmark results.

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

References benchmarkSubTabs(), and showDbBenchResults().

{
$this->benchmarkSubTabs("chronological");
$this->showDbBenchResults("chronological");
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showDbBenchResults (   $a_mode)

Show Db Benchmark Results.

Parameters
stringmode

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

References $ilBench, ilObjectGUI\$lng, and ilObjectGUI\$tpl.

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

{
global $ilBench, $lng, $tpl;
$rec = $ilBench->getDbBenchRecords();
include_once("./Modules/SystemFolder/classes/class.ilBenchmarkTableGUI.php");
$table = new ilBenchmarkTableGUI($this, "benchmark", $rec, $a_mode);
$tpl->setContent($table->getHTML());
}

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::showDbBenchSlowestFirstObject ( )

Show db benchmark results.

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

References benchmarkSubTabs(), and showDbBenchResults().

{
$this->benchmarkSubTabs("slowest_first");
$this->showDbBenchResults("slowest_first");
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showDbBenchSortedBySqlObject ( )

Show db benchmark results.

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

References benchmarkSubTabs(), and showDbBenchResults().

{
$this->benchmarkSubTabs("sorted_by_sql");
$this->showDbBenchResults("sorted_by_sql");
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showHeaderTitleObject (   $a_get_post_values = false)

Show header title.

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

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

Referenced by addHeaderTitleObject(), and saveHeaderTitlesObject().

{
global $tpl;
$this->setGeneralSettingsSubTabs("header_title");
include_once("./Services/Object/classes/class.ilObjectTranslationTableGUI.php");
$table = new ilObjectTranslationTableGUI($this, "showHeaderTitle", false);
if ($a_get_post_values)
{
$vals = array();
foreach($_POST["title"] as $k => $v)
{
$vals[] = array("title" => $v,
"desc" => $_POST["desc"][$k],
"lang" => $_POST["lang"][$k],
"default" => ($_POST["default"] == $k));
}
$table->setData($vals);
}
else
{
$data = $this->object->getHeaderTitleTranslations();
if (is_array($data["Fobject"]))
{
foreach($data["Fobject"] as $k => $v)
{
if ($k == $data["default_language"])
{
$data["Fobject"][$k]["default"] = true;
}
else
{
$data["Fobject"][$k]["default"] = false;
}
}
}
else
{
$data["Fobject"] = array();
}
$table->setData($data["Fobject"]);
}
$tpl->setContent($table->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::showHTTPSObject ( )

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

References ilObjectGUI\$tpl, and initHTTPSForm().

{
global $tpl, $ilAccess;
if(!$ilAccess->checkAccess('write', '', $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt('permission_denied'), $this->ilias->error_obj->MESSAGE);
}
$form = $this->initHTTPSForm();
$tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showJavaServerObject ( )

Show Java Server Settings.

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

References $GLOBALS, ilObjectGUI\$tpl, initJavaServerForm(), and setServerInfoSubTabs().

{
global $tpl;
$tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.java_settings.html','Modules/SystemFolder');
$GLOBALS['lng']->loadLanguageModule('search');
include_once './Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
$toolbar = new ilToolbarGUI();
$toolbar->addButton($this->lng->txt('lucene_create_ini'),
$this->ctrl->getLinkTarget($this,'createJavaServerIni'));
$tpl->setVariable('ACTION_BUTTONS',$toolbar->getHTML());
$this->setServerInfoSubTabs("java_server");
$tpl->setVariable('SETTINGS_TABLE',$this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showPHPInfoObject ( )

Show PHP Information.

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

References exit.

{
phpinfo();
}
ilObjSystemFolderGUI::showProxyObject ( )

Show proxy settings.

public

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

References $ilSetting, ilObjectGUI\$tpl, ilProxySettings\_getInstance(), initProxyForm(), and printProxyStatus().

{
global $tpl, $ilAccess, $ilSetting;
if(!$ilAccess->checkAccess('write', '', $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt('permission_denied'), $this->ilias->error_obj->MESSAGE);
}
require_once './Services/Http/classes/class.ilProxySettings.php';
$this->initProxyForm();
$this->form->setValuesByArray(array(
'proxy_status' => ilProxySettings::_getInstance()->isActive(),
'proxy_host' => ilProxySettings::_getInstance()->getHost(),
'proxy_port' => ilProxySettings::_getInstance()->getPort()
));
{
$this->printProxyStatus();
}
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showVcsInformationObject ( )
protected

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

References ilUtil\sendInfo().

{
$vc_info = array();
require_once 'Services/Administration/classes/class.ilSubversionInformation.php';
require_once 'Services/Administration/classes/class.ilGitInformation.php';
foreach(array(new ilSubversionInformation(), new ilGitInformation()) as $vc)
{
$html = $vc->getInformationAsHtml();
if($html)
{
$vc_info[] = $html;
}
}
if($vc_info)
{
ilUtil::sendInfo(implode("<br />", $vc_info));
}
else
{
ilUtil::sendInfo($this->lng->txt('vc_information_not_determined'));
}
$this->showServerInfoObject();
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::showWebServicesObject ( )

Show Web Services.

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

References ilObjectGUI\$tpl, initWebServicesForm(), and setServerInfoSubTabs().

{
global $tpl;
$this->setServerInfoSubTabs("webservices");
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::startValidator (   $a_mode,
  $a_log 
)

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

Referenced by checkObject().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
$logging = ($a_log) ? true : false;
include_once "./Services/Repository/classes/class.ilValidator.php";
$validator = new ilValidator($logging);
$validator->setMode("all",false);
$modes = array();
foreach ($a_mode as $mode => $value)
{
$validator->setMode($mode,(bool) $value);
$modes[] = $mode.'='.$value;
}
$scan_log = $validator->validate();
$mode = $this->lng->txt("scan_modes").": ".implode(', ',$modes);
// output
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.adm_scan.html",
"Modules/SystemFolder");
$this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_TITLE", $this->lng->txt("scanning_system"));
$this->tpl->setVariable("COLSPAN", 3);
$this->tpl->setVariable("TXT_SCAN_LOG", $scan_log);
$this->tpl->setVariable("TXT_MODE", $mode);
if ($logging === true)
{
$this->tpl->setVariable("TXT_VIEW_LOG", $this->lng->txt("view_log"));
}
$this->tpl->setVariable("TXT_DONE", $this->lng->txt("done"));
$validator->writeScanLogLine($mode);
}

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::switchBenchModuleObject ( )

save benchmark settings

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

References $_POST, and $ilBench.

{
global $ilBench;
$this->ctrl->setParameter($this,'cur_mod',$_POST['module']);
$this->ctrl->redirect($this, "benchmark");
}
ilObjSystemFolderGUI::viewObject ( )

show admin subpanels and basic settings form

public

Reimplemented from ilObjectGUI.

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

References showBasicSettingsObject().

{
global $ilAccess;
if ($ilAccess->checkAccess("write", "", $this->object->getRefId()))
{
return $this->showBasicSettingsObject();
}
return $this->showServerInfoObject();
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::viewScanLog ( )

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

Referenced by viewScanLogObject().

{
include_once "./Services/Repository/classes/class.ilValidator.php";
$validator = new IlValidator();
$scan_log =& $validator->readScanLog();
if (is_array($scan_log))
{
$scan_log = '<pre>'.implode("",$scan_log).'</pre>';
$this->tpl->setVariable("ADM_CONTENT", $scan_log);
}
else
{
$scan_log = "no scanlog found.";
}
// output
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.adm_scan.html",
"Modules/SystemFolder");
$this->tpl->setVariable("TXT_TITLE", $this->lng->txt("scan_details"));
$this->tpl->setVariable("COLSPAN", 3);
$this->tpl->setVariable("TXT_SCAN_LOG", $scan_log);
$this->tpl->setVariable("TXT_DONE", $this->lng->txt("done"));
}

+ Here is the caller graph for this function:

ilObjSystemFolderGUI::viewScanLogObject ( )

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

References viewScanLog().

{
return $this->viewScanLog();
}

+ Here is the call graph for this function:

ilObjSystemFolderGUI::writeCheckParams ( )
private

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

References $_POST, and $ilUser.

Referenced by checkObject(), and saveCheckParamsObject().

{
include_once "./Services/Repository/classes/class.ilValidator.php";
$validator = new ilValidator();
$modes = $validator->getPossibleModes();
$prefs = array();
foreach($modes as $mode)
{
if( isset($_POST['mode'][$mode]) ) $value = (int)$_POST['mode'][$mode];
else $value = 0;
$prefs[ 'systemcheck_mode_'.$mode ] = $value;
}
if( isset($_POST['log_scan']) ) $value = (int)$_POST['log_scan'];
else $value = 0;
$prefs['systemcheck_log_scan'] = $value;
global $ilUser;
foreach($prefs as $key => $val)
{
$ilUser->writePref($key,$val);
}
}

+ Here is the caller graph for this function:

Field Documentation

ilObjSystemFolderGUI::$type

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


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