ILIAS  release_8 Revision v8.24
ilIndividualAssessmentExporter 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 ilIndividualAssessmentExporter:
+ Collaboration diagram for ilIndividualAssessmentExporter:

Public Member Functions

 init ()
 initialize the exporter More...
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies.
Returns
array array of array with keys "component", entity", "ids"
More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to.ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top. Example: return array ( "4.1.0" => array( "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1", "xsd_file" => "ilias_md_4_1.xsd", "min" => "4.1.0", "max" => "") ); More...
 
- 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)
 

Protected Attributes

ilIndividualAssessmentDataSet $ds
 
- Protected Attributes inherited from ilXmlExporter
string $dir_relative = ""
 
string $dir_absolute = ""
 
ilExport $exp
 

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="")
 

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 Manual Assessment exporter class

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

Member Function Documentation

◆ getValidSchemaVersions()

ilIndividualAssessmentExporter::getValidSchemaVersions ( string  $a_entity)

Returns schema versions that the component can export to.ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top. Example: return array ( "4.1.0" => array( "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1", "xsd_file" => "ilias_md_4_1.xsd", "min" => "4.1.0", "max" => "") );

Reimplemented from ilXmlExporter.

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

69 : array
70 {
71 return [
72 "5.2.0" => [
73 "namespace" => "http://www.ilias.de/Services/User/iass/5_2",
74 "xsd_file" => "ilias_iass_5_2.xsd",
75 "uses_dataset" => true,
76 "min" => "5.2.0",
77 "max" => "5.2.99"
78 ],
79 "5.3.0" => [
80 "namespace" => "http://www.ilias.de/Services/User/iass/5_3",
81 "xsd_file" => "ilias_iass_5_3.xsd",
82 "uses_dataset" => true,
83 "min" => "5.3.0",
84 "max" => ""
85 ]
86 ];
87 }

◆ getXmlExportTailDependencies()

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

Get tail dependencies.

Returns
array array of array with keys "component", entity", "ids"

Reimplemented from ilXmlExporter.

Definition at line 50 of file class.ilIndividualAssessmentExporter.php.

50 : array
51 {
52 $res = [];
53
54 if ($a_entity == "iass") {
55 // service settings
56 $res[] = [
57 "component" => "Services/Object",
58 "entity" => "common",
59 "ids" => $a_ids
60 ];
61 }
62
63 return $res;
64 }
$res
Definition: ltiservices.php:69

References $res.

◆ getXmlRepresentation()

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

Reimplemented from ilXmlExporter.

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

39 : string
40 {
42 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
43
44 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], '', true, true);
45 }
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.

References ilXmlExporter\getAbsoluteExportDirectory(), and ilFileUtils\makeDirParents().

+ Here is the call graph for this function:

◆ init()

ilIndividualAssessmentExporter::init ( )

initialize the exporter

Reimplemented from ilXmlExporter.

Definition at line 31 of file class.ilIndividualAssessmentExporter.php.

31 : void
32 {
33 $this->ds = new ilIndividualAssessmentDataSet();
34 }
Individual Assessment dataset class.

Field Documentation

◆ $ds

ilIndividualAssessmentDataSet ilIndividualAssessmentExporter::$ds
protected

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


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