ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestableTermsOfServiceAppEventListener Class Reference

Class ilTestableTermsOfServiceAppEventListener. More...

+ Inheritance diagram for ilTestableTermsOfServiceAppEventListener:
+ Collaboration diagram for ilTestableTermsOfServiceAppEventListener:

Static Public Member Functions

static handleEvent (string $a_component, string $a_event, array $a_parameter)
 Handle an event in a listener. More...
 
- Static Public Member Functions inherited from ilTermsOfServiceAppEventListener
static handleEvent (string $a_component, string $a_event, array $a_parameter)
 Handle an event in a listener. More...
 

Static Public Attributes

static ilTermsOfServiceHelper $mockHelper
 

Additional Inherited Members

- Public Member Functions inherited from ilTermsOfServiceAppEventListener
 __construct (ilTermsOfServiceHelper $helper)
 
 withComponent (string $component)
 
 withEvent (string $event)
 
 withParameters (array $parameters)
 
 handle ()
 
- Protected Member Functions inherited from ilTermsOfServiceAppEventListener
 isUserDeletionEvent ()
 
- Protected Attributes inherited from ilTermsOfServiceAppEventListener
ilTermsOfServiceHelper $helper
 
string $component = ''
 
string $event = ''
 
array $parameters = []
 

Detailed Description

Member Function Documentation

◆ handleEvent()

static ilTestableTermsOfServiceAppEventListener::handleEvent ( string  $a_component,
string  $a_event,
array  $a_parameter 
)
static

Handle an event in a listener.

Parameters
string$a_componentcomponent, e.g. "Modules/Forum" or "Services/User"
string$a_eventevent e.g. "createUser", "updateUser", "deleteUser", ...
array$a_parameterparameter array (assoc), array("name" => ..., "phone_office" => ...)

Implements ilAppEventListener.

Definition at line 94 of file ilTermsOfServiceAppEventListenerTest.php.

Referenced by ilTermsOfServiceAppEventListenerTest\testStaticEventListeningWorksAsExpected().

94  : void
95  {
96  $listener = new self(self::$mockHelper);
97  $listener
98  ->withComponent($a_component)
99  ->withEvent($a_event)
100  ->withParameters($a_parameter)
101  ->handle();
102  }
+ Here is the caller graph for this function:

Field Documentation

◆ $mockHelper

ilTermsOfServiceHelper ilTestableTermsOfServiceAppEventListener::$mockHelper
static

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