|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
LearningModule Data set class. More...
Inheritance diagram for ilLearningModuleDataSet:
Collaboration diagram for ilLearningModuleDataSet:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| setMasterLanguageOnly ($a_val) | |
| Set master language only (export) More... | |
| getMasterLanguageOnly () | |
| Get master language only (export) More... | |
| setTranslationImportMode ($a_lm, $a_lang="") | |
| Set translation import mode. More... | |
| getTranslationImportMode () | |
| Get translation import mode. More... | |
| getTranslationLM () | |
| Get translation lm (import. More... | |
| getTranslationLang () | |
| Get translation language (import. More... | |
| getSupportedVersions () | |
| Get supported versions. More... | |
| getXmlNamespace ($a_entity, $a_schema_version) | |
| Get xml namespace. More... | |
| readData ($a_entity, $a_version, $a_ids, $a_field="") | |
| Read data. More... | |
| importRecord ($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version) | |
| Import record. 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) | |
| Get field types for entity. More... | |
| getDependencies ($a_entity, $a_version, $a_rec, $a_ids) | |
| Determine the dependent sets of data. 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... | |
| stripTags (array $rec, array $omit_keys=[]) | |
Protected Attributes | |
| $master_lang_only = false | |
| $transl_into = false | |
| $transl_into_lm = null | |
| $transl_lang = "" | |
| $lm_log | |
Protected Attributes inherited from ilDataSet | |
| $current_installation_id = "" | |
| $db | |
| $ds_log | |
| $ds_namespace = 'ds' | |
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 |
LearningModule Data set class.
This class implements the following entities:
Definition at line 19 of file class.ilLearningModuleDataSet.php.
| ilLearningModuleDataSet::__construct | ( | ) |
Constructor.
Reimplemented from ilDataSet.
Definition at line 34 of file class.ilLearningModuleDataSet.php.
References ILIAS\GlobalScreen\Provider\__construct(), and ilLoggerFactory\getLogger().
Here is the call graph for this function:
|
protected |
Determine the dependent sets of data.
Definition at line 397 of file class.ilLearningModuleDataSet.php.
References getMasterLanguageOnly().
Here is the call graph for this function:| ilLearningModuleDataSet::getMasterLanguageOnly | ( | ) |
Get master language only (export)
Definition at line 55 of file class.ilLearningModuleDataSet.php.
References $master_lang_only.
Referenced by getDependencies(), and readData().
Here is the caller graph for this function:| ilLearningModuleDataSet::getSupportedVersions | ( | ) |
Get supported versions.
return
Reimplemented from ilDataSet.
Definition at line 113 of file class.ilLearningModuleDataSet.php.
| ilLearningModuleDataSet::getTranslationImportMode | ( | ) |
Get translation import mode.
Definition at line 82 of file class.ilLearningModuleDataSet.php.
References $transl_into.
Referenced by importRecord().
Here is the caller graph for this function:| ilLearningModuleDataSet::getTranslationLang | ( | ) |
Get translation language (import.
Definition at line 102 of file class.ilLearningModuleDataSet.php.
References $transl_lang.
Referenced by importRecord().
Here is the caller graph for this function:| ilLearningModuleDataSet::getTranslationLM | ( | ) |
Get translation lm (import.
Definition at line 92 of file class.ilLearningModuleDataSet.php.
References $transl_into_lm.
Referenced by importRecord().
Here is the caller graph for this function:
|
protected |
Get field types for entity.
| string | $a_entity | entity |
| string | $a_version | version number |
Reimplemented from ilDataSet.
Definition at line 136 of file class.ilLearningModuleDataSet.php.
| ilLearningModuleDataSet::getXmlNamespace | ( | $a_entity, | |
| $a_schema_version | |||
| ) |
Get xml namespace.
return
Reimplemented from ilDataSet.
Definition at line 124 of file class.ilLearningModuleDataSet.php.
| ilLearningModuleDataSet::importRecord | ( | $a_entity, | |
| $a_types, | |||
| $a_rec, | |||
| $a_mapping, | |||
| $a_schema_version | |||
| ) |
Import record.
return
Definition at line 426 of file class.ilLearningModuleDataSet.php.
References ilNote\activateComments(), ilDataSet\getCurrentInstallationId(), ilObjectFactory\getInstanceByObjId(), getTranslationImportMode(), getTranslationLang(), getTranslationLM(), IL_INST_ID, IL_LAST_NODE, ilLMObject\putInTree(), ilDataSet\stripTags(), and ilUtil\yn2tf().
Here is the call graph for this function:| ilLearningModuleDataSet::readData | ( | $a_entity, | |
| $a_version, | |||
| $a_ids, | |||
$a_field = "" |
|||
| ) |
Read data.
return
Definition at line 259 of file class.ilLearningModuleDataSet.php.
References ilDataSet\$db, $ilDB, ilNote\commentsActivated(), ilDataSet\convertToLeadingUpper(), ilDataSet\getDirectDataFromQuery(), getMasterLanguageOnly(), and IL_INST_ID.
Here is the call graph for this function:| ilLearningModuleDataSet::setMasterLanguageOnly | ( | $a_val | ) |
Set master language only (export)
| bool | $a_val | export only master language |
Definition at line 45 of file class.ilLearningModuleDataSet.php.
| ilLearningModuleDataSet::setTranslationImportMode | ( | $a_lm, | |
$a_lang = "" |
|||
| ) |
Set translation import mode.
| ilObjLearningModule | $a_lm | learning module |
| string | $a_lang | language |
Definition at line 66 of file class.ilLearningModuleDataSet.php.
|
protected |
Definition at line 29 of file class.ilLearningModuleDataSet.php.
|
protected |
Definition at line 21 of file class.ilLearningModuleDataSet.php.
Referenced by getMasterLanguageOnly().
|
protected |
Definition at line 22 of file class.ilLearningModuleDataSet.php.
Referenced by getTranslationImportMode().
|
protected |
Definition at line 23 of file class.ilLearningModuleDataSet.php.
Referenced by getTranslationLM().
|
protected |
Definition at line 24 of file class.ilLearningModuleDataSet.php.
Referenced by getTranslationLang().