ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
9//use ILIAS\UI\Implementation\Component\TriggeredSignal;
10
11
15interface Toggle extends Button
16{
17
23 public function isOn() : bool;
24
30 public function getActionOn();
31
37 public function getActionOff();
38
43 public function withAdditionalToggleOnSignal(Signal $signal) : Toggle;
44
49 public function withAdditionalToggleOffSignal(Signal $signal) : Toggle;
50}
An exception for terminatinating execution or to throw for unit testing.
This describes a toggle button.
Definition: Toggle.php:16
withAdditionalToggleOffSignal(Signal $signal)
getActionOn()
Get the action of the Toggle Button when it is set from off to on.
withAdditionalToggleOnSignal(Signal $signal)
isOn()
Get to know if the Toggle Button is on or off.
getActionOff()
Get the action of the Toggle Button when it is set from on to off.