ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilBibliographicExporter Class Reference

Exporter class for Bibliographic class. More...

+ Inheritance diagram for ilBibliographicExporter:
+ Collaboration diagram for ilBibliographicExporter:

Public Member Functions

 init ()
 
 getValidSchemaVersions ($a_entity)
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 Constructor. More...
 
 setExport (ilExport $a_exp)
 Set export object. More...
 
 getExport ()
 Get export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 init ()
 
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories. More...
 
 getRelativeExportDirectory ()
 Get relative export directory. More...
 
 getAbsoluteExportDirectory ()
 Get absolute export directory. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version. More...
 

Protected Attributes

 $ds
 
 $db
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 

Detailed Description

Exporter class for Bibliographic class.

Author
Theodor Truffer tt@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Martin Studer ms@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
Id

Definition at line 15 of file class.ilBibliographicExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilBibliographicExporter::getValidSchemaVersions (   $a_entity)
Parameters
string$a_entity
Returns
array

Reimplemented from ilXmlExporter.

Definition at line 40 of file class.ilBibliographicExporter.php.

40 {
41 return array(
42 '4.5.0' => array(
43 'namespace' => 'http://www.ilias.de/Modules/DataCollection/dcl/4_5',
44 'xsd_file" => "ilias_dcl_4_5.xsd',
45 'uses_dataset' => true,
46 'min' => '4.5.0',
47 'max' => ''
48 )
49 );
50 }

◆ getXmlRepresentation()

ilBibliographicExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)

Get xml representation.

Parameters
stringentity
stringschema version
stringid
Returns
string xml string

Reimplemented from ilXmlExporter.

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

53 {
55 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
56 $this->ds->exportLibraryFile($a_id);
57
58 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, '', true, true);
59 }
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getAbsoluteExportDirectory()
Get absolute export directory.

References ilXmlExporter\getAbsoluteExportDirectory(), and ilUtil\makeDirParents().

+ Here is the call graph for this function:

◆ init()

ilBibliographicExporter::init ( )

Reimplemented from ilXmlExporter.

Definition at line 27 of file class.ilBibliographicExporter.php.

27 {
28 global $ilDB;
29 $this->ds = new ilBibliographicDataSet();
30 $this->ds->setDSPrefix('ds');
31 $this->db = $ilDB;
32 }
Bibliographic dataset class.
global $ilDB

References $ilDB.

Field Documentation

◆ $db

ilBibliographicExporter::$db
protected

Definition at line 24 of file class.ilBibliographicExporter.php.

◆ $ds

ilBibliographicExporter::$ds
protected

Definition at line 20 of file class.ilBibliographicExporter.php.


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