ILIAS  release_8 Revision v8.23
ilMD2XML Class Reference
+ Inheritance diagram for ilMD2XML:
+ Collaboration diagram for ilMD2XML:

Public Member Functions

 __construct (int $a_rbac_id, int $a_obj_id, string $a_type)
 
 setExportMode (bool $a_export_mode=true)
 
 getExportMode ()
 
 startExport ()
 
 getXML ()
 
- Public Member Functions inherited from ilXmlWriter
 __construct (string $version="1.0", string $outEnc="utf-8", string $inEnc="utf-8")
 
 xmlSetDtdDef (string $dtdDef)
 Sets dtd definition. More...
 
 xmlSetGenCmt (string $genCmt)
 Sets generated comment. More...
 
 xmlFormatData (string $data)
 Indents text for better reading. More...
 
 xmlHeader ()
 Writes xml header. More...
 
 xmlStartTag (string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
 Writes a starttag. More...
 
 xmlEndTag (string $tag)
 Writes an endtag. More...
 
 xmlData (string $data, bool $encode=true, bool $escape=true)
 Writes data. More...
 
 xmlElement (string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
 Writes a basic element (no children, just textual content) More...
 
 xmlDumpFile (string $file, bool $format=true)
 Dumps xml document from memory into a file. More...
 
 xmlDumpMem (bool $format=true)
 Returns xml document from memory. More...
 
 appendXML (string $a_str)
 append xml string to document More...
 
 xmlClear ()
 clears xmlStr More...
 

Data Fields

ilMD $md_obj
 
bool $export_mode = false
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilMD2XML::__construct ( int  $a_rbac_id,
int  $a_obj_id,
string  $a_type 
)

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

References ILIAS\GlobalScreen\Provider\__construct().

37  {
38  $this->md_obj = new ilMD($a_rbac_id, $a_obj_id, $a_type);
40  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getExportMode()

ilMD2XML::getExportMode ( )

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

References $export_mode.

Referenced by startExport().

47  : bool
48  {
49  return $this->export_mode;
50  }
bool $export_mode
+ Here is the caller graph for this function:

◆ getXML()

ilMD2XML::getXML ( )

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

References ilXmlWriter\xmlDumpMem().

59  : string
60  {
61  return $this->xmlDumpMem(false);
62  }
xmlDumpMem(bool $format=true)
Returns xml document from memory.
+ Here is the call graph for this function:

◆ setExportMode()

ilMD2XML::setExportMode ( bool  $a_export_mode = true)

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

42  : void
43  {
44  $this->export_mode = $a_export_mode;
45  }

◆ startExport()

ilMD2XML::startExport ( )

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

References getExportMode().

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

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

Field Documentation

◆ $export_mode

bool ilMD2XML::$export_mode = false

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

Referenced by getExportMode().

◆ $md_obj

ilMD ilMD2XML::$md_obj

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


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