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") {
57 "SurveyId" =>
"integer",
58 "BaseSkillId" =>
"integer",
63 if ($a_entity ==
"svy_skill_threshold") {
67 "SurveyId" =>
"integer",
68 "BaseSkillId" =>
"integer",
69 "TrefId" =>
"integer",
70 "LevelId" =>
"integer",
71 "Treshold" =>
"integer" 86 public function readData($a_entity, $a_version, $a_ids, $a_field =
"")
92 if (!is_array($a_ids)) {
93 $a_ids =
array($a_ids);
96 if ($a_entity ==
"svy_quest_skill") {
100 " FROM svy_quest_skill WHERE " .
101 $ilDB->in(
"survey_id", $a_ids,
false,
"integer"));
107 if ($a_entity ==
"svy_skill_threshold") {
108 switch ($a_version) {
111 " FROM svy_skill_threshold WHERE " .
112 $ilDB->in(
"survey_id", $a_ids,
false,
"integer"));
143 public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
146 case "svy_quest_skill":
147 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
149 $q_id = $a_mapping->getMapping(
"Modules/Survey",
"svy_q", $a_rec[
"QId"]);
150 if ($q_id > 0 && count($skill_data) > 0) {
151 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
153 $skill_survey->addQuestionSkillAssignment($q_id, $skill_data[0][
"skill_id"], $skill_data[0][
"tref_id"]);
157 case "svy_skill_threshold":
160 include_once(
"./Modules/Survey/classes/class.ilSurveySkillThresholds.php");
163 $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)