5 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
23 public function addClient(
string $client_directory) : bool
28 public function end() : void
43 $this->
xmlSetDtdDef(
"<!DOCTYPE Installation PUBLIC \"-//ILIAS//DTD InstallationInfo//EN\" \"" . $httpPath .
"/xml/ilias_installation_info_5_3.dtd\">");
64 $ini_file =
"./" . $client_directory .
"/client.ini.php";
67 require_once(
"./Services/Init/classes/class.ilIniFile.php");
69 $ilClientIniFile =
new ilIniFile($ini_file);
70 $ilClientIniFile->read();
71 if ($ilClientIniFile->ERROR !==
"") {
74 $client_id = $ilClientIniFile->readVariable(
'client',
'name');
75 if ($ilClientIniFile->variableExists(
'client',
'expose')) {
76 $client_expose = $ilClientIniFile->readVariable(
'client',
'expose');
77 if ($client_expose ===
"0") {
84 $ilClientIniFile->readVariable(
"db",
"type")
86 $ilDB->initFromIniFile($ilClientIniFile);
87 if (
$ilDB->connect(
true)) {
91 require_once(
"Services/Administration/classes/class.ilSetting.php");
94 unset($DIC[
"ilSetting"]);
98 if (!defined(
"IL_INST_ID")) {
99 define(
"IL_INST_ID", (
int)$settings->get(
"inst_id",
'0'));
105 "inst_id" => $settings->get(
"inst_id"),
106 "id" => basename($client_directory),
107 'enabled' => $ilClientIniFile->readVariable(
"client",
"access") ?
"TRUE" :
"FALSE",
108 "default_lang" => $ilClientIniFile->readVariable(
"language",
"default")
122 array(
"key" =>
"default_client"),
123 $GLOBALS[
'DIC'][
'ilIliasIniFile']->readVariable(
"clients",
"default")
buildClient(string $client_directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlSetGenCmt(string $genCmt)
Sets generated comment.
static getWrapper(string $a_type)
xmlEndTag(string $tag)
Writes an endtag.
xmlSetDtdDef(string $dtdDef)
Sets dtd definition.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
xmlHeader()
Writes xml header.
addClient(string $client_directory)
setSettings(array $settings)
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
xmlDumpMem(bool $format=true)
Returns xml document from memory.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...