ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilTestExportFixedQuestionSet.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Modules/Test/classes/class.ilTestExport.php';
5
13{
14 protected function initXmlExport()
15 {
16 }
17
18 protected function populateQuestionSetConfigXml(ilXmlWriter $xmlWriter)
19 {
20 }
21
22 protected function getQuestionsQtiXml()
23 {
24 $questionQtiXml = '';
25
26 foreach ($this->test_obj->questions as $questionId) {
27 $questionQtiXml .= $this->getQuestionQtiXml($questionId);
28 }
29
30 return $questionQtiXml;
31 }
32
33 protected function getQuestionIds()
34 {
35 return $this->test_obj->questions;
36 }
37}
An exception for terminatinating execution or to throw for unit testing.
Export class for tests.
getQuestionQtiXml($questionId)
XML writer class.