4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSolutionComparisonExpressionList.php';
80 SELECT obj_fi, question_fi, skill_base_fi, skill_tref_fi, skill_points, eval_mode 81 FROM qpl_qst_skl_assigns 84 AND skill_base_fi = %s 85 AND skill_tref_fi = %s 88 $res = $this->db->queryF(
90 array(
'integer',
'integer',
'integer',
'integer'),
101 if ($this->
getEvalMode() == self::EVAL_MODE_BY_QUESTION_SOLUTION) {
109 $this->solutionComparisonExpressionList->load();
116 'qpl_qst_skl_assigns',
118 'skill_points' => array(
'integer', (
int) $this->
getSkillPoints()),
129 $this->db->insert(
'qpl_qst_skl_assigns', array(
134 'skill_points' => array(
'integer', (
int) $this->
getSkillPoints()),
139 if ($this->
getEvalMode() == self::EVAL_MODE_BY_QUESTION_SOLUTION) {
147 $this->solutionComparisonExpressionList->save();
153 DELETE FROM qpl_qst_skl_assigns 156 AND skill_base_fi = %s 157 AND skill_tref_fi = %s 160 $this->db->manipulateF(
162 array(
'integer',
'integer',
'integer',
'integer'),
172 $this->solutionComparisonExpressionList->delete();
179 FROM qpl_qst_skl_assigns 182 AND skill_base_fi = %s 183 AND skill_tref_fi = %s 186 $res = $this->db->queryF(
188 array(
'integer',
'integer',
'integer',
'integer'),
194 return $row[
'cnt'] > 0;
279 require_once
'Services/Skill/classes/class.ilBasicSkill.php';
280 require_once
'Services/Skill/classes/class.ilSkillTree.php';
294 foreach (
$path as $node) {
295 if ($node[
'child'] > 1 && $node[
'skill_id'] != $this->
getSkillBaseId()) {
296 $nodes[] = $node[
'title'];
335 return $this->
getEvalMode() == self::EVAL_MODE_BY_QUESTION_SOLUTION;
340 $this->solutionComparisonExpressionList->setQuestionId($this->
getQuestionId());
341 $this->solutionComparisonExpressionList->setSkillBaseId($this->
getSkillBaseId());
342 $this->solutionComparisonExpressionList->setSkillTrefId($this->
getSkillTrefId());
355 foreach ($this->solutionComparisonExpressionList->get() as $expression) {
356 if ($expression->getPoints() > $maxPoints) {
357 $maxPoints = $expression->getPoints();
setQuestionId($questionId)
saveComparisonExpressions()
isValidSkillPoint($skillPoints)
loadComparisonExpressions()
foreach($_POST as $key=> $value) $res
deleteComparisonExpressions()
__construct(ilDBInterface $db)
setSkillTitle($skillTitle)
getSolutionComparisonExpressionList()
setSkillTrefId($skillTrefId)
$solutionComparisonExpressionList
setParentObjId($parentObjId)
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
const DEFAULT_COMPETENCE_POINTS
loadAdditionalSkillData()
const EVAL_MODE_BY_QUESTION_SOLUTION
setSkillPoints($skillPoints)
setSkillBaseId($skillBaseId)
const EVAL_MODE_BY_QUESTION_RESULT
initSolutionComparisonExpressionList()