ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
UIHelper.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen_\UI
;
22
23
use
ILIAS\UI\Component\Symbol\Icon\Icon
;
24
use
ILIAS\UI\Factory
;
25
use
ILIAS\UI\Component\Image\Image
;
26
30
trait
UIHelper
31
{
32
protected
function
nok(Factory
$f
,
bool
$as_image =
false
):
Icon
|
Image
33
{
34
if
($as_image) {
35
return
$f->image()->standard(
36
'assets/images/standard/icon_unchecked.svg'
,
37
''
38
);
39
}
40
41
return
$f->symbol()->icon()->custom(
42
'assets/images/standard/icon_unchecked.svg'
,
43
''
,
44
'small'
45
);
46
}
47
48
protected
function
ok(Factory $f,
bool
$as_image =
false
):
Icon
|
Image
49
{
50
if
($as_image) {
51
return
$f->image()->standard(
52
'assets/images/standard/icon_checked.svg'
,
53
''
54
);
55
}
56
57
return
$f->symbol()->icon()->custom(
58
'assets/images/standard/icon_checked.svg'
,
59
''
,
60
'small'
61
);
62
}
63
}
Image
Standard
Factory
Icon
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
ILIAS\GlobalScreen_\UI
UIHelper
components
ILIAS
GlobalScreen_
classes
UI
UIHelper.php
Generated on Mon Sep 1 2025 23:03:13 for ILIAS by
1.8.13 (using
Doxyfile
)