ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilNotificationAppEventListener Class Reference
+ Inheritance diagram for ilNotificationAppEventListener:
+ Collaboration diagram for ilNotificationAppEventListener:

Static Public Member Functions

static handleEvent ($a_component, $a_event, $a_parameter)
 Handle events like create, update, delete. More...
 
static handleEvent ($a_component, $a_event, $a_parameter)
 Handle an event in a listener. More...
 

Detailed Description

Author
Alex Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Version
$Id$

Definition at line 15 of file class.ilNotificationAppEventListener.php.

Member Function Documentation

◆ handleEvent()

static ilNotificationAppEventListener::handleEvent (   $a_component,
  $a_event,
  $a_parameter 
)
static

Handle events like create, update, delete.

@access public

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 26 of file class.ilNotificationAppEventListener.php.

27 {
28 switch ($a_component) {
29 case 'Services/Object':
30
31 switch ($a_event) {
32 case 'delete':
33 if ($a_parameter['obj_id'] > 0) {
34 include_once("./Services/Notification/classes/class.ilObjNotificationSettings.php");
35 $set = new ilObjNotificationSettings($a_parameter['obj_id']);
36 $set->delete();
37 break;
38 }
39 }
40 break;
41 }
42 }
Handles general object notification settings, see e.g.

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