ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 
14 interface Engageable
15 {
22  public function isEngageable() : bool;
23 
28  public function withEngagedState(bool $state) : Engageable;
29 
33  public function isEngaged() : bool;
34 }
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.