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 */
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 $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 ?>
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.
Create styles array
The data for the language used.
global $ilDB
Exporter class for Bibliographic class.
global $DIC