27        return array(
"5.1.0");
 
   38        return "http://www.ilias.de/xml/Modules/Survey/" . $a_entity;
 
   48    protected function getTypes($a_entity, $a_version)
 
   50        if ($a_entity == 
"svy_quest_skill") {
 
   55                            "SurveyId" => 
"integer",
 
   56                            "BaseSkillId" => 
"integer",
 
   61        if ($a_entity == 
"svy_skill_threshold") {
 
   65                            "SurveyId" => 
"integer",
 
   66                            "BaseSkillId" => 
"integer",
 
   67                            "TrefId" => 
"integer",
 
   68                            "LevelId" => 
"integer",
 
   69                            "Treshold" => 
"integer" 
   84    public function readData($a_entity, $a_version, $a_ids, $a_field = 
"")
 
   88        $this->data = array();
 
   90        if (!is_array($a_ids)) {
 
   91            $a_ids = array($a_ids);
 
   94        if ($a_entity == 
"svy_quest_skill") {
 
   98                            " FROM svy_quest_skill WHERE " .
 
   99                            $ilDB->in(
"survey_id", $a_ids, 
false, 
"integer"));
 
  105        if ($a_entity == 
"svy_skill_threshold") {
 
  106            switch ($a_version) {
 
  109                            " FROM svy_skill_threshold WHERE " .
 
  110                            $ilDB->in(
"survey_id", $a_ids, 
false, 
"integer"));
 
  141    public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
 
  144            case "svy_quest_skill":
 
  146                $q_id = $a_mapping->getMapping(
"Modules/Survey", 
"svy_q", $a_rec[
"QId"]);
 
  147                if ($q_id > 0 && count($skill_data) > 0) {
 
  149                    $skill_survey->addQuestionSkillAssignment($q_id, $skill_data[0][
"skill_id"], $skill_data[0][
"tref_id"]);
 
  153            case "svy_skill_threshold":
 
  157                    $skill_thres->writeThreshold($l[0][
"skill_id"], $l[0][
"tref_id"], $l[0][
"level_id"], $a_rec[
"Threshold"]);
 
An exception for terminatinating execution or to throw for unit testing.
static getCommonSkillIdForImportId($a_source_inst_id, $a_skill_import_id, $a_tref_import_id=0)
Get common skill ids for import IDs (newest first)
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.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
getImport()
Get import object.
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 ...
getCurrentInstallationId()
Get current installation id.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Determine the dependent sets of data.
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.
getTypes($a_entity, $a_version)
Get field types for entity.
getSupportedVersions()
Get supported versions.
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
Skill tresholds for 360 surveys.
Skill/Competence handling in surveys.