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.ilDclBooleanRecordRepresentation.php
Go to the documentation of this file.
1
<?php
2
9
class
ilDclBooleanRecordRepresentation
extends
ilDclBaseRecordRepresentation
10
{
11
20
public
function
getHTML
($link =
true
)
21
{
22
$value = $this->
getRecordField
()->getValue();
23
switch
($value) {
24
case
0:
25
$im =
ilUtil::getImagePath
(
'icon_not_ok_monochrome.svg'
,
"/Modules/DataCollection"
);
26
break
;
27
case
1:
28
$im =
ilUtil::getImagePath
(
'icon_ok_monochrome.svg'
,
"/Modules/DataCollection"
);
29
break
;
30
}
31
32
return
"<img src='"
. $im .
"'>"
;
33
}
34
}
ilUtil\getImagePath
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Definition:
class.ilUtil.php:96
ilDclBaseRecordRepresentation
Class ilDclBaseRecordRepresentation.
Definition:
class.ilDclBaseRecordRepresentation.php:10
ilDclBooleanRecordRepresentation
Class ilDclBooleanRecordRepresentation.
Definition:
class.ilDclBooleanRecordRepresentation.php:9
ilDclBaseRecordRepresentation\getRecordField
getRecordField()
Get Record Field.
Definition:
class.ilDclBaseRecordRepresentation.php:133
ilDclBooleanRecordRepresentation\getHTML
getHTML($link=true)
Outputs html of a certain field.
Definition:
class.ilDclBooleanRecordRepresentation.php:20
Modules
DataCollection
classes
Fields
Boolean
class.ilDclBooleanRecordRepresentation.php
Generated on Sat Apr 5 2025 21:00:58 for ILIAS by
1.8.13 (using
Doxyfile
)