ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilDidacticTemplateXmlWriter.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
xmlEndTag(string $tag)
Writes an endtag.
xmlHeader()
Writes xml header.
__construct(Container $dic, ilPlugin $plugin)
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.