|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
DataCollection dataset class. More...
Inheritance diagram for ilDataCollectionDataSet:
Collaboration diagram for ilDataCollectionDataSet:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getSupportedVersions () | |
| getCache ($a_entity) | |
| Get cached data from a given entity. More... | |
| getXmlNamespace ($a_entity, $a_schema_version) | |
| readData ($a_entity, $a_version, $a_ids) | |
| Read data from Cache for a given entity and ID(s) More... | |
Public Member Functions inherited from ilDataSet | |
| __construct () | |
| Constructor. More... | |
| init ($a_entity, $a_schema_version) | |
| Init. More... | |
| getSupportedVersions () | |
| Get supported version. More... | |
| readData ($a_entity, $a_version, $a_ids) | |
| Read data from DB. More... | |
| setExportDirectories ($a_relative, $a_absolute) | |
| Set export directories. More... | |
| setImportDirectory ($a_val) | |
| Set import directory. More... | |
| getImportDirectory () | |
| Get import directory. More... | |
| setDSPrefix ($a_val) | |
| Set XML dataset namespace prefix. More... | |
| getDSPrefix () | |
| Get XML dataset namespace prefix. More... | |
| getDSPrefixString () | |
| getDirectDataFromQuery ($a_query, $a_convert_to_leading_upper=true, $a_set=true) | |
| Get data from query.This is a standard procedure, all db field names are directly mapped to abstract fields. More... | |
| convertToLeadingUpper ($a_str) | |
| Make xyz_abc a XyzAbc string. More... | |
| getJsonRepresentation () | |
| Get json representation. More... | |
| 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 ...> ... </types> <set entity="table_name"> <rec> <field_1>content</field_1> <field_2>my_date</field_2> <field_3>my_number</field_3> </rec> ... </set> </dataset> More... | |
| addRecordsXml ($a_writer, $a_prefixes, $a_entity, $a_schema_version, $a_ids, $a_field="") | |
| Add records xml. More... | |
| afterXmlRecordWriting ($a_entity, $a_version, $a_set) | |
| After xml record writing hook record. More... | |
| getNamespaces (&$namespaces, $a_entity, $a_schema_version) | |
| Get xml namespaces. More... | |
| getXmlRecord ($a_entity, $a_version, $a_set) | |
| Get xml record for version. More... | |
| getJsonRecord ($a_set) | |
| Get json record for version. More... | |
| getXmlTypes ($a_entity, $a_version) | |
| Get xml types. More... | |
| getJsonTypes ($a_entity, $a_version) | |
| Get json types. More... | |
| getXMLEntityName ($a_entity, $a_version) | |
| Get entity name for xml (may be overwritten) More... | |
| getXMLEntityTag ($a_entity, $a_schema_version) | |
| Get entity tag. More... | |
| getJsonEntityName ($a_entity, $a_version) | |
| Get entity name for json (may be overwritten) More... | |
| setImport ($a_val) | |
| Set import object. More... | |
| getImport () | |
| Get import object. More... | |
| setCurrentInstallationId ($a_val) | |
| Set current installation id. More... | |
| getCurrentInstallationId () | |
| Get current installation id. More... | |
Protected Member Functions | |
| getTypes ($a_entity, $a_version) | |
| Map XML attributes of entities to datatypes (text, integer...) More... | |
| 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) More... | |
| _readData ($a_entity, $a_ids) | |
| Build data array, data is read from cache except dcl object itself. More... | |
| buildCache ($a_entity, $set) | |
| Helper method to build cache for data of all entities. More... | |
Protected Member Functions inherited from ilDataSet | |
| getTypes ($a_entity, $a_version) | |
| Get (abstract) types for (abstract) field names. More... | |
| getXmlNamespace ($a_entity, $a_schema_version) | |
| Get xml namespace. More... | |
| createObjectExportId ($a_type, $a_id) | |
| Build ilias export id. More... | |
| parseObjectExportId ($a_id, $a_fallback_id=null) | |
| Parse export id. More... | |
Protected Attributes | |
| $db | |
| $data = array() | |
| $record_field_ids_2_storage = array() | |
| $caches | |
| $import_dc_object | |
| $count_imported_tables = 0 | |
| $import_record_field_cache = array() | |
| $user | |
| $import_temp_refs = array() | |
| $import_temp_refs_props = array() | |
| $import_temp_new_mob_ids = array() | |
Protected Attributes inherited from ilDataSet | |
| $current_installation_id = "" | |
| $db | |
| $ds_log | |
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 |
DataCollection dataset class.
Definition at line 10 of file class.ilDataCollectionDataSet.php.
| ilDataCollectionDataSet::__construct | ( | ) |
Constructor.
Reimplemented from ilDataSet.
Definition at line 94 of file class.ilDataCollectionDataSet.php.
References $DIC, $ilDB, $ilUser, ILIAS\GlobalScreen\Provider\__construct(), and user().
Here is the call graph for this function:
|
protected |
Build data array, data is read from cache except dcl object itself.
| $a_entity | |
| $a_ids |
Definition at line 725 of file class.ilDataCollectionDataSet.php.
References $data, and ilObject\_lookupType().
Here is the call graph for this function:
|
protected |
Helper method to build cache for data of all entities.
| $a_entity | ||
| Object | $set | ilDB->query() object |
Definition at line 765 of file class.ilDataCollectionDataSet.php.
References $data.
Referenced by getDependencies().
Here is the caller graph for this function:| ilDataCollectionDataSet::getCache | ( | $a_entity | ) |
Get cached data from a given entity.
| $a_entity |
| ilException |
Definition at line 122 of file class.ilDataCollectionDataSet.php.
|
protected |
Return dependencies form entities to other entities (in our case these are all the DB relations)
| $a_entity | |
| $a_version | |
| $a_rec | |
| $a_ids |
Definition at line 608 of file class.ilDataCollectionDataSet.php.
References buildCache(), and ilDclCache\getFieldCache().
Here is the call graph for this function:| ilDataCollectionDataSet::getSupportedVersions | ( | ) |
Reimplemented from ilDataSet.
Definition at line 108 of file class.ilDataCollectionDataSet.php.
|
protected |
Map XML attributes of entities to datatypes (text, integer...)
| string | $a_entity | |
| string | $a_version |
Reimplemented from ilDataSet.
Definition at line 472 of file class.ilDataCollectionDataSet.php.
| ilDataCollectionDataSet::getXmlNamespace | ( | $a_entity, | |
| $a_schema_version | |||
| ) |
| string | $a_entity | |
| string | $a_schema_version |
Reimplemented from ilDataSet.
Definition at line 138 of file class.ilDataCollectionDataSet.php.
| ilDataCollectionDataSet::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 709 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 46 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 69 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 20 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 16 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 65 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 75 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 91 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 83 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 87 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 26 of file class.ilDataCollectionDataSet.php.
|
protected |
Definition at line 79 of file class.ilDataCollectionDataSet.php.