ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAssessmentQuestionExporter Class Reference
+ Inheritance diagram for ilAssessmentQuestionExporter:
+ Collaboration diagram for ilAssessmentQuestionExporter:

Public Member Functions

 getValidSchemaVersions ($a_entity)
 
 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)

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.

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

References $DIC.

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

◆ init()

ilAssessmentQuestionExporter::init ( )

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: