/**
  * Determine max scales and questions
  *
  * @param
  * @return
  */
 function determineMaxScalesAndQuestions()
 {
     include_once "./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php";
     include_once "./Modules/Survey/classes/class.ilSurveySkill.php";
     $ssk = new ilSurveySkill($this->object);
     $this->question_ids = $ssk->getQuestionsForSkill($this->base_skill_id, $this->tref_id);
     $this->scale_sum = $ssk->determineMaxScale($this->base_skill_id, $this->tref_id);
 }
 /**
  * Get skills
  *
  * @param
  * @return
  */
 function getSkills()
 {
     include_once "./Modules/Survey/classes/class.ilSurveySkill.php";
     $sskill = new ilSurveySkill($this->survey);
     $opts = $sskill->getAllAssignedSkillsAsOptions();
     $data = array();
     foreach ($opts as $k => $o) {
         $v = explode(":", $k);
         $question_ids = $sskill->getQuestionsForSkill($v[0], $v[1]);
         $scale_sum = $sskill->determineMaxScale($v[0], $v[1]);
         $data[] = array("title" => $o, "base_skill" => $v[0], "tref_id" => $v[1], "nr_of_q" => count($question_ids), "scale_sum" => $scale_sum);
     }
     $this->setData($data);
 }