ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
14 {
15 
19  protected $ds;
23  protected $db;
24 
25 
26  public function init()
27  {
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  {
43  return array(
44  '4.5.0' => array(
45  'namespace' => 'http://www.ilias.de/Modules/DataCollection/dcl/4_5',
46  'xsd_file" => "ilias_dcl_4_5.xsd',
47  'uses_dataset' => true,
48  'min' => '4.5.0',
49  'max' => '',
50  ),
51  );
52  }
53 
54 
55  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
56  {
58  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
59  $this->ds->exportLibraryFile($a_id);
60 
61  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, '', true, true);
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.
global $DIC
Definition: saml.php:7
Xml Exporter class.
getAbsoluteExportDirectory()
Get absolute export directory.
Create styles array
The data for the language used.
global $ilDB
Exporter class for Bibliographic class.