ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
14interface Engageable
15{
22 public function isEngageable() : bool;
23
28 public function withEngagedState(bool $state) : Engageable;
29
33 public function isEngaged() : bool;
34}
An exception for terminatinating execution or to throw for unit testing.
A Button can be stateful; when engaged, the state MUST be refelected in the "aria-pressed"-,...
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.