ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ 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
}
ILIAS\UI\Implementation\Component\ViewControl
Definition:
Factory.php:21
ILIAS\components\ResourceStorage\Container\View\Mode
Mode
Definition:
Mode.php:26
ViewControl
ILIAS\UI\Implementation\Component\ViewControl\Mode\$active
string $active
Definition:
Mode.php:32
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\ViewControl\Mode\getLabelledActions
getLabelledActions()
Definition:
Mode.php:52
ILIAS\UI\Implementation\Component\ViewControl\Mode\getActive
getActive()
Definition:
Mode.php:47
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\UI\Implementation\Component\ViewControl\Mode\$labeled_actions
array $labeled_actions
Definition:
Mode.php:30
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\withActive
withActive(string $label)
Definition:
Mode.php:40
ILIAS\UI\Implementation\Component\ViewControl\Mode\getAriaLabel
getAriaLabel()
Definition:
Mode.php:57
ComponentHelper
ComponentHelper
ILIAS\UI\Implementation\Component\ViewControl\Mode
Definition:
Mode.php:26
components
ILIAS
UI
src
Implementation
Component
ViewControl
Mode.php
Generated on Mon Sep 1 2025 23:03:32 for ILIAS by
1.8.13 (using
Doxyfile
)