ILIAS  release_8 Revision v8.24
class.ilDidacticTemplateXmlWriter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
5
12{
14
15 public function __construct(int $a_tpl_id)
16 {
18 $this->tpl = new ilDidacticTemplateSetting($a_tpl_id);
19 }
20
22 {
23 return $this->tpl;
24 }
25
26 public function write(): void
27 {
28 $this->xmlHeader();
29 $this->xmlStartTag('didacticTemplateDefinition');
30
31 // add definition setting
32 $this->getSetting()->toXml($this);
33 $this->xmlEndTag('didacticTemplateDefinition');
34 }
35}
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