4 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
22 private $mode = self::MODE_SOAP;
38 parent::__construct();
40 $this->category = $cat;
49 $this->mode = $a_mode;
74 public function export($a_with_header =
true)
76 if ($this->
getMode() == self::MODE_EXPORT) {
82 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
84 include_once
'./Services/Container/classes/class.ilContainer.php';
108 $this->
xmlSetDtdDef(
"<!DOCTYPE category PUBLIC \"-//ILIAS//DTD Group//EN\" \"" . ILIAS_HTTP_PATH .
"/xml/ilias_cat_4_5.dtd\">");
139 $translations = $this->
getCategory()->getTranslations();
143 foreach ((
array) $translations[
'Fobject'] as $translation) {
144 $this->
xmlStartTag(
'Translation',
array(
'default' => (
int) $first,
'language' => $translation[
'lang']));
buildCategory()
Build category xml.
static _exportContainerSettings(ilXmlWriter $a_xml, $a_obj_id)
buildTranslations()
Add Translations.
Class for category export.
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
xmlSetGenCmt($genCmt)
Sets generated comment.
__construct(ilObjCategory $cat=null)
constructor
xmlSetDtdDef($dtdDef)
Sets dtd definition.
xmlDumpMem($format=true)
Returns xml document from memory.
buildHeader()
Build xml header <type> $ilSetting.
xmlEndTag($tag)
Writes an endtag.
setMode($a_mode)
Set export mode.
xmlHeader()
Writes xml header public.
getCategory()
Get category object.
Create styles array
The data for the language used.
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
buildFooter()
Add footer elements.
static _exportContainerSortingSettings(ilXmlWriter $xml, $obj_id)
sorting XML-export for all container objects
export($a_with_header=true)
Start wrting xml.