ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
Engageable.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
28
trait
Engageable
29
{
30
protected
bool
$is_engageable =
false
;
31
protected
bool
$engaged
=
false
;
32
36
public
function
isEngageable
(): bool
37
{
38
return
$this->is_engageable;
39
}
40
45
public
function
withEngagedState
(
bool
$state)
46
{
47
$clone = clone $this;
48
$clone->is_engageable =
true
;
49
$clone->engaged = $state;
50
return
$clone;
51
}
52
56
public
function
isEngaged
(): bool
57
{
58
return
$this->engaged
;
59
}
60
}
ILIAS\UI\Implementation\Component\Button\isEngaged
isEngaged()
Definition:
Engageable.php:56
ILIAS\UI\Implementation\Component\Button\isEngageable
isEngageable()
Definition:
Engageable.php:36
Engageable
ILIAS\UI\Implementation\Component\Button\$engaged
bool $engaged
Definition:
Engageable.php:31
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\withEngagedState
withEngagedState(bool $state)
Definition:
Engageable.php:45
src
UI
Implementation
Component
Button
Engageable.php
Generated on Sun Aug 31 2025 22:02:47 for ILIAS by
1.8.13 (using
Doxyfile
)