ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
$delimiter
$delimiter
Definition:
showstats.php:16
ilADTPresentationBridge\decorate
decorate($a_value)
Decorate value.
Definition:
class.ilADTPresentationBridge.php:107
$factory
$factory
Definition:
metadata.php:43
ilADTGroupPresentationBridge\getHTML
getHTML($delimiter="<br />")
Definition:
class.ilADTGroupPresentationBridge.php:30
ilADTFactory\getInstance
static getInstance()
Get singleton.
Definition:
class.ilADTFactory.php:24
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
$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
$name
$name
Definition:
client_example.php:35
ilADTPresentationBridge
ADT presentation bridge base class.
Definition:
class.ilADTPresentationBridge.php:11
php
ilADTGroupPresentationBridge
Definition:
class.ilADTGroupPresentationBridge.php:5
Services
ADT
classes
Types
Group
class.ilADTGroupPresentationBridge.php
Generated on Thu Jan 16 2025 19:02:16 for ILIAS by
1.8.13 (using
Doxyfile
)