ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
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 */
3 require_once("./Services/Export/classes/class.ilXmlExporter.php");
4 require_once("./Services/Export/classes/class.ilExport.php");
5 require_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 ?>
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
static makeDirParents($a_dir)
Create a new directory and all parent directories.
Bibliographic dataset class.
Xml Exporter class.
getAbsoluteExportDirectory()
Get absolute export directory.
global $ilDB
Exporter class for Bibliographic class.