ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.exQuestionPoolExporter.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 
6 {
7  public function getValidSchemaVersions(string $a_entity): array
8  {
9  /* export schema versions code */
10  return [];
11  }
12 
13  public function init(): void
14  {
15  /* question pool init code */
16  }
17 
23  public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
24  {
25  /* question pool export code */
26 
32  return '';
33  }
34 
41  public function getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids): array
42  {
52  if ($a_entity == 'qpl') {
53  $deps = array();
54 
55  $questionIds = array(); // initialise with question ids that need to be exported
56 
57  if (count($questionIds)) {
58  $deps[] = array(
59  'component' => 'Services/AssessmentQuestion',
60  'entity' => 'qst',
61  'ids' => $questionIds
62  );
63  }
64 
65  return $deps;
66  }
67 
68  return parent::getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids);
69  }
70 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)