ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
ilBibliographicExporter Class Reference

Exporter class for Bibliographic class. More...

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

Public Member Functions

 init ()
 
 getValidSchemaVersions ($a_entity)
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 Constructor. More...
 
 setExport (ilExport $a_exp)
 Set export object. More...
 
 getExport ()
 Get export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 init ()
 
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories. More...
 
 getRelativeExportDirectory ()
 Get relative export directory. More...
 
 getAbsoluteExportDirectory ()
 Get absolute export directory. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version. More...
 

Protected Attributes

 $ds
 
 $db
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 

Detailed Description

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 15 of file class.ilBibliographicExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilBibliographicExporter::getValidSchemaVersions (   $a_entity)
Parameters
string$a_entity
Returns
array

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

References array.

41  {
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  }
Create styles array
The data for the language used.

◆ getXmlRepresentation()

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

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

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

54  {
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  }
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getAbsoluteExportDirectory()
Get absolute export directory.
+ Here is the call graph for this function:

◆ init()

ilBibliographicExporter::init ( )

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

References $DIC, and $ilDB.

27  {
28  global $DIC;
29  $ilDB = $DIC['ilDB'];
30  $this->ds = new ilBibliographicDataSet();
31  $this->ds->setDSPrefix('ds');
32  $this->db = $ilDB;
33  }
Bibliographic dataset class.
global $ilDB
global $DIC

Field Documentation

◆ $db

ilBibliographicExporter::$db
protected

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

◆ $ds

ilBibliographicExporter::$ds
protected

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


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