|
ILIAS
Release_5_0_x_branch Revision 61816
|
Bibliographic dataset class. More...
Inheritance diagram for ilBibliographicDataSet:
Collaboration diagram for ilBibliographicDataSet:Public Member Functions | |
| __construct () | |
| Constructor. | |
| getSupportedVersions () | |
| getXmlNamespace ($a_entity, $a_schema_version) | |
| importRecord ($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version) | |
| readData ($a_entity, $a_version, $a_ids) | |
| Read data from Cache for a given entity and ID(s) | |
| exportLibraryFile ($a_id) | |
| importLibraryFile ($a_mapping) | |
Public Member Functions inherited from ilDataSet | |
| init ($a_entity, $a_schema_version) | |
| Init. | |
| setExportDirectories ($a_relative, $a_absolute) | |
| Set export directories. | |
| setImportDirectory ($a_val) | |
| Set import directory. | |
| getImportDirectory () | |
| Get import directory. | |
| setDSPrefix ($a_val) | |
| Set XML dataset namespace prefix. | |
| getDSPrefix () | |
| Get XML dataset namespace prefix. | |
| getDSPrefixString () | |
| getDirectDataFromQuery ($a_query, $a_convert_to_leading_upper=true) | |
| Get data from query.This is a standard procedure, all db field names are directly mapped to abstract fields. | |
| convertToLeadingUpper ($a_str) | |
| Make xyz_abc a XyzAbc string. | |
| getJsonRepresentation () | |
| Get json representation. | |
| getXmlRepresentation ($a_entity, $a_schema_version, $a_ids, $a_field="", $a_omit_header=false, $a_omit_types=false) | |
| Get xml representation <dataset install_id="123" install_url="..."> <types entity="table_name" version="4.0.1"> <ftype name="field_1" type="text"> <ftype name="field_2" type="date"> <ftype name="field_3" type="integer"> </types> <types ...> ... | |
| addRecordsXml ($a_writer, $a_prefixes, $a_entity, $a_schema_version, $a_ids, $a_field="") | |
| Add records xml. | |
| afterXmlRecordWriting ($a_entity, $a_version, $a_set) | |
| After xml record writing hook record. | |
| getNamespaces (&$namespaces, $a_entity, $a_schema_version) | |
| Get xml namespaces. | |
| getXmlRecord ($a_entity, $a_version, $a_set) | |
| Get xml record for version. | |
| getJsonRecord ($a_set) | |
| Get json record for version. | |
| getXmlTypes ($a_entity, $a_version) | |
| Get xml types. | |
| getJsonTypes ($a_entity, $a_version) | |
| Get json types. | |
| getXMLEntityName ($a_entity, $a_version) | |
| Get entity name for xml (may be overwritten) | |
| getXMLEntityTag ($a_entity, $a_schema_version) | |
| Get entity tag. | |
| getJsonEntityName ($a_entity, $a_version) | |
| Get entity name for json (may be overwritten) | |
| setImport ($a_val) | |
| Set import object. | |
| getImport () | |
| Get import object. | |
Protected Member Functions | |
| getTypes ($a_entity, $a_version) | |
| Map XML attributes of entities to datatypes (text, integer...) | |
| getDependencies ($a_entity, $a_version, $a_rec, $a_ids) | |
| Return dependencies form entities to other entities (in our case these are all the DB relations) | |
| _readData ($a_entity, $a_ids) | |
| Build data array, data is read from cache except bibl object itself. | |
Protected Member Functions inherited from ilDataSet | |
| createObjectExportId ($a_type, $a_id) | |
| Build ilias export id. | |
| parseObjectExportId ($a_id, $a_fallback_id=NULL) | |
| Parse export id. | |
Protected Attributes | |
| $db | |
| $data = array() | |
| $record_field_ids_2_storage = array() | |
| $import_bib_object | |
| $user | |
| $import_temp_refs = array() | |
| $import_temp_refs_props = array() | |
Additional Inherited Members | |
Data Fields inherited from ilDataSet | |
| $dircnt | |
| const | EXPORT_NO_INST_ID = 1 |
| const | EXPORT_ID_ILIAS_LOCAL = 2 |
| const | EXPORT_ID_ILIAS_LOCAL_INVALID = 3 |
| const | EXPORT_ID_ILIAS_REMOTE = 4 |
| const | EXPORT_ID_ILIAS_REMOTE_INVALID = 5 |
| const | EXPORT_ID = 6 |
| const | EXPORT_ID_INVALID = 7 |
Bibliographic dataset class.
Definition at line 11 of file class.ilBibliographicDataSet.php.
| ilBibliographicDataSet::__construct | ( | ) |
Constructor.
Reimplemented from ilDataSet.
Definition at line 45 of file class.ilBibliographicDataSet.php.
|
protected |
Build data array, data is read from cache except bibl object itself.
| string | $a_entity | |
| array | $a_ids |
Definition at line 158 of file class.ilBibliographicDataSet.php.
References $data, and ilObject\_lookupType().
Referenced by readData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBibliographicDataSet::exportLibraryFile | ( | $a_id | ) |
| int | $a_id |
Definition at line 184 of file class.ilBibliographicDataSet.php.
|
protected |
Return dependencies form entities to other entities (in our case these are all the DB relations)
| string | $a_entity | |
| string | $a_version | |
| array | $a_rec | |
| array | $a_ids |
Definition at line 131 of file class.ilBibliographicDataSet.php.
| ilBibliographicDataSet::getSupportedVersions | ( | ) |
Reimplemented from ilDataSet.
Definition at line 56 of file class.ilBibliographicDataSet.php.
|
protected |
Map XML attributes of entities to datatypes (text, integer...)
| string | $a_entity | |
| string | $a_version |
Reimplemented from ilDataSet.
Definition at line 105 of file class.ilBibliographicDataSet.php.
| ilBibliographicDataSet::getXmlNamespace | ( | $a_entity, | |
| $a_schema_version | |||
| ) |
| string | $a_entity | |
| string | $a_schema_version |
Reimplemented from ilDataSet.
Definition at line 67 of file class.ilBibliographicDataSet.php.
| ilBibliographicDataSet::importLibraryFile | ( | $a_mapping | ) |
| ilImportMapping | $a_mapping |
Definition at line 193 of file class.ilBibliographicDataSet.php.
References ilUtil\getDataDir(), and ilDataSet\getImportDirectory().
Referenced by importRecord().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBibliographicDataSet::importRecord | ( | $a_entity, | |
| $a_types, | |||
| $a_rec, | |||
| $a_mapping, | |||
| $a_schema_version | |||
| ) |
| string | $a_entity | |
| $a_types | ||
| array | $a_rec | |
| ilImportMapping | $a_mapping | |
| string | $a_schema_version |
Definition at line 79 of file class.ilBibliographicDataSet.php.
References $ilDB, and importLibraryFile().
Here is the call graph for this function:| ilBibliographicDataSet::readData | ( | $a_entity, | |
| $a_version, | |||
| $a_ids | |||
| ) |
Read data from Cache for a given entity and ID(s)
| string | $a_entity | |
| string | $a_version | |
| array | $a_ids | one or multiple ids |
Reimplemented from ilDataSet.
Definition at line 143 of file class.ilBibliographicDataSet.php.
References _readData().
Here is the call graph for this function:
|
protected |
Definition at line 20 of file class.ilBibliographicDataSet.php.
Referenced by _readData().
|
protected |
Definition at line 16 of file class.ilBibliographicDataSet.php.
|
protected |
Definition at line 30 of file class.ilBibliographicDataSet.php.
|
protected |
Definition at line 38 of file class.ilBibliographicDataSet.php.
|
protected |
Definition at line 42 of file class.ilBibliographicDataSet.php.
|
protected |
Definition at line 26 of file class.ilBibliographicDataSet.php.
|
protected |
Definition at line 34 of file class.ilBibliographicDataSet.php.