ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
Custom.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Symbol\Icon
;
22
23
use
ILIAS\UI\Component
as
C
;
24
25
class
Custom
extends
Icon
implements C\Symbol\Icon\Custom
26
{
27
private
string
$icon_path
;
28
29
public
function
__construct
(
string
$icon_path,
string
$label
,
string
$size
,
bool
$is_disabled
)
30
{
31
$this->checkArgIsElement(
32
"size"
,
33
$size,
34
self::$possible_sizes,
35
implode(
'/'
, self::$possible_sizes)
36
);
37
$this->name =
'custom'
;
38
$this->icon_path =
$icon_path
;
39
$this->label =
$label
;
40
$this->size =
$size
;
41
$this->is_disabled =
$is_disabled
;
42
}
43
47
public
function
getIconPath
(): string
48
{
49
return
$this->icon_path
;
50
}
51
}
ILIAS\UI\Implementation\Component\Symbol\Icon
Definition:
Custom.php:21
Standard
ILIAS\UI\Implementation\Component\Symbol\Icon\Custom\__construct
__construct(string $icon_path, string $label, string $size, bool $is_disabled)
Definition:
Custom.php:29
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$is_disabled
bool $is_disabled
Definition:
Icon.php:46
Transformation
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$size
string $size
Definition:
Icon.php:44
ILIAS\UI\Implementation\Component\Symbol\Icon\Custom\getIconPath
getIconPath()
Definition:
Custom.php:47
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$label
string $label
Definition:
Icon.php:43
ILIAS\UI\Implementation\Component\Symbol\Icon\Custom\$icon_path
string $icon_path
Definition:
Custom.php:27
components
ILIAS
UI
src
Implementation
Component
Symbol
Icon
Custom.php
Generated on Mon Sep 1 2025 23:02:12 for ILIAS by
1.8.13 (using
Doxyfile
)