3declare(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
65 throw new UnexpectedValueException(
'No obj_id given: ');
68 throw new UnexpectedValueException(
'Invalid obj_id given: ' . $this->obj_id);
70 if ($this->folder->getType() !==
'fold') {
71 throw new UnexpectedValueException(
'Invalid obj_id given. Object is not of type folder');
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...
__construct(bool $a_add_header)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlSetGenCmt(string $genCmt)
Sets generated comment.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
xmlHeader()
Writes xml header.
xmlEndTag(string $tag)
Writes an endtag.
xmlSetDtdDef(string $dtdDef)
Sets dtd definition.
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc