6 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
22 parent::__construct();
64 $this->
xmlSetDtdDef(
"<!DOCTYPE Installation PUBLIC \"-//ILIAS//DTD InstallationInfo//EN\" \"" . $httpPath .
"/xml/ilias_installation_info_5_3.dtd\">");
91 $skin_styles = array();
92 include_once(
"./Services/Style/System/classes/class.ilStyleDefinition.php");
93 $skins = ilStyleDefinition::getAllSkins();
95 if (is_array($skins)) {
96 foreach ($skins as $skin) {
97 foreach ($skin->getStyles() as
$style) {
98 include_once(
"./Services/Style/System/classes/class.ilSystemStyleSettings.php");
102 $skin_styles [] = $skin->getId() .
":" .
$style->getId();
108 include_once(
'Services/Calendar/classes/class.ilTimeZone.php');
114 "inst_id" => $setting->get(
"inst_id"),
115 "id" => $setting->clientid,
116 "enabled" => $setting->access == 1 ?
"TRUE" :
"FALSE",
117 "default_lang" => $setting->language,
132 $auth_mode_names = array();
133 foreach ($auth_modes as $mode) {
138 $this->
xmlElement(
"Name", null, $setting->get(
"inst_name"));
139 $this->
xmlElement(
"Description", null, $setting->description);
140 $this->
xmlElement(
"Institution", null, $setting->get(
"inst_institution"));
142 $this->
xmlElement(
"Firstname", null, $setting->get(
"admin_firstname"));
143 $this->
xmlElement(
"Lastname", null, $setting->get(
"admin_lastname"));
144 $this->
xmlElement(
"Title", null, $setting->get(
"admin_title"));
145 $this->
xmlElement(
"Institution", null, $setting->get(
"admin_institution"));
146 $this->
xmlElement(
"Position", null, $setting->get(
"admin_position"));
147 $this->
xmlElement(
"Email", null, $setting->get(
"admin_email"));
148 $this->
xmlElement(
"Street ", null, $setting->get(
"admin_street"));
149 $this->
xmlElement(
"ZipCode ", null, $setting->get(
"admin_zipcode"));
150 $this->
xmlElement(
"City", null, $setting->get(
"admin_city"));
151 $this->
xmlElement(
"Country", null, $setting->get(
"admin_country"));
152 $this->
xmlElement(
"Phone", null, $setting->get(
"admin_phone"));
155 $this->
xmlElement(
"Setting", array(
"key" =>
"error_recipient"), $setting->get(
"error_recipient"));
156 $this->
xmlElement(
"Setting", array(
"key" =>
"feedback_recipient"), $setting->get(
"feedback_recipient"));
157 $this->
xmlElement(
"Setting", array(
"key" =>
"session_expiration"), $setting->session);
158 $this->
xmlElement(
"Setting", array(
"key" =>
"soap_enabled"), $setting->get(
"soap_user_administration"));
159 $this->
xmlElement(
"Setting", array(
"key" =>
"authentication_methods"), join(
",", $auth_mode_names));
160 $this->
xmlElement(
"Setting", array(
"key" =>
"authentication_default_method"), $auth_mode_default);
161 $this->
xmlElement(
"Setting", array(
"key" =>
"skins"), join(
",", $skin_styles));
162 $this->
xmlElement(
"Setting", array(
"key" =>
"default_skin"), $setting->default_skin_style);
164 $this->
xmlElement(
"Setting", array(
"key" =>
"default_hits_per_page"), $setting->default_hits_per_page);
165 $this->
xmlElement(
"Setting", array(
"key" =>
"default_show_users_online"), $setting->default_show_users_online);
168 if ($this->exportAdvMDDefs) {
170 include_once
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecord.php';
171 include_once
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordXMLWriter.php';
173 $record_ids = array();
176 foreach ($record_types as $type_info) {
177 $type = $type_info[
'obj_type'];
180 $record_ids [] = $record->getRecordId();
183 $record_ids = array_unique($record_ids);
186 if (count($record_ids) > 0) {
187 foreach ($record_ids as $record_id) {
188 $record_obj = ilAdvancedMDRecord::_getInstanceByrecordId($record_id);
189 $record_obj->toXML($this);
192 $this->
xmlEndTag(
'AdvancedMetaDataRecords');
195 if ($this->exportUDFDefs) {
197 include_once(
"./Services/User/classes/class.ilUserDefinedFields.php");
199 $udf_data->addToXML($this);
209 $this->
xmlElement(
"Setting", array(
"key" =>
"default_client"),
$GLOBALS[
'DIC'][
'ilIliasIniFile']->readVariable(
"clients",
"default"));
210 #$this->xmlElement("Setting", array("key" => "post_max_size"), ilSoapAdministration::return_bytes(ini_get("post_max_size"))); 211 #$this->xmlElement("Setting", array("key" => "upload_max_filesize"), ilSoapAdministration::return_bytes(ini_get("upload_max_filesize"))); 222 $this->exportAdvMDDefs = $value ? true :
false;
233 $this->exportUDFDefs = $value ?
true:
false;
static _getDefaultTimeZone()
Calculate and set default time zone.
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
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
xmlDumpMem($format=true)
Returns xml document from memory.
static _getActiveAuthModes()
static _lookupActivatedStyle($a_skin, $a_style)
lookup if a style is activated
if($_SERVER['argc']< 4) $client
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.
static _getActivatedRecordsByObjectType($a_obj_type, $a_sub_type="", $a_only_optional=false)
Get activated records by object type.
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
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.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
__buildInstallationInfo()