35         return array(
"5.1.0");
    38     protected function getXmlNamespace(
string $a_entity, 
string $a_schema_version): string
    40         return "https://www.ilias.de/xml/Modules/Survey/" . $a_entity;
    46     protected function getTypes(
string $a_entity, 
string $a_version): array
    48         if ($a_entity === 
"svy_quest_skill") {
    53                             "SurveyId" => 
"integer",
    54                             "BaseSkillId" => 
"integer",
    59         if ($a_entity === 
"svy_skill_threshold") {
    63                             "SurveyId" => 
"integer",
    64                             "BaseSkillId" => 
"integer",
    65                             "TrefId" => 
"integer",
    66                             "LevelId" => 
"integer",
    67                             "Treshold" => 
"integer"    74     public function readData(
string $a_entity, 
string $a_version, array $a_ids): void
    78         $this->data = array();
    80         if ($a_entity === 
"svy_quest_skill") {
    84                             " FROM svy_quest_skill WHERE " .
    85                             $ilDB->in(
"survey_id", $a_ids, 
false, 
"integer"));
    90         if ($a_entity === 
"svy_skill_threshold") {
    94                             " FROM svy_skill_threshold WHERE " .
    95                             $ilDB->in(
"survey_id", $a_ids, 
false, 
"integer"));
   107         ?array $a_rec = null,
   127         string $a_schema_version
   131             case "svy_quest_skill":
   133                 $q_id = $a_mapping->
getMapping(
"components/ILIAS/Survey", 
"svy_q", $a_rec[
"QId"]);
   134                 if ($q_id > 0 && count($skill_data) > 0) {
   136                     $skill_survey->addQuestionSkillAssignment($q_id, $skill_data[0][
"skill_id"], $skill_data[0][
"tref_id"]);
   140             case "svy_skill_threshold":
   144                     $skill_thres->writeThreshold($l[0][
"skill_id"], $l[0][
"tref_id"], $l[0][
"level_id"], $a_rec[
"Threshold"]);
 importRecord(string $a_entity, array $a_types, array $a_rec, ilImportMapping $a_mapping, string $a_schema_version)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
readData(string $a_entity, string $a_version, array $a_ids)
 
getDependencies(string $a_entity, string $a_version, ?array $a_rec=null, ?array $a_ids=null)
Determine the dependent sets of data. 
 
static getCommonSkillIdForImportId(int $a_source_inst_id, int $a_skill_import_id, int $a_tref_import_id=0)
 
getXmlNamespace(string $a_entity, string $a_schema_version)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getMapping(string $a_comp, string $a_entity, string $a_old_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getCurrentInstallationId()
 
getTypes(string $a_entity, string $a_version)
Get field types for entity. 
 
getDirectDataFromQuery(string $a_query, bool $a_convert_to_leading_upper=true, bool $a_set=true)
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract ...
 
static getLevelIdForImportIdMatchSkill(int $a_source_inst_id, int $a_level_import_id, int $a_skill_import_id, int $a_tref_import_id=0)
 
stripTags(array $rec, array $omit_keys=[])