47 $this->xmlWriter = null;
100 $this->
getXmlWriter()->xmlStartTag(
'SkillsLevelThresholds');
102 foreach ($this->
getAssignmentList()->getUniqueAssignedSkills() as $assignedSkillData) {
103 $this->
getXmlWriter()->xmlStartTag(
'QuestionsAssignedSkill', array(
104 'BaseId' => $assignedSkillData[
'skill_base_id'],
105 'TrefId' => $assignedSkillData[
'skill_tref_id']
108 $this->
getXmlWriter()->xmlElement(
'OriginalSkillTitle', null, $assignedSkillData[
'skill_title']);
109 $this->
getXmlWriter()->xmlElement(
'OriginalSkillPath', null, $assignedSkillData[
'skill_path']);
112 $assignedSkill = $assignedSkillData[
'skill'];
113 $skillLevels = $assignedSkill->getLevelData();
115 for (
$i = 0, $max = count($skillLevels);
$i < $max;
$i++) {
116 $levelData = $skillLevels[
$i];
119 $assignedSkillData[
'skill_base_id'],
120 $assignedSkillData[
'skill_tref_id'],
126 'Id' => $levelData[
'id'],
'Nr' => $levelData[
'nr']
129 $this->
getXmlWriter()->xmlElement(
'ThresholdPercentage', null, $skillLevelThreshold->getThreshold());
131 $this->
getXmlWriter()->xmlElement(
'OriginalLevelTitle', null, $levelData[
'title']);
132 $this->
getXmlWriter()->xmlElement(
'OriginalLevelDescription', null, $levelData[
'description']);
137 $this->
getXmlWriter()->xmlEndTag(
'QuestionsAssignedSkill');
140 $this->
getXmlWriter()->xmlEndTag(
'SkillsLevelThresholds');
setAssignmentList($assignmentList)
__construct()
ilAssQuestionSkillAssignmentExporter constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setXmlWriter(ilXmlWriter $xmlWriter)
setThresholdList($thresholdList)