ILIAS  release_7 Revision v7.30-3-g800a261c036
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 
6 
8 
12 interface Engageable extends Component
13 {
20  public function isEngageable() : bool;
21 
26  public function withEngagedState(bool $state) : Engageable;
27 
31  public function isEngaged() : bool;
32 }
trait Engageable
Trait Engageable.
Definition: Engageable.php:15
isEngaged()
Returns whether the button is currently engaged or not.
withEngagedState(bool $state)
Get a copy of the Engageable Button with engaged state for $state=true and with disengaged state for ...
isEngageable()
Returns whether the button is stateful or not.