4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
29 return array(
"5.1.0");
40 return "http://www.ilias.de/xml/Modules/Survey/".$a_entity;
50 protected function getTypes($a_entity, $a_version)
52 if ($a_entity ==
"svy_quest_skill")
59 "SurveyId" =>
"integer",
60 "BaseSkillId" =>
"integer",
65 if ($a_entity ==
"svy_skill_threshold")
71 "SurveyId" =>
"integer",
72 "BaseSkillId" =>
"integer",
73 "TrefId" =>
"integer",
74 "LevelId" =>
"integer",
75 "Treshold" =>
"integer" 90 function readData($a_entity, $a_version, $a_ids, $a_field =
"")
96 if (!is_array($a_ids))
98 $a_ids =
array($a_ids);
101 if ($a_entity ==
"svy_quest_skill")
107 " FROM svy_quest_skill WHERE ".
108 $ilDB->in(
"survey_id", $a_ids,
false,
"integer"));
114 if ($a_entity ==
"svy_skill_threshold")
120 " FROM svy_skill_threshold WHERE ".
121 $ilDB->in(
"survey_id", $a_ids,
false,
"integer"));
153 function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
157 case "svy_quest_skill":
158 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
160 $q_id = $a_mapping->getMapping(
"Modules/Survey",
"svy_q", $a_rec[
"QId"]);
161 if ($q_id > 0 && count($skill_data) > 0)
163 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
165 $skill_survey->addQuestionSkillAssignment($q_id, $skill_data[0][
"skill_id"], $skill_data[0][
"tref_id"]);
169 case "svy_skill_threshold":
173 include_once(
"./Modules/Survey/classes/class.ilSurveySkillThresholds.php");
176 $skill_thres->writeThreshold(
$l[0][
"skill_id"],
$l[0][
"tref_id"],
$l[0][
"level_id"], $a_rec[
"Threshold"]);
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 ...
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.
getImport()
Get import object.
Skill/Competence handling in surveys.
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Determine the dependent sets of data.
Skill tresholds for 360 surveys.
static getLevelIdForImportIdMatchSkill($a_source_inst_id, $a_level_import_id, $a_skill_import_id, $a_tref_import_id=0)
Get level ids for import Ids matching common skills.
getCurrentInstallationId()
Get current installation id.
Create styles array
The data for the language used.
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
getSupportedVersions()
Get supported versions.
getTypes($a_entity, $a_version)
Get field types for entity.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.
static getCommonSkillIdForImportId($a_source_inst_id, $a_skill_import_id, $a_tref_import_id=0)
Get common skill ids for import IDs (newest first)