ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
Bulky.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\UI\Implementation\Component\Button
;
22
23
use
ILIAS\UI\Component
as
C
;
24
use
ILIAS\UI\Component\Symbol\Symbol
;
25
29
class
Bulky
extends
Button
implements C\Button\Bulky
30
{
31
// allowed ARIA roles
32
public
const
MENUITEM
=
'menuitem'
;
33
34
protected
Symbol
$icon_or_glyph
;
35
protected
?
string
$aria_role
= null;
36
40
protected
static
array
$allowed_aria_roles
= array(self::MENUITEM);
41
42
public
function
__construct
(
Symbol
$icon_or_glyph,
string
$label
,
string
$action
)
43
{
44
$this->icon_or_glyph =
$icon_or_glyph
;
45
$this->label =
$label
;
46
$this->action =
$action
;
47
}
48
52
public
function
getIconOrGlyph
():
Symbol
53
{
54
return
$this->icon_or_glyph
;
55
}
56
65
public
function
withAriaRole
(
string
$aria_role):
C
\
Button
\
Bulky
66
{
67
$this->checkArgIsElement(
68
"role"
,
69
$aria_role,
70
self::$allowed_aria_roles,
71
implode(
'/'
, self::$allowed_aria_roles)
72
);
73
$clone = clone $this;
74
$clone->aria_role =
$aria_role
;
75
return
$clone;
76
}
77
81
public
function
getAriaRole
(): ?string
82
{
83
return
$this->aria_role
;
84
}
85
}
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:29
ILIAS\UI\Implementation\Component\Button\Button\$label
string $label
Definition:
Button.php:39
ILIAS\UI\Implementation\Component\Button\Bulky\$icon_or_glyph
Symbol $icon_or_glyph
Definition:
Bulky.php:34
ILIAS\UI\Implementation\Component\Button\Bulky\__construct
__construct(Symbol $icon_or_glyph, string $label, string $action)
Definition:
Bulky.php:42
ILIAS\UI\Implementation\Component\Button\Bulky\getAriaRole
getAriaRole()
Get the ARIA role on the button.
Definition:
Bulky.php:81
ILIAS\UI\Implementation\Component\Button\Bulky
Bulky Button.
Definition:
Bulky.php:29
ILIAS\UI\Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\UI\Component\Button
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Bulky.php:21
ILIAS\UI\Implementation\Component\Button\Bulky\$allowed_aria_roles
static array $allowed_aria_roles
Definition:
Bulky.php:40
Symbol
ILIAS\UI\Implementation\Component\Button
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Bulky.php:21
ILIAS\UI\Implementation\Component\Button\Bulky\getIconOrGlyph
getIconOrGlyph()
Definition:
Bulky.php:52
ILIAS\UI\Implementation\Component\Button\Bulky\$aria_role
string $aria_role
Definition:
Bulky.php:35
ILIAS\UI\Implementation\Component\Button\Button\$action
string $action
Definition:
Button.php:40
ILIAS\UI\Implementation\Component\Button\Bulky\MENUITEM
const MENUITEM
Definition:
Bulky.php:32
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:65
src
UI
Implementation
Component
Button
Bulky.php
Generated on Sun Aug 31 2025 22:02:47 for ILIAS by
1.8.13 (using
Doxyfile
)