ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilEventHandlingAppEventListener Class Reference

Dummy listener used for unit tests. More...

+ Inheritance diagram for ilEventHandlingAppEventListener:
+ Collaboration diagram for ilEventHandlingAppEventListener:

Static Public Member Functions

static handleEvent (string $a_component, string $a_event, array $a_parameter)
 
static handleEvent (string $a_component, string $a_event, array $a_parameter)
 Handle an event in a listener. More...
 

Detailed Description

Dummy listener used for unit tests.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.ilEventHandlingAppEventListener.php.

Member Function Documentation

◆ handleEvent()

static ilEventHandlingAppEventListener::handleEvent ( string  $a_component,
string  $a_event,
array  $a_parameter 
)
static
Exceptions
ilEventHandlingTestException

Implements ilAppEventListener.

Definition at line 31 of file class.ilEventHandlingAppEventListener.php.

31 : void
32 {
33 if ($a_component == "components/ILIAS/EventHandling" &&
34 $a_event == "myEvent" &&
35 isset($a_parameter["par1"]) &&
36 $a_parameter["par1"] == "val1" &&
37 isset($a_parameter["par2"]) &&
38 $a_parameter["par2"] == "val2"
39 ) {
40 throw new ilEventHandlingTestException("");
41 }
42 }

The documentation for this class was generated from the following file: