ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilADTGroupPresentationBridge.php
Go to the documentation of this file.
1
<?php
2
3
require_once
"Services/ADT/classes/Bridges/class.ilADTPresentationBridge.php"
;
4
5
class
ilADTGroupPresentationBridge
extends
ilADTPresentationBridge
6
{
7
protected
$elements
= [];
// [array]
8
9
protected
function
isValidADT
(
ilADT
$a_adt)
10
{
11
return
($a_adt instanceof
ilADTGroup
);
12
}
13
14
protected
function
prepareElements
()
15
{
16
if
(
sizeof
($this->elements)) {
17
return
;
18
}
19
20
$this->elements = array();
21
$factory
=
ilADTFactory::getInstance
();
22
23
// convert ADTs to presentation bridges
24
25
foreach
($this->
getADT
()->getElements() as
$name
=> $element) {
26
$this->elements[
$name
] =
$factory
->getPresentationBridgeForInstance($element);
27
}
28
}
29
30
public
function
getHTML
($delimiter =
"<br />"
)
31
{
32
$res
= array();
33
34
$this->
prepareElements
();
35
foreach
($this->elements as $element) {
36
$res
[] = $this->
decorate
($element->getHTML());
37
}
38
39
if
(
sizeof
(
$res
)) {
40
return
implode($delimiter,
$res
);
41
}
42
}
43
44
public
function
getSortable
($delimiter =
";"
)
45
{
46
$res
= array();
47
48
$this->
prepareElements
();
49
foreach
($this->elements as $element) {
50
$res
[] = $element->getSortable();
51
}
52
53
if
(
sizeof
(
$res
)) {
54
return
implode($delimiter,
$res
);
55
}
56
}
57
}
ilADTGroupPresentationBridge\getSortable
getSortable($delimiter=";")
Definition:
class.ilADTGroupPresentationBridge.php:44
ilADTGroupPresentationBridge\$elements
$elements
Definition:
class.ilADTGroupPresentationBridge.php:7
ilADTGroupPresentationBridge\prepareElements
prepareElements()
Definition:
class.ilADTGroupPresentationBridge.php:14
ilADTPresentationBridge\decorate
decorate($a_value)
Decorate value.
Definition:
class.ilADTPresentationBridge.php:107
ilADTGroupPresentationBridge\getHTML
getHTML($delimiter="<br />")
Definition:
class.ilADTGroupPresentationBridge.php:30
ilADTFactory\getInstance
static getInstance()
Get singleton.
Definition:
class.ilADTFactory.php:26
ilADTPresentationBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTPresentationBridge.php:62
ilADTGroup
Definition:
class.ilADTGroup.php:3
ilADT
ADT base class.
Definition:
class.ilADT.php:11
$name
if($format !==null) $name
Definition:
metadata.php:230
$res
foreach($_POST as $key=> $value) $res
Definition:
save_question_post_data.php:15
ilADTGroupPresentationBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTGroupPresentationBridge.php:9
ilADTPresentationBridge
ADT presentation bridge base class.
Definition:
class.ilADTPresentationBridge.php:11
ilADTGroupPresentationBridge
Definition:
class.ilADTGroupPresentationBridge.php:5
$factory
$factory
Definition:
metadata.php:58
Services
ADT
classes
Types
Group
class.ilADTGroupPresentationBridge.php
Generated on Tue Apr 8 2025 21:01:35 for ILIAS by
1.8.13 (using
Doxyfile
)