ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilDclBooleanRecordRepresentation.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilDclBooleanRecordRepresentation
extends
ilDclBaseRecordRepresentation
22
{
26
public
function
getHTML
(
bool
$link =
true
, array $options = []): string
27
{
28
$value = $this->
getRecordField
()->getValue();
29
30
if
($value) {
31
$icon = $this->
factory
->symbol()->icon()->custom(
32
ilUtil::getImagePath
(
'standard/icon_checked.svg'
),
33
$this->
lng
->txt(
"yes"
)
34
);
35
}
else
{
36
$icon = $this->
factory
->symbol()->icon()->custom(
37
ilUtil::getImagePath
(
'standard/icon_unchecked.svg'
),
38
$this->
lng
->txt(
"no"
)
39
);
40
}
41
42
return
$this->
renderer
->render($icon);
43
}
44
}
factory
factory()
Definition:
UITestHelper.php:61
renderer
renderer()
Definition:
UITestHelper.php:69
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
ilDclBooleanRecordRepresentation\getHTML
getHTML(bool $link=true, array $options=[])
Outputs html of a certain field.
Definition:
class.ilDclBooleanRecordRepresentation.php:26
ilUtil\getImagePath
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Definition:
class.ilUtil.php:68
ilDclBaseRecordRepresentation
Definition:
class.ilDclBaseRecordRepresentation.php:21
ilDclBooleanRecordRepresentation
Definition:
class.ilDclBooleanRecordRepresentation.php:21
ilDclBaseRecordRepresentation\getRecordField
getRecordField()
Get Record Field.
Definition:
class.ilDclBaseRecordRepresentation.php:123
components
ILIAS
DataCollection
classes
Fields
Boolean
class.ilDclBooleanRecordRepresentation.php
Generated on Sun Aug 31 2025 23:02:47 for ILIAS by
1.8.13 (using
Doxyfile
)