ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 11 of file class.ilDidacticTemplateXmlWriter.php.

Constructor & Destructor Documentation

◆ __construct()

ilDidacticTemplateXmlWriter::__construct ( int  $a_tpl_id)

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

References ILIAS\GlobalScreen\Provider\__construct().

16  {
18  $this->tpl = new ilDidacticTemplateSetting($a_tpl_id);
19  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getSetting()

ilDidacticTemplateXmlWriter::getSetting ( )

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

References $tpl.

Referenced by write().

+ Here is the caller graph for this function:

◆ write()

ilDidacticTemplateXmlWriter::write ( )

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

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

Referenced by ilDidacticTemplateSettingsGUI\exportTemplate().

26  : void
27  {
28  $this->xmlHeader();
29  $this->xmlStartTag('didacticTemplateDefinition');
30 
31  // add definition setting
32  $this->getSetting()->toXml($this);
33  $this->xmlEndTag('didacticTemplateDefinition');
34  }
xmlEndTag(string $tag)
Writes an endtag.
xmlHeader()
Writes xml header.
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $tpl

ilDidacticTemplateSetting ilDidacticTemplateXmlWriter::$tpl
private

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

Referenced by getSetting().


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