ILIAS  release_7 Revision v7.30-3-g800a261c036
ilAssessmentQuestionExporter Class Reference
+ Inheritance diagram for ilAssessmentQuestionExporter:
+ Collaboration diagram for ilAssessmentQuestionExporter:

Public Member Functions

 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 init ()
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 Constructor. More...
 
 setExport (ilExport $a_exp)
 Set export object. More...
 
 getExport ()
 Get export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 init ()
 
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories. More...
 
 getRelativeExportDirectory ()
 Get relative export directory. More...
 
 getAbsoluteExportDirectory ()
 Get absolute export directory. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Detailed Description

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

Member Function Documentation

◆ getValidSchemaVersions()

ilAssessmentQuestionExporter::getValidSchemaVersions (   $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" => "")
    );
Returns
array

Reimplemented from ilXmlExporter.

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

16 {
17 /* export schema versions code */
18 }

◆ getXmlRepresentation()

ilAssessmentQuestionExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)
Parameters
string$a_entity
array$a_schema_version
int$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.

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: goto.php:24

References $DIC.

◆ init()

ilAssessmentQuestionExporter::init ( )

Reimplemented from ilXmlExporter.

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

21 {
22 /* assessment question init code */
23 }

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