ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
Custom.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\UI\Implementation\Component\Symbol\Icon
;
5
6
use
ILIAS\UI\Component
as
C
;
7
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
8
9
class
Custom
extends
Icon
implements C\Symbol\Icon\Custom
10
{
11
15
private
$icon_path
;
16
17
18
public
function
__construct
(
string
$icon_path
,
string
$label
,
string
$size
,
bool
$is_disabled
)
19
{
20
$this->
checkArgIsElement
(
21
"size"
,
22
$size,
23
self::$possible_sizes,
24
implode(
'/'
, self::$possible_sizes)
25
);
26
$this->name =
'custom'
;
27
$this->icon_path =
$icon_path
;
28
$this->label =
$label
;
29
$this->size =
$size
;
30
$this->is_disabled =
$is_disabled
;
31
}
32
36
public
function
getIconPath
()
37
{
38
return
$this->icon_path
;
39
}
40
}
ILIAS\UI\Implementation\Component\Symbol\Icon
Definition:
Custom.php:4
ILIAS\UI\Implementation\Component\checkArgIsElement
checkArgIsElement($which, $value, $array, $name)
Throw an InvalidArgumentException if $value is not an element of array.
Definition:
ComponentHelper.php:164
ILIAS\UI\Implementation\Component\Symbol\Icon\Custom\__construct
__construct(string $icon_path, string $label, string $size, bool $is_disabled)
Definition:
Custom.php:18
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon
Definition:
Icon.php:10
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$is_disabled
$is_disabled
Definition:
Icon.php:38
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$label
$label
Definition:
Icon.php:23
ILIAS\UI\Implementation\Component\Symbol\Icon\Custom\$icon_path
$icon_path
Definition:
Custom.php:15
ILIAS\UI\Implementation\Component\Symbol\Icon\Custom\getIconPath
getIconPath()
Definition:
Custom.php:36
ILIAS\UI\Implementation\Component\Symbol\Icon\Custom
Definition:
Custom.php:9
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$size
$size
Definition:
Icon.php:28
src
UI
Implementation
Component
Symbol
Icon
Custom.php
Generated on Wed Apr 9 2025 21:01:55 for ILIAS by
1.8.13 (using
Doxyfile
)