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

Public Member Functions

 __construct ($a_record_ids)
 Constructor.
 write ()
 generate 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 header

Protected Attributes

 $record_ids = array()
 $settings = null

Additional Inherited Members

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

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
$Id$

Definition at line 35 of file class.ilAdvancedMDRecordXMLWriter.php.

Constructor & Destructor Documentation

ilAdvancedMDRecordXMLWriter::__construct (   $a_record_ids)

Constructor.

public

Parameters

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

References $ilSetting, and ilXmlWriter\ilXmlWriter().

{
global $ilSetting;
$this->settings = $ilSetting;
$this->record_ids = $a_record_ids ? $a_record_ids : array();
}

+ Here is the call graph for this function:

Member Function Documentation

ilAdvancedMDRecordXMLWriter::buildHeader ( )
protected

build header

protected

Definition at line 81 of file class.ilAdvancedMDRecordXMLWriter.php.

References ilXmlWriter\xmlHeader(), ilXmlWriter\xmlSetDtdDef(), and ilXmlWriter\xmlSetGenCmt().

Referenced by write().

{
$this->xmlSetDtdDef("<!DOCTYPE AdvancedMetaDataRecords PUBLIC \"-//ILIAS//DTD AdvancedMetaDataRecords//EN\" \"".
ILIAS_HTTP_PATH."/Services/AdvancedMetaData/xml/ilias_advanced_meta_data_records_3_9.dtd\">");
$this->xmlSetGenCmt("Export of ILIAS Advanced meta data records of installation ".$this->settings->get('inst_id').".");
$this->xmlHeader();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilAdvancedMDRecordXMLWriter::write ( )

generate xml

public

Definition at line 63 of file class.ilAdvancedMDRecordXMLWriter.php.

References buildHeader(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

{
$this->buildHeader();
$this->xmlStartTag('AdvancedMetaDataRecords');
foreach($this->record_ids as $record_id)
{
$record_obj = ilAdvancedMDRecord::_getInstanceByrecordId($record_id);
$record_obj->toXML($this);
}
$this->xmlEndTag('AdvancedMetaDataRecords');
}

+ Here is the call graph for this function:

Field Documentation

ilAdvancedMDRecordXMLWriter::$record_ids = array()
protected

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

ilAdvancedMDRecordXMLWriter::$settings = null
protected

Definition at line 38 of file class.ilAdvancedMDRecordXMLWriter.php.


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