ILIAS  release_8 Revision v8.24
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(string $a_entity): array
16 {
17 /* export schema versions code */
18 }
19
20 public function init(): void
21 {
22 /* assessment question init code */
23 }
24
30 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
31 {
37 global $DIC; /* @var ILIAS\DI\Container $DIC */
38
39 $questionInstance = $DIC->question()->getQuestionInstance($a_id);
40
41 return $questionInstance->toQtiXML();
42 }
43}
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28