ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Public Member Functions | |
readData ($a_entity, $a_version, $a_id, $a_field="") | |
Read data. More... | |
writeData ($a_entity, $a_version, $a_id, $data=[]) | |
Write properties for imported object (actually updates !!) More... | |
getElementNameByDbColumn ($db_col_name) | |
buildMetaData ($id) | |
getXmlNamespace ($a_entity, $a_schema_version) | |
Get xml namespace. More... | |
getDependencies () | |
getSupportedVersions () | |
![]() | |
__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 ...> ... 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... | |
Data Fields | |
$data = [] | |
$properties | |
db_type | |
![]() | |
$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 |
Protected Member Functions | |
getTypes ($a_entity, $a_version) | |
Get field types for entity. More... | |
![]() | |
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... | |
stripTags (array $rec, array $omit_keys=[]) | |
Private Member Functions | |
buildManifest () | |
buildProperties ($a_entity, $a_omit_header=false) | |
Private Attributes | |
$dic | |
$db_table = "sahs_lm" | |
$_archive = [] | |
$element_db_mapping = [] | |
Additional Inherited Members | |
![]() | |
$current_installation_id = "" | |
$db | |
$ds_log | |
$ds_namespace = 'ds' | |
Definition at line 8 of file class.ilScormAiccDataSet.php.
|
private |
Definition at line 363 of file class.ilScormAiccDataSet.php.
Referenced by getElementNameByDbColumn().
ilScormAiccDataSet::buildMetaData | ( | $id | ) |
Definition at line 309 of file class.ilScormAiccDataSet.php.
References $xml.
Referenced by getElementNameByDbColumn().
|
private |
$a_entity | ||
bool | $a_omit_header |
Definition at line 379 of file class.ilScormAiccDataSet.php.
References getElementNameByDbColumn(), and IL_INST_ID.
Referenced by getElementNameByDbColumn().
ilScormAiccDataSet::getDependencies | ( | ) |
Definition at line 350 of file class.ilScormAiccDataSet.php.
ilScormAiccDataSet::getElementNameByDbColumn | ( | $db_col_name | ) |
Definition at line 183 of file class.ilScormAiccDataSet.php.
References $DIC, $GLOBALS, ilExport\_getExportDirectory(), buildManifest(), buildMetaData(), buildProperties(), exit, getTypes(), ilUtil\getWebspaceDir(), IL_INST_ID, readData(), and ilUtil\zip().
Referenced by buildProperties().
ilScormAiccDataSet::getSupportedVersions | ( | ) |
Definition at line 355 of file class.ilScormAiccDataSet.php.
|
protected |
Get field types for entity.
string | $a_entity | entity |
string | $a_version | version number |
Definition at line 325 of file class.ilScormAiccDataSet.php.
Referenced by getElementNameByDbColumn().
ilScormAiccDataSet::getXmlNamespace | ( | $a_entity, | |
$a_schema_version | |||
) |
ilScormAiccDataSet::readData | ( | $a_entity, | |
$a_version, | |||
$a_id, | |||
$a_field = "" |
|||
) |
Read data.
Definition at line 98 of file class.ilScormAiccDataSet.php.
References $columns, $db_table, $DIC, $ilDB, $query, and $result.
Referenced by getElementNameByDbColumn().
ilScormAiccDataSet::writeData | ( | $a_entity, | |
$a_version, | |||
$a_id, | |||
$data = [] |
|||
) |
|
private |
Definition at line 29 of file class.ilScormAiccDataSet.php.
ilScormAiccDataSet::$data = [] |
Definition at line 24 of file class.ilScormAiccDataSet.php.
Referenced by writeData().
|
private |
Definition at line 19 of file class.ilScormAiccDataSet.php.
Referenced by readData().
|
private |
Definition at line 14 of file class.ilScormAiccDataSet.php.
|
private |
Definition at line 34 of file class.ilScormAiccDataSet.php.
ilScormAiccDataSet::$properties |
Definition at line 39 of file class.ilScormAiccDataSet.php.
ilScormAiccDataSet::db_type |
Definition at line 41 of file class.ilScormAiccDataSet.php.