ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilDidacticTemplateXmlWriter Class Reference
+ Inheritance diagram for ilDidacticTemplateXmlWriter:
+ Collaboration diagram for ilDidacticTemplateXmlWriter:

Public Member Functions

 __construct (int $a_tpl_id)
 
 getSetting ()
 
 write ()
 
- Public Member Functions inherited from ilXmlWriter
 __construct (string $version="1.0", string $outEnc="utf-8", string $inEnc="utf-8")
 
 xmlSetDtdDef (string $dtdDef)
 Sets dtd definition. More...
 
 xmlSetGenCmt (string $genCmt)
 Sets generated comment. More...
 
 xmlFormatData (string $data)
 Indents text for better reading. More...
 
 xmlHeader ()
 Writes xml header. More...
 
 xmlStartTag (string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
 Writes a starttag. More...
 
 xmlEndTag (string $tag)
 Writes an endtag. More...
 
 xmlData (string $data, bool $encode=true, bool $escape=true)
 Writes data. More...
 
 xmlElement (string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
 Writes a basic element (no children, just textual content) More...
 
 xmlDumpFile (string $file, bool $format=true)
 Dumps xml document from memory into a file. More...
 
 xmlDumpMem (bool $format=true)
 Returns xml document from memory. More...
 
 appendXML (string $a_str)
 append xml string to document More...
 
 xmlClear ()
 clears xmlStr More...
 

Private Attributes

ilDidacticTemplateSetting $tpl
 

Detailed Description

Definition at line 25 of file class.ilDidacticTemplateXmlWriter.php.

Constructor & Destructor Documentation

◆ __construct()

ilDidacticTemplateXmlWriter::__construct ( int  $a_tpl_id)

Definition at line 29 of file class.ilDidacticTemplateXmlWriter.php.

30 {
32 $this->tpl = new ilDidacticTemplateSetting($a_tpl_id);
33 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getSetting()

ilDidacticTemplateXmlWriter::getSetting ( )

Definition at line 35 of file class.ilDidacticTemplateXmlWriter.php.

36 {
37 return $this->tpl;
38 }

References $tpl.

Referenced by write().

+ Here is the caller graph for this function:

◆ write()

ilDidacticTemplateXmlWriter::write ( )

Definition at line 40 of file class.ilDidacticTemplateXmlWriter.php.

40 : void
41 {
42 $this->xmlHeader();
43 $this->xmlStartTag('didacticTemplateDefinition');
44
45 // add definition setting
46 $this->getSetting()->toXml($this);
47 $this->xmlEndTag('didacticTemplateDefinition');
48 }
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.

References getSetting(), ilXmlWriter\xmlEndTag(), ilXmlWriter\xmlHeader(), and ilXmlWriter\xmlStartTag().

+ Here is the call graph for this function:

Field Documentation

◆ $tpl

ilDidacticTemplateSetting ilDidacticTemplateXmlWriter::$tpl
private

Definition at line 27 of file class.ilDidacticTemplateXmlWriter.php.

Referenced by getSetting().


The documentation for this class was generated from the following file: