4 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
17 private $mode = self::MODE_SOAP;
32 parent::__construct();
34 $this->category = $cat;
43 $this->mode = $a_mode;
68 public function export($a_with_header =
true)
70 if($this->
getMode() == self::MODE_EXPORT)
78 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
80 include_once
'./Services/Container/classes/class.ilContainer.php';
104 $this->
xmlSetDtdDef(
"<!DOCTYPE category PUBLIC \"-//ILIAS//DTD Group//EN\" \"".ILIAS_HTTP_PATH.
"/xml/ilias_cat_4_5.dtd\">");
105 $this->
xmlSetGenCmt(
"Export of ILIAS category ". $this->
getCategory()->getId().
" of installation ".$ilSetting->get(
'inst_id').
".");
135 $translations = $this->
getCategory()->getTranslations();
139 foreach((
array) $translations[
'Fobject'] as $translation)
141 $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.
xmlSetGenCmt($genCmt)
Sets generated comment.
__construct(ilObjCategory $cat=null)
constructor
xmlSetDtdDef($dtdDef)
Sets dtd definition.
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)
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.
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.
xmlDumpMem($format=TRUE)
Returns xml document from memory.