ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
class.ilPortfolioExporter.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12
class
ilPortfolioExporter
extends
ilXmlExporter
13
{
14
protected
$ds
;
15
16
public
function
init
()
17
{
18
$this->ds =
new
ilPortfolioDataSet
();
19
$this->ds->setDSPrefix(
"ds"
);
20
}
21
22
public
function
getXmlExportTailDependencies
($a_entity, $a_target_release, $a_ids)
23
{
24
$pg_ids = array();
25
foreach
($a_ids as $id) {
26
foreach
(
ilPortfolioTemplatePage::getAllPortfolioPages
($id) as $p) {
27
$pg_ids[] =
"prtt:"
. $p[
"id"
];
28
}
29
}
30
31
$deps[] =
32
array(
33
"component"
=>
"Services/COPage"
,
34
"entity"
=>
"pg"
,
35
"ids"
=> $pg_ids);
36
37
// style
38
$obj_ids = (is_array($a_ids))
39
? $a_ids
40
: array($a_ids);
41
$deps[] = array(
42
"component"
=>
"Services/Style"
,
43
"entity"
=>
"object_style"
,
44
"ids"
=> $obj_ids
45
);
46
47
// common object properties
48
$deps[] = array(
49
"component"
=>
"Services/Object"
,
50
"entity"
=>
"common"
,
51
"ids"
=> $a_ids
52
);
53
54
return
$deps;
55
}
56
57
public
function
getXmlRepresentation
($a_entity, $a_schema_version, $a_id)
58
{
59
$this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
60
return
$this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id,
""
,
true
,
true
);
61
}
62
63
public
function
getValidSchemaVersions
($a_entity)
64
{
65
return
array(
66
"4.4.0"
=> array(
67
"namespace"
=>
"http://www.ilias.de/Modules/Portfolio/4_4"
,
68
"xsd_file"
=>
"ilias_portfolio_4_4.xsd"
,
69
"uses_dataset"
=>
true
,
70
"min"
=>
"4.4.0"
,
71
"max"
=>
"4.9.9"
),
72
"5.0.0"
=> array(
73
"namespace"
=>
"http://www.ilias.de/Modules/Portfolio/5_0"
,
74
"xsd_file"
=>
"ilias_portfolio_5_0.xsd"
,
75
"uses_dataset"
=>
true
,
76
"min"
=>
"5.0.0"
,
77
"max"
=>
""
)
78
);
79
}
80
}
ilPortfolioPage\getAllPortfolioPages
static getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.
Definition:
class.ilPortfolioPage.php:292
ilPortfolioExporter\getValidSchemaVersions
getValidSchemaVersions($a_entity)
Definition:
class.ilPortfolioExporter.php:63
ilPortfolioExporter
Portfolio definition.
Definition:
class.ilPortfolioExporter.php:12
ilPortfolioExporter\getXmlRepresentation
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Definition:
class.ilPortfolioExporter.php:57
ilPortfolioDataSet
Portfolio Data set class.
Definition:
class.ilPortfolioDataSet.php:16
ilXmlExporter
Xml Exporter class.
Definition:
class.ilXmlExporter.php:11
ilPortfolioExporter\getXmlExportTailDependencies
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Definition:
class.ilPortfolioExporter.php:22
ilPortfolioExporter\$ds
$ds
Definition:
class.ilPortfolioExporter.php:14
ilPortfolioExporter\init
init()
Definition:
class.ilPortfolioExporter.php:16
Modules
Portfolio
classes
class.ilPortfolioExporter.php
Generated on Sun Aug 31 2025 21:00:59 for ILIAS by
1.8.13 (using
Doxyfile
)