ILIAS  release_8 Revision v8.23
ilBibliographicExporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilBibliographicExporter:
+ Collaboration diagram for ilBibliographicExporter:

Public Member Functions

 init ()
 
 getValidSchemaVersions (string $a_entity)
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 
 setExport (ilExport $a_exp)
 
 getExport ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 init ()
 
 setExportDirectories (string $a_dir_relative, string $a_dir_absolute)
 
 getRelativeExportDirectory ()
 
 getAbsoluteExportDirectory ()
 
 getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion (string $a_entity, string $a_target_release)
 

Protected Attributes

ilBibliographicDataSet $ds = null
 
 $db
 
- Protected Attributes inherited from ilXmlExporter
string $dir_relative = ""
 
string $dir_absolute = ""
 
ilExport $exp
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="")
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Exporter class for Bibliographic class

Author
Theodor Truffer tt@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Martin Studer ms@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
Id

Definition at line 27 of file class.ilBibliographicExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilBibliographicExporter::getValidSchemaVersions ( string  $a_entity)

Definition at line 46 of file class.ilBibliographicExporter.php.

46  : array
47  {
48  return array(
49  '4.5.0' => array(
50  'namespace' => 'http://www.ilias.de/Modules/DataCollection/dcl/4_5',
51  'xsd_file" => "ilias_dcl_4_5.xsd',
52  'uses_dataset' => true,
53  'min' => '4.5.0',
54  'max' => '',
55  ),
56  );
57  }

◆ getXmlExportTailDependencies()

ilBibliographicExporter::getXmlExportTailDependencies ( string  $a_entity,
string  $a_target_release,
array  $a_ids 
)

Definition at line 69 of file class.ilBibliographicExporter.php.

References $res.

73  : array {
74  $res = [];
75  if ($a_entity == "bibl") {
76  $res[] = [
77  "component" => "Services/Object",
78  "entity" => "common",
79  "ids" => $a_ids
80  ];
81  }
82  return $res;
83  }
$res
Definition: ltiservices.php:69

◆ getXmlRepresentation()

ilBibliographicExporter::getXmlRepresentation ( string  $a_entity,
string  $a_schema_version,
string  $a_id 
)

Definition at line 60 of file class.ilBibliographicExporter.php.

References ilXmlExporter\getAbsoluteExportDirectory(), and ilFileUtils\makeDirParents().

60  : string
61  {
63  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
64  $this->ds->exportLibraryFile($a_id);
65 
66  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], '', true, true);
67  }
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
+ Here is the call graph for this function:

◆ init()

ilBibliographicExporter::init ( )

Definition at line 36 of file class.ilBibliographicExporter.php.

References $DIC, and $ilDB.

36  : void
37  {
38  global $DIC;
39  $ilDB = $DIC['ilDB'];
40  $this->ds = new ilBibliographicDataSet();
41  $this->ds->setDSPrefix('ds');
42  $this->db = $ilDB;
43  }
Bibliographic dataset class.
global $DIC
Definition: feed.php:28

Field Documentation

◆ $db

ilBibliographicExporter::$db
protected

Definition at line 33 of file class.ilBibliographicExporter.php.

◆ $ds

ilBibliographicDataSet ilBibliographicExporter::$ds = null
protected

Definition at line 29 of file class.ilBibliographicExporter.php.


The documentation for this class was generated from the following file: