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(
89 $query,
array(
'integer',
'integer',
'integer',
'integer'),
101 if( $this->
getEvalMode() == self::EVAL_MODE_BY_QUESTION_SOLUTION )
110 $this->solutionComparisonExpressionList->load();
117 $this->db->update(
'qpl_qst_skl_assigns',
array(
131 $this->db->insert(
'qpl_qst_skl_assigns',
array(
141 if( $this->
getEvalMode() == self::EVAL_MODE_BY_QUESTION_SOLUTION )
150 $this->solutionComparisonExpressionList->save();
156 DELETE FROM qpl_qst_skl_assigns 159 AND skill_base_fi = %s 160 AND skill_tref_fi = %s 163 $this->db->manipulateF(
164 $query,
array(
'integer',
'integer',
'integer',
'integer'),
174 $this->solutionComparisonExpressionList->delete();
181 FROM qpl_qst_skl_assigns 184 AND skill_base_fi = %s 185 AND skill_tref_fi = %s 188 $res = $this->db->queryF(
189 $query,
array(
'integer',
'integer',
'integer',
'integer'),
195 return $row[
'cnt'] > 0;
280 require_once
'Services/Skill/classes/class.ilBasicSkill.php';
281 require_once
'Services/Skill/classes/class.ilSkillTree.php';
289 $path = $tree->getSkillTreePath(
294 foreach (
$path as $node)
296 if( $node[
'child'] > 1 && $node[
'skill_id'] != $this->
getSkillBaseId() )
298 $nodes[] = $node[
'title'];
337 return $this->
getEvalMode() == self::EVAL_MODE_BY_QUESTION_SOLUTION;
342 $this->solutionComparisonExpressionList->setQuestionId($this->
getQuestionId());
343 $this->solutionComparisonExpressionList->setSkillBaseId($this->
getSkillBaseId());
344 $this->solutionComparisonExpressionList->setSkillTrefId($this->
getSkillTrefId());
358 foreach($this->solutionComparisonExpressionList->get() as $expression)
360 if( $expression->getPoints() > $maxPoints )
362 $maxPoints = $expression->getPoints();
setQuestionId($questionId)
saveComparisonExpressions()
isValidSkillPoint($skillPoints)
loadComparisonExpressions()
deleteComparisonExpressions()
__construct(ilDBInterface $db)
setSkillTitle($skillTitle)
getSolutionComparisonExpressionList()
setSkillTrefId($skillTrefId)
$solutionComparisonExpressionList
Create styles array
The data for the language used.
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()