ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilContainerExporter.php
Go to the documentation of this file.
1
<?php
2
24
class
ilContainerExporter
extends
ilXmlExporter
25
{
26
protected \ILIAS\Style\Content\DomainService
$content_style_domain
;
27
28
public
function
__construct
()
29
{
30
global
$DIC
;
31
$this->content_style_domain = $DIC->contentStyle()
32
->domain();
33
}
34
35
public
function
init
(): void
36
{
37
}
38
39
public
function
getXmlExportTailDependencies
(
string
$a_entity,
string
$a_target_release, array $a_ids): array
40
{
41
if
($a_entity !==
'struct'
) {
42
return
[];
43
}
44
45
46
$res
= [];
47
48
// pages
49
50
$pg_ids = [];
51
52
// container pages
53
foreach
($a_ids as
$id
) {
54
if
(
ilContainerPage::_exists
(
"cont"
, (
int
) $id)) {
55
$pg_ids[] =
"cont:"
.
$id
;
56
}
57
}
58
59
// container start objects pages
60
foreach
($a_ids as $id) {
61
if
(
ilContainerStartObjectsPage::_exists
(
"cstr"
, (
int
) $id)) {
62
$pg_ids[] =
"cstr:"
.
$id
;
63
}
64
}
65
66
if
(count($pg_ids)) {
67
$res
[] = [
68
"component"
=>
"Services/COPage"
,
69
"entity"
=>
"pg"
,
70
"ids"
=> $pg_ids
71
];
72
}
73
74
// style
75
$style_ids = [];
76
foreach
($a_ids as $id) {
77
// see #24888
78
$style = $this->content_style_domain->styleForObjId((
int
) $id);
79
$style_id = $style->getEffectiveStyleId();
80
if
($style_id > 0) {
81
$style_ids[] = $style_id;
82
}
83
}
84
if
(count($style_ids)) {
85
$res
[] = [
86
"component"
=>
"Services/Style"
,
87
"entity"
=>
"sty"
,
88
"ids"
=> $style_ids
89
];
90
}
91
92
// service settings
93
$res
[] = [
94
"component"
=>
"Services/Object"
,
95
"entity"
=>
"common"
,
96
"ids"
=> $a_ids
97
];
98
99
// skill profiles
100
$res
[] = [
101
"component"
=>
"Services/Skill"
,
102
"entity"
=>
"skl_local_prof"
,
103
"ids"
=> $a_ids
104
];
105
106
// news settings
107
$res
[] = [
108
"component"
=>
"Services/News"
,
109
"entity"
=>
"news_settings"
,
110
"ids"
=> $a_ids
111
];
112
113
return
$res
;
114
}
115
116
public
function
getXmlRepresentation
(
string
$a_entity,
string
$a_schema_version,
string
$a_id): string
117
{
118
global
$DIC
;
119
120
$log
= $DIC->logger()->root();
121
if
($a_entity ===
'struct'
) {
122
$log
->debug(__METHOD__ .
': Received id = '
. $a_id);
123
$ref_ids =
ilObject::_getAllReferences
((
int
) $a_id);
124
$writer =
new
ilContainerXmlWriter
(end($ref_ids));
125
$writer->write();
126
return
$writer->xmlDumpMem(
false
);
127
}
128
return
""
;
129
}
130
137
public
function
getValidSchemaVersions
(
string
$a_entity): array
138
{
139
return
[
140
"4.1.0"
=> [
141
"namespace"
=>
"https://www.ilias.de/Modules/Folder/fold/4_1"
,
142
"xsd_file"
=>
"ilias_fold_4_1.xsd"
,
143
"uses_dataset"
=>
false
,
144
"min"
=>
"4.1.0"
,
145
"max"
=>
""
146
]
147
];
148
}
149
}
ilContainerExporter
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilContainerExporter.php:24
$res
$res
Definition:
ltiservices.php:69
ilObject\_getAllReferences
static _getAllReferences(int $id)
get all reference ids for object ID
Definition:
class.ilObject.php:816
ilContainerExporter\init
init()
Definition:
class.ilContainerExporter.php:35
ilContainerExporter\getValidSchemaVersions
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
Definition:
class.ilContainerExporter.php:137
ilContainerExporter\$content_style_domain
ILIAS Style Content DomainService $content_style_domain
Definition:
class.ilContainerExporter.php:26
ilContainerExporter\__construct
__construct()
Definition:
class.ilContainerExporter.php:28
ilXmlExporter
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilXmlExporter.php:27
$DIC
global $DIC
Definition:
feed.php:28
$log
$log
Definition:
result.php:33
ilPageObject\_exists
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.
Definition:
class.ilPageObject.php:317
ilContainerExporter\getXmlRepresentation
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Definition:
class.ilContainerExporter.php:116
ilContainerXmlWriter
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilContainerXmlWriter.php:24
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ilContainerExporter\getXmlExportTailDependencies
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
Definition:
class.ilContainerExporter.php:39
Services
Container
Export
class.ilContainerExporter.php
Generated on Fri Apr 4 2025 22:02:13 for ILIAS by
1.8.13 (using
Doxyfile
)