ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestableTermsOfServiceAppEventListener Class Reference

Class ilTestableTermsOfServiceAppEventListener. More...

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

Public Member Functions

 __construct (ilTermsOfServiceHelper $helper)
 ilTestableTermsOfServiceAppEventListener constructor. More...
 
- Public Member Functions inherited from ilTermsOfServiceAppEventListener
 __construct (ilTermsOfServiceHelper $helper)
 ilTermsOfServiceAppEventListener constructor. More...
 
 withComponent (string $component)
 
 withEvent (string $event)
 
 withParameters (array $parameters)
 
 handle ()
 

Static Public Member Functions

static handleEvent ($a_component, $a_event, $a_parameter)
 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" => ...)
More...
 
- Static Public Member Functions inherited from ilTermsOfServiceAppEventListener
static handleEvent ($a_component, $a_event, $a_parameter)
 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" => ...)
More...
 

Static Public Attributes

static $mockHelper
 

Additional Inherited Members

- Protected Member Functions inherited from ilTermsOfServiceAppEventListener
 isUserDeletionEvent ()
 
- Protected Attributes inherited from ilTermsOfServiceAppEventListener
 $helper
 
 $component = ''
 
 $event = ''
 
 $parameters = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTestableTermsOfServiceAppEventListener::__construct ( ilTermsOfServiceHelper  $helper)

ilTestableTermsOfServiceAppEventListener constructor.

Parameters
ilTermsOfServiceHelper$helper

Definition at line 89 of file ilTermsOfServiceAppEventListenerTest.php.

References ILIAS\GlobalScreen\Provider\__construct().

90  {
91  parent::__construct($helper);
92  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ handleEvent()

static ilTestableTermsOfServiceAppEventListener::handleEvent (   $a_component,
  $a_event,
  $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 97 of file ilTermsOfServiceAppEventListenerTest.php.

Referenced by ilTermsOfServiceAppEventListenerTest\testStaticEventListeningWorksAsExpected().

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

Field Documentation

◆ $mockHelper

ilTestableTermsOfServiceAppEventListener::$mockHelper
static

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