ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 32 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 37 of file class.ilMD2XML.php.

References ILIAS\GlobalScreen\Provider\__construct().

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

Member Function Documentation

◆ getExportMode()

ilMD2XML::getExportMode ( )

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

References $export_mode.

Referenced by startExport().

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

◆ getXML()

ilMD2XML::getXML ( )

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

References ilXmlWriter\xmlDumpMem().

60  : string
61  {
62  return $this->xmlDumpMem(false);
63  }
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 43 of file class.ilMD2XML.php.

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

◆ startExport()

ilMD2XML::startExport ( )

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

References getExportMode().

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

53  : void
54  {
55  // Starts the xml export and calls all element classes
56  $this->md_obj->setExportMode($this->getExportMode());
57  $this->md_obj->toXML($this);
58  }
+ 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 35 of file class.ilMD2XML.php.

Referenced by getExportMode().

◆ $md_obj

ilMD ilMD2XML::$md_obj

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


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