ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilDidacticTemplateXmlWriter Class Reference
+ Inheritance diagram for ilDidacticTemplateXmlWriter:
+ Collaboration diagram for ilDidacticTemplateXmlWriter:

Public Member Functions

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

Private Attributes

 $tpl = null

Additional Inherited Members

- 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

ilDidacticTemplateXmlWriter::__construct (   $a_tpl_id)

Constructor.

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

{
include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateSetting.php';
$this->tpl = new ilDidacticTemplateSetting($a_tpl_id);
}

Member Function Documentation

ilDidacticTemplateXmlWriter::getSetting ( )

Get template setting.

Returns
ilDidacticTemplateSetting

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

References $tpl.

Referenced by write().

{
return $this->tpl;
}

+ Here is the caller graph for this function:

ilDidacticTemplateXmlWriter::write ( )

Write xml.

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

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

{
$this->xmlHeader();
$this->xmlStartTag('didacticTemplateDefinition');
// add definition setting
$this->getSetting()->toXml($this);
$this->xmlEndTag('didacticTemplateDefinition');
}

+ Here is the call graph for this function:

Field Documentation

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: