ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 {
28 $questionQtiXml .= $this->getQuestionQtiXml($questionId);
29 }
30
31 return $questionQtiXml;
32 }
33
34 protected function getQuestionIds()
35 {
36 return $this->test_obj->questions;
37 }
38}
An exception for terminatinating execution or to throw for unit testing.
Export class for tests.
getQuestionQtiXml($questionId)
XML writer class.