Public Member Functions | Protected Member Functions | Protected Attributes

ilAdvancedMDRecordXMLWriter Class Reference

Inheritance diagram for ilAdvancedMDRecordXMLWriter:
Collaboration diagram for ilAdvancedMDRecordXMLWriter:

Public Member Functions

 __construct ($a_record_ids)
 Constructor.
 write ()
 generate xml

Protected Member Functions

 buildHeader ()
 build header

Protected Attributes

 $record_ids = array()
 $settings = null

Detailed Description

Author:
Stefan Meyer <smeyer@databay.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;
                
                parent::ilXmlWriter();
                $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: