ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
Xml Exporter class.
global $DIC
Definition: goto.php:24
getXmlRepresentation($a_entity, $a_schema_version, $a_id)