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