ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
Icon.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
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
25
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
26
27
abstract
class
Icon
implements
C\Symbol\Icon\Icon
28
{
29
use
ComponentHelper
;
30
use
JavaScriptBindable
;
31
35
protected
static
array
$possible_sizes
= array(
36
self::SMALL,
37
self::MEDIUM,
38
self::LARGE,
39
self::RESPONSIVE
40
);
41
42
protected
string
$name
;
43
protected
string
$label
;
44
protected
string
$size
;
45
protected
?
string
$abbreviation
=
null
;
46
protected
bool
$is_disabled
;
47
51
public
function
getName
(): string
52
{
53
return
$this->name
;
54
}
55
59
public
function
getLabel
(): string
60
{
61
return
$this->label
;
62
}
63
64
public
function
setLabel
(
string
$label): void
65
{
66
$this->label =
$label
;
67
}
68
69
public
function
withLabel
(
string
$label): self
70
{
71
$clone = clone $this;
72
$clone->label =
$label
;
73
return
$clone;
74
}
75
79
public
function
withAbbreviation
(
string
$abbreviation):
C
\Symbol\
Icon
\
Icon
80
{
81
$clone = clone $this;
82
$clone->abbreviation =
$abbreviation
;
83
return
$clone;
84
}
85
89
public
function
getAbbreviation
(): ?string
90
{
91
return
$this->abbreviation
;
92
}
93
97
public
function
withSize
(
string
$size):
C
\Symbol\
Icon
\
Icon
98
{
99
$this->checkArgIsElement(
100
"size"
,
101
$size,
102
self::$possible_sizes,
103
implode(
'/'
, self::$possible_sizes)
104
);
105
$clone = clone $this;
106
$clone->size =
$size
;
107
return
$clone;
108
}
109
113
public
function
getSize
(): string
114
{
115
return
$this->size
;
116
}
117
121
public
function
isDisabled
(): bool
122
{
123
return
$this->is_disabled
;
124
}
125
129
public
function
withDisabled
(
bool
$is_disabled):
C
\Symbol\
Icon
\
Icon
130
{
131
$clone = clone $this;
132
$clone->is_disabled =
$is_disabled
;
133
return
$clone;
134
}
135
}
ILIAS\UI\Implementation\Component\Symbol\Icon
Definition:
Custom.php:21
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\getLabel
getLabel()
Definition:
Icon.php:59
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\withLabel
withLabel(string $label)
Definition:
Icon.php:69
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$abbreviation
string $abbreviation
Definition:
Icon.php:45
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\getSize
getSize()
Definition:
Icon.php:113
Standard
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\isDisabled
isDisabled()
Definition:
Icon.php:121
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\withDisabled
withDisabled(bool $is_disabled)
Definition:
Icon.php:129
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\withSize
withSize(string $size)
Definition:
Icon.php:97
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$possible_sizes
static array $possible_sizes
Definition:
Icon.php:35
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$is_disabled
bool $is_disabled
Definition:
Icon.php:46
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$size
string $size
Definition:
Icon.php:44
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\withAbbreviation
withAbbreviation(string $abbreviation)
Definition:
Icon.php:79
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\setLabel
setLabel(string $label)
Definition:
Icon.php:64
ComponentHelper
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$name
string $name
Definition:
Icon.php:42
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\getName
getName()
Definition:
Icon.php:51
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\getAbbreviation
getAbbreviation()
Definition:
Icon.php:89
ILIAS\UI\Implementation\Component\Symbol\Icon\Icon\$label
string $label
Definition:
Icon.php:43
ComponentHelper
components
ILIAS
UI
src
Implementation
Component
Symbol
Icon
Icon.php
Generated on Wed Apr 9 2025 23:03:12 for ILIAS by
1.8.13 (using
Doxyfile
)