ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilRatingExporter 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 ilRatingExporter:
+ Collaboration diagram for ilRatingExporter:

Public Member Functions

 init ()
 Initialisation. More...
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 @inheritDoc More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. 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)
 

Private Attributes

ilRatingDataSet $ds
 

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 Exporter class for rating (categories)

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

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

Member Function Documentation

◆ getValidSchemaVersions()

ilRatingExporter::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.

@inheritDoc

Reimplemented from ilXmlExporter.

Definition at line 53 of file class.ilRatingExporter.php.

53 : array
54 {
55 return array(
56 "4.3.0" => array(
57 "namespace" => "https://www.ilias.de/Services/Rating/rating_category/4_3",
58 "xsd_file" => "ilias_rating_4_3.xsd",
59 "uses_dataset" => true,
60 "min" => "4.3.0",
61 "max" => "")
62 );
63 }

◆ getXmlRepresentation()

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

@inheritDoc

Reimplemented from ilXmlExporter.

Definition at line 41 of file class.ilRatingExporter.php.

41 : string
42 {
43 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
44 }

◆ init()

ilRatingExporter::init ( )

Initialisation.

Reimplemented from ilXmlExporter.

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

31 : void
32 {
33 $this->ds = new ilRatingDataSet();
34 $this->ds->initByExporter($this);
35 $this->ds->setDSPrefix("ds");
36 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $ds

ilRatingDataSet ilRatingExporter::$ds
private

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


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