ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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
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 28 of file class.ilBibliographicExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilBibliographicExporter::getValidSchemaVersions ( string  $a_entity)

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

47  : array
48  {
49  return ['4.5.0' => ['namespace' => 'http://www.ilias.de/Modules/DataCollection/dcl/4_5', 'xsd_file" => "ilias_dcl_4_5.xsd', 'uses_dataset' => true, 'min' => '4.5.0', 'max' => '']];
50  }

◆ getXmlExportTailDependencies()

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

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

References $res.

67  : array {
68  $res = [];
69  if ($a_entity === "bibl") {
70  $res[] = [
71  "component" => "components/ILIAS/ILIASObject",
72  "entity" => "common",
73  "ids" => $a_ids
74  ];
75  }
76  return $res;
77  }
$res
Definition: ltiservices.php:66

◆ getXmlRepresentation()

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

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

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

53  : string
54  {
56  $this->ds->initByExporter($this);
57  $this->ds->exportLibraryFile($a_id, $this->getAbsoluteExportDirectory());
58 
59  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], '', true, true);
60  }
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 37 of file class.ilBibliographicExporter.php.

References $DIC, and $ilDB.

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

Field Documentation

◆ $db

ilBibliographicExporter::$db
protected

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

◆ $ds

ilBibliographicDataSet ilBibliographicExporter::$ds = null
protected

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


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