ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilAssessmentQuestionExporter.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
14{
15 public function getValidSchemaVersions($a_entity)
16 {
17 /* export schema versions code */
18 }
19
20 public function init()
21 {
22 /* assessment question init code */
23 }
24
30 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
31 {
37 global $DIC; /* @var ILIAS\DI\Container $DIC */
38
39 $questionInstance = $DIC->question()->getQuestionInstance($a_id);
40
41 return $questionInstance->toQtiXML();
42 }
43}
An exception for terminatinating execution or to throw for unit testing.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
Xml Exporter class.
global $DIC
Definition: goto.php:24