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_client_3_10.dtd\">");
89 $auth_mode_names = array();
90 foreach ($auth_modes as $mode) {
94 $skin_styles = array();
96 include_once(
"./Services/Style/classes/class.ilObjStyleSettings.php");
97 $templates = $styleDefinition->getAllTemplates();
99 if (is_array($templates))
102 foreach($templates as $template)
106 $styleDef->startParsing();
107 $styles = $styleDef->getStyles();
109 foreach($styles as $style)
115 $skin_styles [] = $template[
"id"].
":".$style[
"id"];
120 include_once(
'Services/Calendar/classes/class.ilTimeZone.php');
125 "inst_id" => $setting->get(
"inst_id"),
126 "id" => $setting->clientid,
127 "enabled" => $setting->access == 1 ?
"TRUE" :
"FALSE",
128 "default_lang" => $setting->language,
131 $this->
xmlElement (
"Name", null, $setting->get(
"inst_name"));
132 $this->
xmlElement (
"Description", null, $setting->description);
133 $this->
xmlElement (
"Institution", null, $setting->get(
"inst_institution"));
135 $this->
xmlElement (
"Firstname", null, $setting->get(
"admin_firstname"));
136 $this->
xmlElement (
"Lastname", null, $setting->get(
"admin_lastname"));
137 $this->
xmlElement (
"Title", null, $setting->get(
"admin_title"));
138 $this->
xmlElement (
"Institution", null, $setting->get(
"admin_institution"));
139 $this->
xmlElement (
"Position", null, $setting->get(
"admin_position"));
140 $this->
xmlElement (
"Email", null, $setting->get(
"admin_email"));
141 $this->
xmlElement (
"Street ", null, $setting->get(
"admin_street"));
142 $this->
xmlElement (
"ZipCode ", null, $setting->get(
"admin_zipcode"));
143 $this->
xmlElement (
"City", null, $setting->get(
"admin_city"));
144 $this->
xmlElement (
"Country", null, $setting->get(
"admin_country"));
145 $this->
xmlElement (
"Phone", null, $setting->get(
"admin_phone"));
148 $this->
xmlElement(
"Setting", array(
"key" =>
"error_recipient"), $setting->get(
"error_recipient"));
149 $this->
xmlElement(
"Setting", array(
"key" =>
"feedback_recipient"), $setting->get(
"feedback_recipient"));
150 $this->
xmlElement(
"Setting", array(
"key" =>
"session_expiration"), $setting->session);
151 $this->
xmlElement(
"Setting", array(
"key" =>
"soap_enabled"), $setting->get(
"soap_user_administration"));
152 $this->
xmlElement(
"Setting", array(
"key" =>
"authentication_methods"), join(
",", $auth_mode_names));
153 $this->
xmlElement(
"Setting", array(
"key" =>
"authentication_default_method"), $auth_mode_default);
154 $this->
xmlElement(
"Setting", array(
"key" =>
"skins"), join(
",", $skin_styles));
155 $this->
xmlElement(
"Setting", array(
"key" =>
"default_skin"), $setting->default_skin_style);
157 $this->
xmlElement(
"Setting", array(
"key" =>
"default_hits_per_page"), $setting->default_hits_per_page);
158 $this->
xmlElement(
"Setting", array(
"key" =>
"default_show_users_online"), $setting->default_show_users_online);
161 if ($this->exportAdvMDDefs)
164 include_once
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php';
165 include_once
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordXMLWriter.php';
167 $record_ids = array();
170 foreach($record_types as
$type) {
172 foreach ($records as $record){
173 $record_ids [] = $record->getRecordId();
176 $record_ids = array_unique($record_ids);
179 if (count($record_ids) > 0)
181 foreach($record_ids as $record_id)
183 $record_obj = ilAdvancedMDRecord::_getInstanceByrecordId($record_id);
184 $record_obj->toXML($this);
187 $this->
xmlEndTag(
'AdvancedMetaDataRecords');
190 if ($this->exportUDFDefs)
193 include_once (
"./Services/User/classes/class.ilUserDefinedFields.php");
195 $udf_data->addToXML($this);
205 $this->
xmlElement(
"Setting", array(
"key" =>
"default_client"),
$GLOBALS[
'ilIliasIniFile']->readVariable(
"clients",
"default"));
217 $this->exportAdvMDDefs = $value ?
true :
false;
228 $this->exportUDFDefs = $value ?
true:
false;