ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilBibliographicExporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3require_once("./Services/Export/classes/class.ilXmlExporter.php");
4require_once("./Services/Export/classes/class.ilExport.php");
5require_once('class.ilBibliographicDataSet.php');
16
20 protected $ds;
24 protected $db;
25
26
27 public function init() {
28 global $ilDB;
29 $this->ds = new ilBibliographicDataSet();
30 $this->ds->setDSPrefix('ds');
31 $this->db = $ilDB;
32 }
33
34
40 public function getValidSchemaVersions($a_entity) {
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 }
51
52
53 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id) {
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 }
60}
61
62?>
Bibliographic dataset class.
Exporter class for Bibliographic class.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
static makeDirParents($a_dir)
Create a new directory and all parent directories.
Xml Exporter class.
getAbsoluteExportDirectory()
Get absolute export directory.
global $ilDB