ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Toggle.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2018 Thomas Famula <famula@leifos.de> Extended GPL, see docs/LICENSE */
4
6
8
12interface Toggle extends Button, Engageable
13{
19 public function getActionOn();
20
26 public function getActionOff();
27
32 public function withAdditionalToggleOnSignal(Signal $signal) : Toggle;
33
38 public function withAdditionalToggleOffSignal(Signal $signal) : Toggle;
39}
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
This describes a toggle button.
Definition: Toggle.php:13
withAdditionalToggleOffSignal(Signal $signal)
getActionOn()
Get the action of the Toggle Button when it is set from off to on.
withAdditionalToggleOnSignal(Signal $signal)
getActionOff()
Get the action of the Toggle Button when it is set from on to off.