ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilSurveyQuestionPoolExporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilSurveyQuestionPoolExporter:
+ Collaboration diagram for ilSurveyQuestionPoolExporter:

Public Member Functions

 init ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 
 getValidSchemaVersions (string $a_entity)
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 
 setExport (ilExport $a_exp)
 
 getExport ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 init ()
 
 setExportDirectories (string $a_dir_relative, string $a_dir_absolute)
 
 getRelativeExportDirectory ()
 
 getAbsoluteExportDirectory ()
 
 getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion (string $a_entity, string $a_target_release)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="")
 
- Protected Attributes inherited from ilXmlExporter
ilExport $exp
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Used for container export with tests

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de

Definition at line 24 of file class.ilSurveyQuestionPoolExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilSurveyQuestionPoolExporter::getValidSchemaVersions ( string  $a_entity)

Definition at line 69 of file class.ilSurveyQuestionPoolExporter.php.

69  : array
70  {
71  return array(
72  "4.1.0" => array(
73  "namespace" => "https://www.ilias.de/Modules/SurveyQuestionPool/htlm/4_1",
74  "xsd_file" => "ilias_spl_4_1.xsd",
75  "uses_dataset" => false,
76  "min" => "4.1.0",
77  "max" => "")
78  );
79  }

◆ getXmlExportTailDependencies()

ilSurveyQuestionPoolExporter::getXmlExportTailDependencies ( string  $a_entity,
string  $a_target_release,
array  $a_ids 
)

Definition at line 40 of file class.ilSurveyQuestionPoolExporter.php.

44  : array {
45  $dependencies = [];
46 
47  // service settings
48  $deps[] = [
49  "component" => "components/ILIAS/ILIASObject",
50  "entity" => "common",
51  "ids" => $a_ids
52  ];
53 
54 
55  $md_ids = [];
56  foreach ($a_ids as $spl_id) {
57  $md_ids[] = $spl_id . ":0:spl";
58  }
59  if ($md_ids !== []) {
60  $dependencies[] = [
61  "component" => "components/ILIAS/MetaData",
62  "entity" => "md",
63  "ids" => $md_ids
64  ];
65  }
66  return $dependencies;
67  }

◆ getXmlRepresentation()

ilSurveyQuestionPoolExporter::getXmlRepresentation ( string  $a_entity,
string  $a_schema_version,
string  $a_id 
)

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

34  : string {
35  $spl = new ilObjSurveyQuestionPool($a_id, false);
36  $spl->loadFromDb();
37  return $spl->toXmlForExport();
38  }
Class ilObjSurveyQuestionPool.

◆ init()

ilSurveyQuestionPoolExporter::init ( )

Definition at line 26 of file class.ilSurveyQuestionPoolExporter.php.

26  : void
27  {
28  }

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