32 $this->xmlWriter = null;
85 $this->
getXmlWriter()->xmlStartTag(
'SkillsLevelThresholds');
87 foreach ($this->
getAssignmentList()->getUniqueAssignedSkills() as $assignedSkillData) {
88 $this->
getXmlWriter()->xmlStartTag(
'QuestionsAssignedSkill', array(
89 'BaseId' => $assignedSkillData[
'skill_base_id'],
90 'TrefId' => $assignedSkillData[
'skill_tref_id']
93 $this->
getXmlWriter()->xmlElement(
'OriginalSkillTitle', null, $assignedSkillData[
'skill_title']);
94 $this->
getXmlWriter()->xmlElement(
'OriginalSkillPath', null, $assignedSkillData[
'skill_path']);
97 $assignedSkill = $assignedSkillData[
'skill'];
98 $skillLevels = $assignedSkill->getLevelData();
100 for (
$i = 0, $max = count($skillLevels);
$i < $max;
$i++) {
101 $levelData = $skillLevels[
$i];
104 $assignedSkillData[
'skill_base_id'],
105 $assignedSkillData[
'skill_tref_id'],
111 'Id' => $levelData[
'id'],
'Nr' => $levelData[
'nr']
114 $this->
getXmlWriter()->xmlElement(
'ThresholdPercentage', null, $skillLevelThreshold->getThreshold());
116 $this->
getXmlWriter()->xmlElement(
'OriginalLevelTitle', null, $levelData[
'title']);
117 $this->
getXmlWriter()->xmlElement(
'OriginalLevelDescription', null, $levelData[
'description']);
122 $this->
getXmlWriter()->xmlEndTag(
'QuestionsAssignedSkill');
125 $this->
getXmlWriter()->xmlEndTag(
'SkillsLevelThresholds');
setAssignmentList($assignmentList)
__construct()
ilAssQuestionSkillAssignmentExporter constructor.
setXmlWriter(ilXmlWriter $xmlWriter)
setThresholdList($thresholdList)