35 public function addClient(
string $client_directory): bool
40 public function end(): void
55 $this->
xmlSetDtdDef(
"<!DOCTYPE Installation PUBLIC \"-//ILIAS//DTD InstallationInfo//EN\" \"" . $httpPath .
"/components/ILIAS/Export/xml/ilias_installation_info_5_3.dtd\">");
76 $ini_file =
"./" . $client_directory .
"/client.ini.php";
80 $ilClientIniFile =
new ilIniFile($ini_file);
81 $ilClientIniFile->read();
82 if ($ilClientIniFile->ERROR !==
"") {
85 $client_id = $ilClientIniFile->readVariable(
'client',
'name');
86 if ($ilClientIniFile->variableExists(
'client',
'expose')) {
87 $client_expose = $ilClientIniFile->readVariable(
'client',
'expose');
88 if ($client_expose ===
"0") {
95 $ilClientIniFile->readVariable(
"db",
"type")
97 $ilDB->initFromIniFile($ilClientIniFile);
98 if (
$ilDB->connect(
true)) {
100 $DIC[
'ilDB'] =
$ilDB;
104 unset($DIC[
"ilSetting"]);
108 define(
"IL_INST_ID", (
int) $settings->get(
"inst_id",
'0'));
113 "inst_id" => $settings->get(
"inst_id"),
114 "id" => basename($client_directory),
115 'enabled' => $ilClientIniFile->readVariable(
"client",
"access") ?
"TRUE" :
"FALSE",
116 "default_lang" => $ilClientIniFile->readVariable(
"language",
"default")
129 array(
"key" =>
"default_client"),
130 $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.
xmlHeader()
Writes xml header.
addClient(string $client_directory)
setSettings(array $settings)
static buildHTTPPath(bool $use_module_depending_path=true)
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.