32 $this->xmlWriter = null;
33 $this->questionIds = array();
34 $this->assignmentList = null;
90 $this->
getXmlWriter()->xmlStartTag(
'QuestionSkillAssignments');
93 $this->
getXmlWriter()->xmlStartTag(
'TriggerQuestion', array(
'Id' => $questionId));
95 foreach ($this->
getAssignmentList()->getAssignmentsByQuestionId($questionId) as $questionSkillAssignment) {
98 $this->
getXmlWriter()->xmlStartTag(
'TriggeredSkill', array(
99 'BaseId' => $questionSkillAssignment->getSkillBaseId(),
100 'TrefId' => $questionSkillAssignment->getSkillTrefId()
104 'OriginalSkillTitle',
106 $questionSkillAssignment->getSkillTitle()
112 $questionSkillAssignment->getSkillPath()
115 switch ($questionSkillAssignment->getEvalMode()) {
118 $this->
getXmlWriter()->xmlElement(
'EvalByQuestionResult', array(
119 'Points' => $questionSkillAssignment->getSkillPoints()
125 $this->
getXmlWriter()->xmlStartTag(
'EvalByQuestionSolution');
127 $questionSkillAssignment->initSolutionComparisonExpressionList();
128 $expressionList = $questionSkillAssignment->getSolutionComparisonExpressionList();
130 foreach ($expressionList->get() as $expression) {
133 $this->
getXmlWriter()->xmlStartTag(
'SolutionComparisonExpression', array(
134 'Points' => $expression->getPoints(),
135 'Index' => $expression->getOrderIndex()
138 $this->
getXmlWriter()->xmlData($expression->getExpression(),
false,
true);
140 $this->
getXmlWriter()->xmlEndTag(
'SolutionComparisonExpression');
143 $this->
getXmlWriter()->xmlEndTag(
'EvalByQuestionSolution');
153 $this->
getXmlWriter()->xmlEndTag(
'QuestionSkillAssignments');
__construct()
ilAssQuestionSkillAssignmentExporter constructor.
setXmlWriter(ilXmlWriter $xmlWriter)
setQuestionIds($questionIds)
setAssignmentList($assignmentList)
const EVAL_MODE_BY_QUESTION_SOLUTION
const EVAL_MODE_BY_QUESTION_RESULT