3 declare(strict_types=1);
31 $this->add_header = $a_add_header;
37 $this->obj_id = $a_obj_id;
43 if ($this->add_header) {
46 $this->
xmlStartTag(
'Folder', [
'Id' => $this->folder->getId()]);
47 $this->
xmlElement(
'Title', [], $this->folder->getTitle());
48 $this->
xmlElement(
'Description', [], $this->folder->getDescription());
55 $this->
xmlSetDtdDef(
"<!DOCTYPE WebLinks PUBLIC \"-//ILIAS//DTD WebLinkAdministration//EN\" \"" . ILIAS_HTTP_PATH .
"/xml/ilias_fold_4_5.dtd\">");
60 protected function init(): void
70 if ($this->folder->getType() !==
'fold') {
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlHeader()
Writes xml header.
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
__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)
__construct(bool $a_add_header)