ILIAS  release_8 Revision v8.24
ilAssessmentQuestionExporter Class Reference
+ Inheritance diagram for ilAssessmentQuestionExporter:
+ Collaboration diagram for ilAssessmentQuestionExporter:

Public Member Functions

 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
 init ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 
 setExport (ilExport $a_exp)
 
 getExport ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 init ()
 
 setExportDirectories (string $a_dir_relative, string $a_dir_absolute)
 
 getRelativeExportDirectory ()
 
 getAbsoluteExportDirectory ()
 
 getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion (string $a_entity, string $a_target_release)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="")
 
- Protected Attributes inherited from ilXmlExporter
string $dir_relative = ""
 
string $dir_absolute = ""
 
ilExport $exp
 

Detailed Description

Definition at line 13 of file class.ilAssessmentQuestionExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilAssessmentQuestionExporter::getValidSchemaVersions ( string  $a_entity)

Returns schema versions that the component can export to.

ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top. Example: return array ( "4.1.0" => array( "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1", "xsd_file" => "ilias_md_4_1.xsd", "min" => "4.1.0", "max" => "") );

Reimplemented from ilXmlExporter.

Definition at line 15 of file class.ilAssessmentQuestionExporter.php.

15 : array
16 {
17 /* export schema versions code */
18 }

◆ getXmlRepresentation()

ilAssessmentQuestionExporter::getXmlRepresentation ( string  $a_entity,
string  $a_schema_version,
string  $a_id 
)
Parameters
string$a_entity
string$a_schema_version
string$a_id

the assessment question export does simply get the id an returns the qti xml representation of the question.

Reimplemented from ilXmlExporter.

Definition at line 30 of file class.ilAssessmentQuestionExporter.php.

30 : string
31 {
37 global $DIC; /* @var ILIAS\DI\Container $DIC */
38
39 $questionInstance = $DIC->question()->getQuestionInstance($a_id);
40
41 return $questionInstance->toQtiXML();
42 }
global $DIC
Definition: feed.php:28

References $DIC.

◆ init()

ilAssessmentQuestionExporter::init ( )

Reimplemented from ilXmlExporter.

Definition at line 20 of file class.ilAssessmentQuestionExporter.php.

20 : void
21 {
22 /* assessment question init code */
23 }

The documentation for this class was generated from the following file: