ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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.svg'
);
26
break
;
27
case
1:
28
$im =
ilUtil::getImagePath
(
'icon_ok.svg'
);
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: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:133
ilDclBooleanRecordRepresentation\getHTML
getHTML($link=true)
Outputs html of a certain field.
Definition:
class.ilDclBooleanRecordRepresentation.php:20
php
Modules
DataCollection
classes
Fields
Boolean
class.ilDclBooleanRecordRepresentation.php
Generated on Thu Feb 27 2025 19:01:38 for ILIAS by
1.8.13 (using
Doxyfile
)