ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 $DIC;
29 $ilDB = $DIC['ilDB'];
30 $this->ds = new ilBibliographicDataSet();
31 $this->ds->setDSPrefix('ds');
32 $this->db = $ilDB;
33 }
34
35
41 public function getValidSchemaVersions($a_entity) {
42 return array(
43 '4.5.0' => array(
44 'namespace' => 'http://www.ilias.de/Modules/DataCollection/dcl/4_5',
45 'xsd_file" => "ilias_dcl_4_5.xsd',
46 'uses_dataset' => true,
47 'min' => '4.5.0',
48 'max' => ''
49 )
50 );
51 }
52
53
54 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id) {
56 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
57 $this->ds->exportLibraryFile($a_id);
58
59 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, '', true, true);
60 }
61}
62
63?>
An exception for terminatinating execution or to throw for unit testing.
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
global $DIC