ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCourseReferenceXmlWriter Class Reference

Class for container reference export. More...

+ Inheritance diagram for ilCourseReferenceXmlWriter:
+ Collaboration diagram for ilCourseReferenceXmlWriter:

Public Member Functions

 __construct (ilObjCourseReference $ref=null)
 constructor
- Public Member Functions inherited from ilContainerReferenceXmlWriter
 __construct (ilContainerReference $ref=null)
 constructor
 setMode ($a_mode)
 Set export mode.
 getMode ()
 get export mode
 getReference ()
 Get category object.
 export ($a_with_header=true)
 Start wrting xml.
 getXml ()
 get 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

Protected Member Functions

 buildHeader ()
 Build xml header <type> $ilSetting.
- Protected Member Functions inherited from ilContainerReferenceXmlWriter
 buildTarget ()
 Build target element.
 buildTitle ()
 Build title element.
 buildReference ()
 Build category xml.
 buildFooter ()
 Add footer elements.

Additional Inherited Members

- Data Fields inherited from ilContainerReferenceXmlWriter
const MODE_SOAP = 1
const MODE_EXPORT = 2

Detailed Description

Class for container reference export.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e $Id$

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

Constructor & Destructor Documentation

ilCourseReferenceXmlWriter::__construct ( ilObjCourseReference  $ref = null)

constructor

Parameters
stringxml version
stringoutput encoding
stringinput encoding public

Definition at line 22 of file class.ilCourseReferenceXmlWriter.php.

References ilContainerReferenceXmlWriter\$ref.

{
}

Member Function Documentation

ilCourseReferenceXmlWriter::buildHeader ( )
protected

Build xml header <type> $ilSetting.

Returns
<type>

Reimplemented from ilContainerReferenceXmlWriter.

Definition at line 32 of file class.ilCourseReferenceXmlWriter.php.

References $ilSetting, ilContainerReferenceXmlWriter\getReference(), ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().

{
global $ilSetting;
$this->xmlSetDtdDef("<!DOCTYPE course reference PUBLIC \"-//ILIAS//DTD Group//EN\" \"".ILIAS_HTTP_PATH."/xml/ilias_course_reference_4_3.dtd\">");
$this->xmlSetGenCmt("Export of ILIAS course reference ". $this->getReference()->getId()." of installation ".$ilSetting->get('inst_id').".");
$this->xmlHeader();
return true;
}

+ Here is the call graph for this function:


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