ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilIndividualAssessmentExporter Class Reference

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

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 70 of file class.ilIndividualAssessmentExporter.php.

70 : array
71 {
72 return [
73 "5.2.0" => [
74 "namespace" => "http://www.ilias.de/Services/User/iass/5_2",
75 "xsd_file" => "ilias_iass_5_2.xsd",
76 "uses_dataset" => true,
77 "min" => "5.2.0",
78 "max" => "5.2.99"
79 ],
80 "5.3.0" => [
81 "namespace" => "http://www.ilias.de/Services/User/iass/5_3",
82 "xsd_file" => "ilias_iass_5_3.xsd",
83 "uses_dataset" => true,
84 "min" => "5.3.0",
85 "max" => "8"
86 ],
87 "9.0" => [
88 "namespace" => "http://www.ilias.de/xml/Modules/IndividualAssessment/iass",
89 "xsd_file" => "ilias_iass_9_0.xsd",
90 "uses_dataset" => true,
91 "min" => "9.0",
92 "max" => ""
93 ]
94 ];
95 }

◆ 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 51 of file class.ilIndividualAssessmentExporter.php.

51 : array
52 {
53 $res = [];
54
55 if ($a_entity == "iass") {
56 // service settings
57 $res[] = [
58 "component" => "components/ILIAS/ILIASObject",
59 "entity" => "common",
60 "ids" => $a_ids
61 ];
62 }
63
64 return $res;
65 }
$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 40 of file class.ilIndividualAssessmentExporter.php.

40 : string
41 {
43 $this->ds->initByExporter($this);
44
45 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], '', true, true);
46 }
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 $this->ds->setDSPrefix("ds");
35 }
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: