private function buildLacLegendToggleButton()
 {
     if ($this->assignment->hasEvalModeBySolution()) {
         $langVar = 'ass_lac_hide_legend_btn';
     } else {
         $langVar = 'ass_lac_show_legend_btn';
     }
     return '<a id="lac_legend_toggle_btn" href="#">' . $this->lng->txt($langVar) . '</a>';
 }
 private function isSkillPointInputRequired(ilAssQuestionSkillAssignment $assignment)
 {
     if (!$this->areManipulationsEnabled()) {
         return false;
     }
     if ($assignment->hasEvalModeBySolution()) {
         return false;
     }
     return true;
 }
 private function saveSkillPointsCmd()
 {
     if (is_array($_POST['skill_points'])) {
         require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillAssignment.php';
         $success = false;
         foreach ($_POST['skill_points'] as $assignmentKey => $skillPoints) {
             $assignmentKey = explode(':', $assignmentKey);
             $skillBaseId = (int) $assignmentKey[0];
             $skillTrefId = (int) $assignmentKey[1];
             $questionId = (int) $assignmentKey[2];
             if ($this->isTestQuestion($questionId) && (int) $skillPoints > 0) {
                 $assignment = new ilAssQuestionSkillAssignment($this->db);
                 $assignment->setParentObjId($this->getQuestionContainerId());
                 $assignment->setQuestionId($questionId);
                 $assignment->setSkillBaseId($skillBaseId);
                 $assignment->setSkillTrefId($skillTrefId);
                 if ($assignment->dbRecordExists()) {
                     $assignment->loadFromDb();
                     if (!$assignment->hasEvalModeBySolution()) {
                         $assignment->setSkillPoints((int) $skillPoints);
                         $assignment->saveToDb();
                     }
                 }
             }
         }
     }
     ilUtil::sendSuccess($this->lng->txt('tst_msg_skl_qst_assign_points_saved'), true);
     $this->ctrl->redirect($this, self::CMD_SHOW_SKILL_QUEST_ASSIGNS);
 }