ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
Mode.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\ViewControl
;
22
23
use
ILIAS\UI\Component
as
C
;
24
use ILIAS\UI\Implementation\Component\ComponentHelper;
25
26
class
Mode
implements
C\ViewControl\Mode
27
{
28
use ComponentHelper;
29
30
protected
array
$labeled_actions
;
31
protected
string
$aria_label
;
32
protected
?
string
$active
=
null
;
33
34
public
function
__construct
($labelled_actions,
string
$aria_label
)
35
{
36
$this->labeled_actions = $this->toArray($labelled_actions);
37
$this->aria_label =
$aria_label
;
38
}
39
40
public
function
withActive
(
string
$label):
C
\ViewControl\
Mode
41
{
42
$clone = clone $this;
43
$clone->active = $label;
44
return
$clone;
45
}
46
47
public
function
getActive
(): ?string
48
{
49
return
$this->active
;
50
}
51
52
public
function
getLabelledActions
(): array
53
{
54
return
$this->labeled_actions
;
55
}
56
57
public
function
getAriaLabel
(): string
58
{
59
return
$this->aria_label
;
60
}
61
}
C\ViewControl\Mode
ILIAS\UI\Implementation\Component\ViewControl\Mode
Definition:
Mode.php:27
ILIAS\UI\Implementation\Component\ViewControl\Mode\getActive
getActive()
Definition:
Mode.php:47
ILIAS\UI\Implementation\Component\ViewControl\Mode\getAriaLabel
getAriaLabel()
Definition:
Mode.php:57
ILIAS\UI\Implementation\Component\ViewControl\Mode\$active
string $active
Definition:
Mode.php:32
ILIAS\UI\Implementation\Component\ViewControl\Mode\getLabelledActions
getLabelledActions()
Definition:
Mode.php:52
ILIAS\UI\Implementation\Component\ViewControl\Mode\withActive
withActive(string $label)
Definition:
Mode.php:40
ILIAS\UI\Implementation\Component\ViewControl\Mode\$aria_label
string $aria_label
Definition:
Mode.php:31
ILIAS\UI\Implementation\Component\ViewControl\Mode\__construct
__construct($labelled_actions, string $aria_label)
Definition:
Mode.php:34
ILIAS\UI\Implementation\Component\ViewControl\Mode\$labeled_actions
array $labeled_actions
Definition:
Mode.php:30
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\ViewControl
Definition:
Factory.php:21
components
ILIAS
UI
src
Implementation
Component
ViewControl
Mode.php
Generated on Sat Oct 18 2025 23:03:27 for ILIAS by
1.9.4 (using
Doxyfile
)