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

Public Member Functions

 getValidSchemaVersions ($a_entity)
 
 init ()
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 
- 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 5 of file class.exQuestionPoolExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

exQuestionPoolExporter::getValidSchemaVersions (   $a_entity)

Definition at line 7 of file class.exQuestionPoolExporter.php.

8  {
9  /* export schema versions code */
10  }

◆ getXmlExportTailDependencies()

exQuestionPoolExporter::getXmlExportTailDependencies (   $a_entity,
  $a_target_release,
  $a_ids 
)
Parameters
string$a_entity
string$a_target_release
array$a_ids
Returns
array

when components use the assessment question service, they can declare questions as a tail depency for their own export. the export service will address the assessment question service to get all required question exported.

simply determine the questionIds for the given entityIds and return them in the shown depeny array structure.

Definition at line 39 of file class.exQuestionPoolExporter.php.

40  {
50  if ($a_entity == 'qpl') {
51  $deps = array();
52 
53  $questionIds = array(); // initialise with question ids that need to be exported
54 
55  if (count($questionIds)) {
56  $deps[] = array(
57  'component' => 'Services/AssessmentQuestion',
58  'entity' => 'qst',
59  'ids' => $questionIds
60  );
61  }
62 
63  return $deps;
64  }
65 
66  return parent::getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids);
67  }

◆ getXmlRepresentation()

exQuestionPoolExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)
Parameters
string$a_entity
array$a_schema_version
int$a_id

although e.g. the question pool does declare assessment questions as a tail depency, it still is able to also provide the former qtixml, that contains all questions as a single qti file.

Definition at line 22 of file class.exQuestionPoolExporter.php.

23  {
24  /* question pool export code */
25 
31  }

◆ init()

exQuestionPoolExporter::init ( )

Definition at line 12 of file class.exQuestionPoolExporter.php.

13  {
14  /* question pool init code */
15  }

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