ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilDclBooleanRecordRepresentation.php
Go to the documentation of this file.
1
<?php
2
9
class
ilDclBooleanRecordRepresentation
extends
ilDclBaseRecordRepresentation
10
{
11
19
public
function
getHTML
($link =
true
)
20
{
21
$value = $this->
getRecordField
()->getValue();
22
switch
($value) {
23
case
0:
24
$im =
ilUtil::getImagePath
(
'icon_not_ok.svg'
);
25
break
;
26
case
1:
27
$im =
ilUtil::getImagePath
(
'icon_ok.svg'
);
28
break
;
29
}
30
return
"<img src='"
. $im .
"'>"
;
31
}
32
}
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:79
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:123
ilDclBooleanRecordRepresentation\getHTML
getHTML($link=true)
Outputs html of a certain field.
Definition:
class.ilDclBooleanRecordRepresentation.php:19
Modules
DataCollection
classes
Fields
Boolean
class.ilDclBooleanRecordRepresentation.php
Generated on Tue Jan 28 2025 19:01:17 for ILIAS by
1.8.13 (using
Doxyfile
)