ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMD2XML Class Reference
+ Inheritance diagram for ilMD2XML:
+ Collaboration diagram for ilMD2XML:

Public Member Functions

 ilMD2XML ($a_rbac_id, $a_obj_id, $a_type)
 setExportMode ($a_export_mode=true)
 getExportMode ()
 startExport ()
 getXML ()
- 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

Data Fields

 $md_obj = null
 $export_mode = false
- Data Fields inherited from ilXmlWriter
 $xmlStr
 $version
 $outEnc
 $inEnc
 $dtdDef = ""
 $stSheet = ""
 $genCmt = "Generated by ILIAS XmlWriter"

Detailed Description

Definition at line 34 of file class.ilMD2XML.php.

Member Function Documentation

ilMD2XML::getExportMode ( )

Definition at line 50 of file class.ilMD2XML.php.

References $export_mode.

Referenced by startExport().

{
}

+ Here is the caller graph for this function:

ilMD2XML::getXML ( )

Definition at line 62 of file class.ilMD2XML.php.

References ilXmlWriter\xmlDumpMem().

{
return $this->xmlDumpMem(FALSE);
}

+ Here is the call graph for this function:

ilMD2XML::ilMD2XML (   $a_rbac_id,
  $a_obj_id,
  $a_type 
)

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

References ilXmlWriter\ilXmlWriter().

{
$this->md_obj =& new ilMD($a_rbac_id,$a_obj_id,$a_type);
}

+ Here is the call graph for this function:

ilMD2XML::setExportMode (   $a_export_mode = true)

Definition at line 45 of file class.ilMD2XML.php.

{
$this->export_mode = $a_export_mode;
}
ilMD2XML::startExport ( )

Definition at line 55 of file class.ilMD2XML.php.

References getExportMode().

Referenced by ilCourseXMLWriter\__buildMetaData(), and ilMDEditorGUI\debug().

{
// Starts the xml export and calls all element classes
$this->md_obj->setExportMode($this->getExportMode());
$this->md_obj->toXML($this);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilMD2XML::$export_mode = false

Definition at line 37 of file class.ilMD2XML.php.

Referenced by getExportMode().

ilMD2XML::$md_obj = null

Definition at line 36 of file class.ilMD2XML.php.


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