6 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
31 $this->settings = $settings;
49 public function end() {
64 $this->
xmlSetDtdDef(
"<!DOCTYPE Installation PUBLIC \"-//ILIAS//DTD Group//EN\" \"".$httpPath .
"/xml/ilias_installation_info_4_3.dtd\">");
90 $auth_mode_names = array();
91 foreach ($auth_modes as $mode) {
95 $skin_styles = array();
96 include_once(
"./Services/Style/classes/class.ilStyleDefinition.php");
98 include_once(
"./Services/Style/classes/class.ilObjStyleSettings.php");
99 $templates = $styleDefinition->getAllTemplates();
101 if (is_array($templates))
104 foreach($templates as $template)
108 $styleDef->startParsing();
109 $styles = $styleDef->getStyles();
111 foreach($styles as $style)
117 $skin_styles [] = $template[
"id"].
":".$style[
"id"];
122 include_once(
'Services/Calendar/classes/class.ilTimeZone.php');
127 "inst_id" => $setting->get(
"inst_id"),
128 "id" => $setting->clientid,
129 "enabled" => $setting->access == 1 ?
"TRUE" :
"FALSE",
130 "default_lang" => $setting->language,
141 $this->
xmlElement (
"Name", null, $setting->get(
"inst_name"));
142 $this->
xmlElement (
"Description", null, $setting->description);
143 $this->
xmlElement (
"Institution", null, $setting->get(
"inst_institution"));
158 $this->
xmlElement(
"Setting", array(
"key" =>
"error_recipient"), $setting->get(
"error_recipient"));
159 $this->
xmlElement(
"Setting", array(
"key" =>
"feedback_recipient"), $setting->get(
"feedback_recipient"));
160 $this->
xmlElement(
"Setting", array(
"key" =>
"session_expiration"), $setting->session);
161 $this->
xmlElement(
"Setting", array(
"key" =>
"soap_enabled"), $setting->get(
"soap_user_administration"));
162 $this->
xmlElement(
"Setting", array(
"key" =>
"authentication_methods"), join(
",", $auth_mode_names));
163 $this->
xmlElement(
"Setting", array(
"key" =>
"authentication_default_method"), $auth_mode_default);
164 $this->
xmlElement(
"Setting", array(
"key" =>
"skins"), join(
",", $skin_styles));
165 $this->
xmlElement(
"Setting", array(
"key" =>
"default_skin"), $setting->default_skin_style);
167 $this->
xmlElement(
"Setting", array(
"key" =>
"default_hits_per_page"), $setting->default_hits_per_page);
168 $this->
xmlElement(
"Setting", array(
"key" =>
"default_show_users_online"), $setting->default_show_users_online);
171 if ($this->exportAdvMDDefs)
174 include_once
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php';
175 include_once
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordXMLWriter.php';
177 $record_ids = array();
180 foreach($record_types as $type) {
182 foreach ($records as $record){
183 $record_ids [] = $record->getRecordId();
186 $record_ids = array_unique($record_ids);
189 if (count($record_ids) > 0)
191 foreach($record_ids as $record_id)
193 $record_obj = ilAdvancedMDRecord::_getInstanceByrecordId($record_id);
194 $record_obj->toXML($this);
197 $this->
xmlEndTag(
'AdvancedMetaDataRecords');
200 if ($this->exportUDFDefs)
203 include_once (
"./Services/User/classes/class.ilUserDefinedFields.php");
205 $udf_data->addToXML($this);
215 $this->
xmlElement(
"Setting", array(
"key" =>
"default_client"),
$GLOBALS[
'ilIliasIniFile']->readVariable(
"clients",
"default"));
216 #$this->xmlElement("Setting", array("key" => "post_max_size"), ilSoapAdministration::return_bytes(ini_get("post_max_size")));
217 #$this->xmlElement("Setting", array("key" => "upload_max_filesize"), ilSoapAdministration::return_bytes(ini_get("upload_max_filesize")));
227 $this->exportAdvMDDefs = $value ?
true :
false;
238 $this->exportUDFDefs = $value ?
true:
false;