ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Close.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
12
13class Close implements C\Button\Close
14{
17 use Triggerer;
18
22 public function withOnClick(Signal $signal)
23 {
24 $this->action = null;
25 return $this->withTriggeredSignal($signal, 'click');
26 }
27
31 public function appendOnClick(Signal $signal)
32 {
33 return $this->appendTriggeredSignal($signal, 'click');
34 }
35}
An exception for terminatinating execution or to throw for unit testing.
withTriggeredSignal(Component\Signal $signal, $event)
Add a triggered signal, replacing any other signals registered on the same event.
Definition: Triggerer.php:48
appendTriggeredSignal(Component\Signal $signal, $event)
Append a triggered signal to other signals of the same event.
Definition: Triggerer.php:31
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.