ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
s
t
w
+
Functions
_
a
b
c
f
g
h
i
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
Bulky.php
Go to the documentation of this file.
1
<?php
2
declare(strict_types=1);
3
4
/* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
5
6
namespace
ILIAS\UI\Implementation\Component\Button
;
7
8
use
ILIAS\UI\Component
as
C
;
9
use
ILIAS\UI\Component\Symbol\Symbol
;
10
14
class
Bulky
extends
Button
implements C\Button\Bulky
15
{
16
use
Engageable
;
17
18
// allowed ARIA roles
19
const
MENUITEM
=
'menuitem'
;
20
24
protected
$icon_or_glyph
;
25
29
protected
$aria_role
;
30
34
protected
static
$allowed_aria_roles
= array(
35
self::MENUITEM
36
);
37
38
public
function
__construct
(
Symbol
$icon_or_glyph
,
string
$label
,
string
$action
)
39
{
40
$this->icon_or_glyph =
$icon_or_glyph
;
41
$this->label =
$label
;
42
$this->action =
$action
;
43
}
44
48
public
function
getIconOrGlyph
()
49
{
50
return
$this->icon_or_glyph
;
51
}
52
59
public
function
withAriaRole
(
string
$aria_role
) :
Button
60
{
61
$this->
checkArgIsElement
(
62
"role"
,
63
$aria_role,
64
self::$allowed_aria_roles,
65
implode(
'/'
, self::$allowed_aria_roles)
66
);
67
$clone = clone $this;
68
$clone->aria_role =
$aria_role
;
69
return
$clone;
70
}
71
77
public
function
getAriaRole
() : ?string
78
{
79
return
$this->aria_role
;
80
}
81
}
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:11
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\Button\Bulky\__construct
__construct(Symbol $icon_or_glyph, string $label, string $action)
Definition:
Bulky.php:38
ILIAS\UI\Implementation\Component\Button\Bulky\getAriaRole
getAriaRole()
Get the ARIA role on the button.
Definition:
Bulky.php:77
ILIAS\UI\Implementation\Component\Button\Bulky
Bulky Button.
Definition:
Bulky.php:14
ILIAS\UI\Component
ILIAS\UI\Component\Button
Definition:
Bulky.php:4
Symbol
ILIAS\UI\Implementation\Component\Button\Engageable
trait Engageable
Trait Engageable.
Definition:
Engageable.php:15
ILIAS\UI\Implementation\Component\Button\Bulky\$allowed_aria_roles
static $allowed_aria_roles
Definition:
Bulky.php:34
ILIAS\UI\Implementation\Component\Button\Button\$action
$action
Definition:
Button.php:30
ILIAS\UI\Implementation\Component\Button
Definition:
Bulky.php:6
ILIAS\UI\Implementation\Component\Button\Bulky\$aria_role
$aria_role
Definition:
Bulky.php:29
ILIAS\UI\Implementation\Component\Button\Bulky\$icon_or_glyph
$icon_or_glyph
Definition:
Bulky.php:24
ILIAS\UI\Implementation\Component\Button\Bulky\getIconOrGlyph
getIconOrGlyph()
Definition:
Bulky.php:48
ILIAS\UI\Implementation\Component\Button\Bulky\MENUITEM
const MENUITEM
Definition:
Bulky.php:19
ILIAS\UI\Implementation\Component\Button\Button\$label
$label
Definition:
Button.php:25
ILIAS\UI\Implementation\Component\Button\Bulky\withAriaRole
withAriaRole(string $aria_role)
Get a button like this, but with an additional ARIA role.
Definition:
Bulky.php:59
src
UI
Implementation
Component
Button
Bulky.php
Generated on Tue Apr 22 2025 20:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)