ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
{
42
$clone = clone $this;
43
$clone->is_engageable =
true
;
44
$clone->engaged = $state;
45
return
$clone;
46
}
47
51
public
function
isEngaged
() : bool
52
{
53
return
$this->engaged
;
54
}
55
}
ILIAS\UI\Implementation\Component\Button\$engaged
$engaged
Definition:
Engageable.php:24
ILIAS\UI\Implementation\Component\Button\isEngaged
isEngaged()
Definition:
Engageable.php:51
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
Engageable Components have an "engaged" state and will be displayed accordingly.
Definition:
Engageable.php:12
src
UI
Implementation
Component
Button
Engageable.php
Generated on Sat Apr 5 2025 21:01:46 for ILIAS by
1.8.13 (using
Doxyfile
)