Пример #1
0
 /**
  * Remove skill from question
  */
 function removeSkillFromQuestion()
 {
     global $ilCtrl, $lng;
     include_once "./Modules/Survey/classes/class.ilSurveySkill.php";
     $skill_survey = new ilSurveySkill($this->survey);
     $skill_survey->removeQuestionSkillAssignment((int) $_GET["q_id"]);
     ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
     $ilCtrl->redirect($this, "listQuestionAssignment");
 }
Пример #2
0
 /**
  * Remove question skill assignment
  *
  * @param int $a_question_id question id
  */
 static function handleQuestionDeletion($a_question_id, $a_obj_id)
 {
     global $ilDB;
     if (ilObject::_lookupType($a_obj_id) == "svy") {
         // mantis 11691
         include_once './Modules/Survey/classes/class.ilObjSurvey.php';
         $svy = new ilObjSurvey($a_obj_id, false);
         $svy_skill = new ilSurveySkill($svy);
         $svy_skill->removeQuestionSkillAssignment($a_question_id);
     }
 }