Style export definition.
More...
|
| init () |
|
| getXmlRepresentation ($a_entity, $a_schema_version, $a_id) |
|
| getValidSchemaVersions ($a_entity) |
|
| __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...
|
|
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
- Version
- $Id$
Definition at line 14 of file class.ilStyleExporter.php.
◆ getValidSchemaVersions()
ilStyleExporter::getValidSchemaVersions |
( |
|
$a_entity | ) |
|
Definition at line 51 of file class.ilStyleExporter.php.
References array.
55 "namespace" =>
"http://www.ilias.de/Services/Style/5_1",
56 "xsd_file" =>
"ilias_style_5_1.xsd",
57 "uses_dataset" =>
true,
61 "namespace" =>
"http://www.ilias.de/Services/Style/5_0",
62 "xsd_file" =>
"ilias_style_5_0.xsd",
63 "uses_dataset" =>
false,
Create styles array
The data for the language used.
◆ getXmlRepresentation()
ilStyleExporter::getXmlRepresentation |
( |
|
$a_entity, |
|
|
|
$a_schema_version, |
|
|
|
$a_id |
|
) |
| |
Definition at line 24 of file class.ilStyleExporter.php.
References $style, $target, ilXmlExporter\getAbsoluteExportDirectory(), ilXmlExporter\getRelativeExportDirectory(), ilUtil\makeDirParents(), and ilUtil\rCopy().
26 if ($a_schema_version ==
"5.1.0") {
28 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
29 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id,
"",
true,
true);
31 if ($a_schema_version ==
"5.0.0") {
32 if ($a_entity ==
"sty") {
33 include_once
"Services/Style/Content/classes/class.ilObjStyleSheet.php";
43 return "<StyleSheetExport>" .
46 "</StyleSheetExport>";
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getRelativeExportDirectory()
Get relative export directory.
static rCopy($a_sdir, $a_tdir, $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
getAbsoluteExportDirectory()
Get absolute export directory.
◆ init()
ilStyleExporter::init |
( |
| ) |
|
Definition at line 16 of file class.ilStyleExporter.php.
18 include_once(
"./Services/Style/classes/class.ilStyleDataSet.php");
20 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
21 $this->ds->setDSPrefix(
"ds");
The documentation for this class was generated from the following file: