3 declare(strict_types=1);
32 private int $mode = self::MODE_SOAP;
42 $this->category = $cat;
45 public function setMode(
int $a_mode): void
47 $this->mode = $a_mode;
60 public function export(
bool $a_with_header =
true): void
62 if ($this->
getMode() === self::MODE_EXPORT) {
84 $this->
xmlSetDtdDef(
"<!DOCTYPE category PUBLIC \"-//ILIAS//DTD Group//EN\" \"" . ILIAS_HTTP_PATH .
"/xml/ilias_cat_4_5.dtd\">");
108 $translations = $this->
getCategory()->getObjectTranslation()->getLanguages();
109 foreach ($translations as $translation) {
113 'default' => (
int) $translation->isDefault(),
114 'language' => $translation->getLanguageCode()
117 $this->
xmlElement(
'Title', [], $translation->getTitle());
118 $this->
xmlElement(
'Description', [], $translation->getDescription());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjCategory $cat=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlSetGenCmt(string $genCmt)
Sets generated comment.
xmlEndTag(string $tag)
Writes an endtag.
xmlSetDtdDef(string $dtdDef)
Sets dtd definition.
static _exportContainerSortingSettings(ilXmlWriter $xml, int $obj_id)
sorting XML-export for all container objects
export(bool $a_with_header=true)
xmlHeader()
Writes xml header.
static _exportContainerSettings(ilXmlWriter $a_xml, int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
xmlDumpMem(bool $format=true)
Returns xml document from memory.