ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPortfolioExporter.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public function init(): void
29 {
30 $this->ds = new ilPortfolioDataSet();
31 $this->ds->setDSPrefix("ds");
32 }
33
35 string $a_entity,
36 string $a_target_release,
37 array $a_ids
38 ): array {
39 $pg_ids = array();
40 foreach ($a_ids as $id) {
42 $pg_ids[] = "prtt:" . $p["id"];
43 }
44 }
45
46 $deps[] =
47 array(
48 "component" => "components/ILIAS/COPage",
49 "entity" => "pg",
50 "ids" => $pg_ids);
51
52 // style
53 $obj_ids = (is_array($a_ids))
54 ? $a_ids
55 : array($a_ids);
56 $deps[] = array(
57 "component" => "components/ILIAS/Style",
58 "entity" => "object_style",
59 "ids" => $obj_ids
60 );
61
62 // common object properties
63 $deps[] = array(
64 "component" => "components/ILIAS/ILIASObject",
65 "entity" => "common",
66 "ids" => $a_ids
67 );
68
69 return $deps;
70 }
71
72 public function getXmlRepresentation(
73 string $a_entity,
74 string $a_schema_version,
75 string $a_id
76 ): string {
77 $this->ds->initByExporter($this);
78 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
79 }
80
81 public function getValidSchemaVersions(
82 string $a_entity
83 ): array {
84 return array(
85 "10.0" => array(
86 "namespace" => "https://www.ilias.de/Modules/Portfolio/10",
87 "xsd_file" => "ilias_portfolio_10.xsd",
88 "uses_dataset" => true,
89 "min" => "10.0",
90 "max" => ""),
91 "4.4.0" => array(
92 "namespace" => "https://www.ilias.de/Modules/Portfolio/4_4",
93 "xsd_file" => "ilias_portfolio_4_4.xsd",
94 "uses_dataset" => true,
95 "min" => "4.4.0",
96 "max" => "4.9.9"),
97 "5.0.0" => array(
98 "namespace" => "https://www.ilias.de/Modules/Portfolio/5_0",
99 "xsd_file" => "ilias_portfolio_5_0.xsd",
100 "uses_dataset" => true,
101 "min" => "5.0.0",
102 "max" => "9.99")
103 );
104 }
105}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
return true
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
Get tail dependencies.
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.
Xml Exporter class.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...