ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.ilPortfolioExporter.php
Go to the documentation of this file.
1
<?php
2
24
class
ilPortfolioExporter
extends
ilXmlExporter
25
{
26
protected
ilPortfolioDataSet
$ds
;
27
28
public
function
init
(): void
29
{
30
$this->ds =
new
ilPortfolioDataSet
();
31
$this->ds->setDSPrefix(
"ds"
);
32
}
33
34
public
function
getXmlExportTailDependencies
(
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
) {
41
foreach
(
ilPortfolioTemplatePage::getAllPortfolioPages
($id) as $p) {
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
}
ilPortfolioPage\getAllPortfolioPages
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.
Definition:
class.ilPortfolioPage.php:226
ilXmlExporter
ilPortfolioExporter
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPortfolioExporter.php:24
ilPortfolioDataSet
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPortfolioDataSet.php:30
ilPortfolioExporter\getXmlExportTailDependencies
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
Definition:
class.ilPortfolioExporter.php:34
ilPortfolioExporter\$ds
ilPortfolioDataSet $ds
Definition:
class.ilPortfolioExporter.php:26
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ilPortfolioExporter\getXmlRepresentation
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Definition:
class.ilPortfolioExporter.php:72
ilPortfolioExporter\getValidSchemaVersions
getValidSchemaVersions(string $a_entity)
Definition:
class.ilPortfolioExporter.php:81
ilPortfolioExporter\init
init()
Definition:
class.ilPortfolioExporter.php:28
components
ILIAS
Portfolio
Export
class.ilPortfolioExporter.php
Generated on Wed Sep 3 2025 23:03:36 for ILIAS by
1.8.13 (using
Doxyfile
)