47 $this->xmlWriter =
null;
48 $this->questionIds = [];
49 $this->assignmentList =
null;
103 $ilDB = $DIC[
'ilDB'];
105 $this->
getXmlWriter()->xmlStartTag(
'QuestionSkillAssignments');
108 $this->
getXmlWriter()->xmlStartTag(
'TriggerQuestion', [
'Id' => $questionId]);
110 foreach ($this->
getAssignmentList()->getAssignmentsByQuestionId($questionId) as $questionSkillAssignment) {
114 'BaseId' => $questionSkillAssignment->getSkillBaseId(),
115 'TrefId' => $questionSkillAssignment->getSkillTrefId()
119 'OriginalSkillTitle',
121 $questionSkillAssignment->getSkillTitle()
127 $questionSkillAssignment->getSkillPath()
130 switch ($questionSkillAssignment->getEvalMode()) {
133 $this->
getXmlWriter()->xmlElement(
'EvalByQuestionResult', [
134 'Points' => $questionSkillAssignment->getSkillPoints()
140 $this->
getXmlWriter()->xmlStartTag(
'EvalByQuestionSolution');
142 $questionSkillAssignment->initSolutionComparisonExpressionList();
143 $expressionList = $questionSkillAssignment->getSolutionComparisonExpressionList();
145 foreach ($expressionList->get() as $expression) {
148 $this->
getXmlWriter()->xmlStartTag(
'SolutionComparisonExpression', [
149 'Points' => $expression->getPoints(),
150 'Index' => $expression->getOrderIndex()
153 $this->
getXmlWriter()->xmlData($expression->getExpression(),
false,
true);
155 $this->
getXmlWriter()->xmlEndTag(
'SolutionComparisonExpression');
158 $this->
getXmlWriter()->xmlEndTag(
'EvalByQuestionSolution');
168 $this->
getXmlWriter()->xmlEndTag(
'QuestionSkillAssignments');
__construct()
ilAssQuestionSkillAssignmentExporter constructor.
setXmlWriter(ilXmlWriter $xmlWriter)
setQuestionIds($questionIds)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setAssignmentList($assignmentList)
const EVAL_MODE_BY_QUESTION_SOLUTION
const EVAL_MODE_BY_QUESTION_RESULT