ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Engageable.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2018 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component\Button
;
6
7
use
ILIAS\UI\Component\Button\Engageable
as EngageableInterface;
8
14
trait
Engageable
15
{
19
protected
$is_engageable =
false
;
20
24
protected
$engaged
=
false
;
25
29
public
function
isEngageable
() : bool
30
{
31
return
$this->is_engageable;
32
}
33
37
public
function
withEngagedState
(
bool
$state) : EngageableInterface
38
{
39
$clone = clone $this;
40
$clone->is_engageable =
true
;
41
$clone->engaged = $state;
42
return
$clone;
43
}
44
48
public
function
isEngaged
() : bool
49
{
50
return
$this->engaged
;
51
}
52
}
ILIAS\UI\Implementation\Component\Button\$engaged
$engaged
Definition:
Engageable.php:24
ILIAS\UI\Implementation\Component\Button\isEngaged
isEngaged()
Definition:
Engageable.php:48
ILIAS\UI\Implementation\Component\Button\isEngageable
isEngageable()
Definition:
Engageable.php:29
Engageable
ILIAS\UI\Implementation\Component\Button
Definition:
Bulky.php:6
ILIAS\UI\Component\Button\Engageable
A Button can be stateful; when engaged, the state MUST be refelected in the "aria-pressed"-, respectively the "aria-checked"-attribute.
Definition:
Engageable.php:14
ILIAS\UI\Implementation\Component\Button\withEngagedState
withEngagedState(bool $state)
Definition:
Engageable.php:37
src
UI
Implementation
Component
Button
Engageable.php
Generated on Mon Sep 1 2025 20:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)