ILIAS  release_4-4 Revision
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 More...
 
 _ilXmlWriter ()
 destructor public More...
 
 xmlSetDtdDef ($dtdDef)
 Sets dtd definition. More...
 
 xmlSetStSheet ($stSheet)
 Sets stylesheet. More...
 
 xmlSetGenCmt ($genCmt)
 Sets generated comment. More...
 
 _xmlEscapeData ($data)
 Escapes reserved characters. 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...
 

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

◆ getExportMode()

ilMD2XML::getExportMode ( )

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

References $export_mode.

Referenced by startExport().

51  {
52  return $this->export_mode;
53  }
+ Here is the caller graph for this function:

◆ getXML()

ilMD2XML::getXML ( )

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

References ilXmlWriter\xmlDumpMem().

63  {
64  return $this->xmlDumpMem(FALSE);
65  }
xmlDumpMem($format=TRUE)
Returns xml document from memory.
+ Here is the call graph for this function:

◆ ilMD2XML()

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

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

40  {
41  $this->md_obj =& new ilMD($a_rbac_id,$a_obj_id,$a_type);
42  parent::ilXmlWriter();
43  }

◆ setExportMode()

ilMD2XML::setExportMode (   $a_export_mode = true)

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

46  {
47  $this->export_mode = $a_export_mode;
48  }

◆ startExport()

ilMD2XML::startExport ( )

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

References getExportMode().

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

56  {
57  // Starts the xml export and calls all element classes
58  $this->md_obj->setExportMode($this->getExportMode());
59  $this->md_obj->toXML($this);
60  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $export_mode

ilMD2XML::$export_mode = false

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

Referenced by getExportMode().

◆ $md_obj

ilMD2XML::$md_obj = null

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


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