ILIAS  release_7 Revision v7.30-3-g800a261c036
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($a_entity)
8 {
9 /* export schema versions code */
10 }
11
12 public function init()
13 {
14 /* question pool init code */
15 }
16
22 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
23 {
24 /* question pool export code */
25
31 }
32
39 public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
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 }
68}
An exception for terminatinating execution or to throw for unit testing.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Xml Exporter class.