ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilDidacticTemplateXmlWriter Class Reference
+ Inheritance diagram for ilDidacticTemplateXmlWriter:
+ Collaboration diagram for ilDidacticTemplateXmlWriter:

Public Member Functions

 __construct ($a_tpl_id)
 Constructor. More...
 
 getSetting ()
 Get template setting. More...
 
 write ()
 Write xml. More...
 
- Public Member Functions inherited from ilXmlWriter
 __construct ($version="1.0", $outEnc="utf-8", $inEnc="utf-8")
 constructor More...
 
 _ilXmlWriter ()
 destructor public More...
 
 xmlSetDtdDef ($dtdDef)
 Sets dtd definition. More...
 
 xmlSetStSheet ($stSheet)
 Sets stylesheet. More...
 
 xmlSetGenCmt ($genCmt)
 Sets generated comment. More...
 
 xmlEncodeData ($data)
 Encodes text from input encoding into output encoding. More...
 
 xmlFormatData ($data)
 Indents text for better reading. More...
 
 xmlFormatElement ($array)
 Callback function for xmlFormatData; do not invoke directly. More...
 
 xmlHeader ()
 Writes xml header public. More...
 
 xmlStartTag ($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
 Writes a starttag. More...
 
 xmlEndTag ($tag)
 Writes an endtag. More...
 
 xmlComment ($comment)
 Writes a comment. More...
 
 xmlData ($data, $encode=TRUE, $escape=TRUE)
 Writes data. More...
 
 xmlElement ($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
 Writes a basic element (no children, just textual content) More...
 
 xmlDumpFile ($file, $format=TRUE)
 Dumps xml document from memory into a file. More...
 
 xmlDumpMem ($format=TRUE)
 Returns xml document from memory. More...
 
 appendXML ($a_str)
 append xml string to document More...
 
 xmlClear ()
 clears xmlStr public More...
 

Private Attributes

 $tpl = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlWriter
static _xmlEscapeData ($data)
 Escapes reserved characters. More...
 
- Data Fields inherited from ilXmlWriter
 $xmlStr
 
 $version
 
 $outEnc
 
 $inEnc
 
 $dtdDef = ""
 
 $stSheet = ""
 
 $genCmt = "Generated by ILIAS XmlWriter"
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilDidacticTemplateXmlWriter::__construct (   $a_tpl_id)

Constructor.

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

20  {
21  parent::__construct();
22 
23  include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateSetting.php';
24  $this->tpl = new ilDidacticTemplateSetting($a_tpl_id);
25  }

Member Function Documentation

◆ getSetting()

ilDidacticTemplateXmlWriter::getSetting ( )

Get template setting.

Returns
ilDidacticTemplateSetting

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

References $tpl.

Referenced by write().

+ Here is the caller graph for this function:

◆ write()

ilDidacticTemplateXmlWriter::write ( )

Write xml.

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

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

40  {
41  $this->xmlHeader();
42  $this->xmlStartTag('didacticTemplateDefinition');
43 
44  // add definition setting
45  $this->getSetting()->toXml($this);
46 
47  $this->xmlEndTag('didacticTemplateDefinition');
48  }
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
xmlEndTag($tag)
Writes an endtag.
xmlHeader()
Writes xml header public.
+ Here is the call graph for this function:

Field Documentation

◆ $tpl

ilDidacticTemplateXmlWriter::$tpl = null
private

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

Referenced by getSetting().


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