ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDidacticTemplateXmlWriter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
26{
28
29 public function __construct(int $a_tpl_id)
30 {
32 $this->tpl = new ilDidacticTemplateSetting($a_tpl_id);
33 }
34
36 {
37 return $this->tpl;
38 }
39
40 public function write(): void
41 {
42 $this->xmlHeader();
43 $this->xmlStartTag('didacticTemplateDefinition');
44
45 // add definition setting
46 $this->getSetting()->toXml($this);
47 $this->xmlEndTag('didacticTemplateDefinition');
48 }
49}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
xmlHeader()
Writes xml header.
xmlEndTag(string $tag)
Writes an endtag.
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc