ILIAS  release_7 Revision v7.30-3-g800a261c036
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 ($a_entity, $a_schema_version, $a_id)
 Get xml representation.
Parameters
stringentity
stringschema version
stringid
Returns
string xml string
More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies.
Parameters
stringentity
stringtarget release
arrayids
Returns
array array of array with keys "component", entity", "ids"
More...
 
 getValidSchemaVersions ($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" => "")
    );
Returns
array
More...
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 Constructor. More...
 
 setExport (ilExport $a_exp)
 Set export object. More...
 
 getExport ()
 Get export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 init ()
 
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories. More...
 
 getRelativeExportDirectory ()
 Get relative export directory. More...
 
 getAbsoluteExportDirectory ()
 Get absolute export directory. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Detailed Description

Member Function Documentation

◆ getValidSchemaVersions()

ilindividualAssessmentExporter::getValidSchemaVersions (   $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" => "")
    );
Returns
array

Reimplemented from ilXmlExporter.

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

56 {
57 return array(
58 "5.2.0" => array(
59 "namespace" => "http://www.ilias.de/Services/User/iass/5_2",
60 "xsd_file" => "ilias_iass_5_2.xsd",
61 "uses_dataset" => true,
62 "min" => "5.2.0",
63 "max" => "5.2.99"),
64 "5.3.0" => array(
65 "namespace" => "http://www.ilias.de/Services/User/iass/5_3",
66 "xsd_file" => "ilias_iass_5_3.xsd",
67 "uses_dataset" => true,
68 "min" => "5.3.0",
69 "max" => "")
70 );
71 }

◆ getXmlExportTailDependencies()

ilindividualAssessmentExporter::getXmlExportTailDependencies (   $a_entity,
  $a_target_release,
  $a_ids 
)

Get tail dependencies.

Parameters
stringentity
stringtarget release
arrayids
Returns
array array of array with keys "component", entity", "ids"

Reimplemented from ilXmlExporter.

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

37 {
38 $res = [];
39
40 if ($a_entity == "iass") {
41 // service settings
42 $res[] = array(
43 "component" => "Services/Object",
44 "entity" => "common",
45 "ids" => $a_ids
46 );
47 }
48
49 return $res;
50 }
foreach($_POST as $key=> $value) $res

References $res.

◆ getXmlRepresentation()

ilindividualAssessmentExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)

Get xml representation.

Parameters
stringentity
stringschema version
stringid
Returns
string xml string

Reimplemented from ilXmlExporter.

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

26 {
28 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
29
30 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, '', true, true);
31 }
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getAbsoluteExportDirectory()
Get absolute export directory.

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

+ Here is the call graph for this function:

◆ init()

ilindividualAssessmentExporter::init ( )

initialize the exporter

Reimplemented from ilXmlExporter.

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

18 {
19 $this->ds = new ilIndividualAssessmentDataSet();
20 }
Individual Assessment dataset class.

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