32 $this->xmlWriter = null;
33 $this->questionIds =
array();
34 $this->assignmentList = null;
89 $this->
getXmlWriter()->xmlStartTag(
'QuestionSkillAssignments');
93 $this->
getXmlWriter()->xmlStartTag(
'TriggerQuestion',
array(
'Id' => $questionId));
95 foreach($this->
getAssignmentList()->getAssignmentsByQuestionId($questionId) as $questionSkillAssignment)
100 'BaseId' => $questionSkillAssignment->getSkillBaseId(),
101 'TrefId' => $questionSkillAssignment->getSkillTrefId()
105 'OriginalSkillTitle', null, $questionSkillAssignment->getSkillTitle()
109 'OriginalSkillPath', null, $questionSkillAssignment->getSkillPath()
112 switch( $questionSkillAssignment->getEvalMode() )
117 'Points' => $questionSkillAssignment->getSkillPoints()
123 $this->
getXmlWriter()->xmlStartTag(
'EvalByQuestionSolution');
125 $questionSkillAssignment->initSolutionComparisonExpressionList();
126 $expressionList = $questionSkillAssignment->getSolutionComparisonExpressionList();
128 foreach($expressionList->get() as $expression)
133 'Points' => $expression->getPoints(),
134 'Index' => $expression->getOrderIndex()
137 $this->
getXmlWriter()->xmlData($expression->getExpression(),
false,
true);
139 $this->
getXmlWriter()->xmlEndTag(
'SolutionComparisonExpression');
142 $this->
getXmlWriter()->xmlEndTag(
'EvalByQuestionSolution');
152 $this->
getXmlWriter()->xmlEndTag(
'QuestionSkillAssignments');
__construct()
ilAssQuestionSkillAssignmentExporter constructor.
setXmlWriter(ilXmlWriter $xmlWriter)
setQuestionIds($questionIds)
setAssignmentList($assignmentList)
Create styles array
The data for the language used.
const EVAL_MODE_BY_QUESTION_SOLUTION
const EVAL_MODE_BY_QUESTION_RESULT