ILIAS
Release_4_2_x_branch Revision 61807
|
Media Pool Data set class. More...
Public Member Functions | |
getSupportedVersions ($a_entity) | |
Get supported versions. | |
getXmlNamespace ($a_entity, $a_target_release) | |
Get xml namespace. | |
readData ($a_entity, $a_version, $a_ids, $a_field="") | |
Read data. | |
getXmlRecord ($a_entity, $a_version, $a_set) | |
Get xml record. | |
importRecord ($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version) | |
Import record. | |
Public Member Functions inherited from ilDataSet | |
__construct () | |
Constructor. | |
init ($a_entity, $a_target_release) | |
Init. | |
readData ($a_entity, $a_version, $a_ids) | |
Read data from DB. | |
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_target_release, $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_target_release, $a_ids, $a_field="") | |
Add records xml. | |
getNamespaces (&$namespaces, $a_entity, $a_target_release) | |
Get xml namespaces. | |
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_target_release) | |
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) | |
Get field types for entity. | |
getDependencies ($a_entity, $a_version, $a_rec, $a_ids) | |
Determine the dependent sets of data. |
Additional Inherited Members | |
Data Fields inherited from ilDataSet | |
$dircnt |
Media Pool Data set class.
This class implements the following entities:
Definition at line 19 of file class.ilMediaObjectDataSet.php.
|
protected |
Determine the dependent sets of data.
Definition at line 216 of file class.ilMediaObjectDataSet.php.
ilMediaObjectDataSet::getSupportedVersions | ( | $a_entity | ) |
Get supported versions.
@return |
Reimplemented from ilDataSet.
Definition at line 27 of file class.ilMediaObjectDataSet.php.
|
protected |
Get field types for entity.
@return |
Reimplemented from ilDataSet.
Definition at line 59 of file class.ilMediaObjectDataSet.php.
ilMediaObjectDataSet::getXmlNamespace | ( | $a_entity, | |
$a_target_release | |||
) |
Get xml namespace.
@return |
Reimplemented from ilDataSet.
Definition at line 48 of file class.ilMediaObjectDataSet.php.
ilMediaObjectDataSet::getXmlRecord | ( | $a_entity, | |
$a_version, | |||
$a_set | |||
) |
Get xml record.
@return |
Reimplemented from ilDataSet.
Definition at line 240 of file class.ilMediaObjectDataSet.php.
References $dir, and ilObjMediaObject\_getDirectory().
ilMediaObjectDataSet::importRecord | ( | $a_entity, | |
$a_types, | |||
$a_rec, | |||
$a_mapping, | |||
$a_schema_version | |||
) |
Import record.
@return |
Definition at line 258 of file class.ilMediaObjectDataSet.php.
References $dir, ilObjMediaObject\_createThumbnailDirectory(), ilObjMediaObject\_getDirectory(), ilDataSet\getImportDirectory(), and ilUtil\rCopy().
ilMediaObjectDataSet::readData | ( | $a_entity, | |
$a_version, | |||
$a_ids, | |||
$a_field = "" |
|||
) |
Read data.
@return |
Definition at line 141 of file class.ilMediaObjectDataSet.php.
References $ilDB, ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilObject\_lookupType(), and ilDataSet\getDirectDataFromQuery().