6 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
22 parent::__construct();
49 public function end() {
64 $this->
xmlSetDtdDef(
"<!DOCTYPE Installation PUBLIC \"-//ILIAS//DTD Group//EN\" \"".$httpPath .
"/xml/ilias_client_3_10.dtd\">");
89 $skin_styles =
array();
90 include_once(
"./Services/Style/System/classes/class.ilStyleDefinition.php");
91 $skins = ilStyleDefinition::getAllSkins();
96 foreach($skins as $skin)
98 foreach($skin->getStyles() as
$style)
100 include_once(
"./Services/Style/System/classes/class.ilSystemStyleSettings.php");
105 $skin_styles [] = $skin->getId().
":".
$style->getId();
111 include_once(
'Services/Calendar/classes/class.ilTimeZone.php');
116 "inst_id" => $setting->get(
"inst_id"),
117 "id" => $setting->clientid,
118 "enabled" => $setting->access == 1 ?
"TRUE" :
"FALSE",
119 "default_lang" => $setting->language,
133 $auth_mode_names =
array();
134 foreach ($auth_modes as $mode) {
139 $this->
xmlElement (
"Name", null, $setting->get(
"inst_name"));
140 $this->
xmlElement (
"Description", null, $setting->description);
141 $this->
xmlElement (
"Institution", null, $setting->get(
"inst_institution"));
143 $this->
xmlElement (
"Firstname", null, $setting->get(
"admin_firstname"));
144 $this->
xmlElement (
"Lastname", null, $setting->get(
"admin_lastname"));
145 $this->
xmlElement (
"Title", null, $setting->get(
"admin_title"));
146 $this->
xmlElement (
"Institution", null, $setting->get(
"admin_institution"));
147 $this->
xmlElement (
"Position", null, $setting->get(
"admin_position"));
148 $this->
xmlElement (
"Email", null, $setting->get(
"admin_email"));
149 $this->
xmlElement (
"Street ", null, $setting->get(
"admin_street"));
150 $this->
xmlElement (
"ZipCode ", null, $setting->get(
"admin_zipcode"));
151 $this->
xmlElement (
"City", null, $setting->get(
"admin_city"));
152 $this->
xmlElement (
"Country", null, $setting->get(
"admin_country"));
153 $this->
xmlElement (
"Phone", null, $setting->get(
"admin_phone"));
156 $this->
xmlElement(
"Setting",
array(
"key" =>
"error_recipient"), $setting->get(
"error_recipient"));
157 $this->
xmlElement(
"Setting",
array(
"key" =>
"feedback_recipient"), $setting->get(
"feedback_recipient"));
158 $this->
xmlElement(
"Setting",
array(
"key" =>
"session_expiration"), $setting->session);
159 $this->
xmlElement(
"Setting",
array(
"key" =>
"soap_enabled"), $setting->get(
"soap_user_administration"));
160 $this->
xmlElement(
"Setting",
array(
"key" =>
"authentication_methods"), join(
",", $auth_mode_names));
161 $this->
xmlElement(
"Setting",
array(
"key" =>
"authentication_default_method"), $auth_mode_default);
162 $this->
xmlElement(
"Setting",
array(
"key" =>
"skins"), join(
",", $skin_styles));
163 $this->
xmlElement(
"Setting",
array(
"key" =>
"default_skin"), $setting->default_skin_style);
165 $this->
xmlElement(
"Setting",
array(
"key" =>
"default_hits_per_page"), $setting->default_hits_per_page);
166 $this->
xmlElement(
"Setting",
array(
"key" =>
"default_show_users_online"), $setting->default_show_users_online);
169 if ($this->exportAdvMDDefs)
172 include_once
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php';
173 include_once
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordXMLWriter.php';
175 $record_ids =
array();
178 foreach($record_types as $type_info) {
179 $type = $type_info[
'obj_type'];
182 $record_ids [] = $record->getRecordId();
185 $record_ids = array_unique($record_ids);
188 if (count($record_ids) > 0)
190 foreach($record_ids as $record_id)
192 $record_obj = ilAdvancedMDRecord::_getInstanceByrecordId($record_id);
193 $record_obj->toXML($this);
196 $this->
xmlEndTag(
'AdvancedMetaDataRecords');
199 if ($this->exportUDFDefs)
202 include_once (
"./Services/User/classes/class.ilUserDefinedFields.php");
204 $udf_data->addToXML($this);
214 $this->
xmlElement(
"Setting",
array(
"key" =>
"default_client"),
$GLOBALS[
'ilIliasIniFile']->readVariable(
"clients",
"default"));
215 #$this->xmlElement("Setting", array("key" => "post_max_size"), ilSoapAdministration::return_bytes(ini_get("post_max_size"))); 216 #$this->xmlElement("Setting", array("key" => "upload_max_filesize"), ilSoapAdministration::return_bytes(ini_get("upload_max_filesize"))); 226 $this->exportAdvMDDefs = $value ? true :
false;
237 $this->exportUDFDefs = $value ?
true:
false;
static _getDefaultTimeZone()
Calculate and set default time zone.
setExportUDFDefinitions($value)
write access, if set to true, user defined field definitions will be exported as well ...
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
__buildClient($setting)
create client tag
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)
static _getActiveAuthModes()
static _lookupActivatedStyle($a_skin, $a_style)
lookup if a style is activated
static _getAuthModeName($a_auth_key)
xmlEndTag($tag)
Writes an endtag.
setSettings($settings)
write access to property settings
static buildHTTPPath()
builds http path if no client is available
xmlHeader()
Writes xml header public.
Create styles array
The data for the language used.
static _getActivatedRecordsByObjectType($a_obj_type, $a_sub_type="", $a_only_optional=false)
Get activated records by object type.
setExportAdvancedMetaDataDefinitions($value)
write access, if set to true advanced meta data definitions will be exported s well ...
static _getAssignableObjectTypes($a_include_text=false)
Get assignable object type.
xmlDumpMem($format=TRUE)
Returns xml document from memory.
__buildInstallationInfo()