ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilStyleExporter 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 ilStyleExporter:
+ Collaboration diagram for ilStyleExporter:

Public Member Functions

 init ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 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)
 

Protected Attributes

ilStyleDataSet $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

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 Style export definition

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.ilStyleExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilStyleExporter::getValidSchemaVersions ( string  $a_entity)

Definition at line 42 of file class.ilStyleExporter.php.

42  : array
43  {
44  return array(
45  "10.0" => array(
46  "namespace" => "http://www.ilias.de/Services/Style/10_0",
47  "xsd_file" => "ilias_style_10.xsd",
48  "uses_dataset" => true,
49  "min" => "10.0",
50  "max" => "10.99"),
51  "8.0" => array(
52  "namespace" => "http://www.ilias.de/Services/Style/8",
53  "xsd_file" => "ilias_style_8.xsd",
54  "uses_dataset" => true,
55  "min" => "8.0",
56  "max" => "9.99"),
57  "5.1.0" => array(
58  "namespace" => "http://www.ilias.de/Services/Style/5_1",
59  "xsd_file" => "ilias_style_5_1.xsd",
60  "uses_dataset" => true,
61  "min" => "5.1.0",
62  "max" => "7.99")
63  );
64  }

◆ getXmlRepresentation()

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

Definition at line 35 of file class.ilStyleExporter.php.

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

35  : string
36  {
38  $this->ds->initByExporter($this);
39  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
40  }
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
+ Here is the call graph for this function:

◆ init()

ilStyleExporter::init ( )

Definition at line 28 of file class.ilStyleExporter.php.

28  : void
29  {
30  $this->ds = new ilStyleDataSet();
31  $this->ds->initByExporter($this);
32  $this->ds->setDSPrefix("ds");
33  }
Style Data set class.

Field Documentation

◆ $ds

ilStyleDataSet ilStyleExporter::$ds
protected

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


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