ILIAS  release_7 Revision v7.30-3-g800a261c036
ilContactAppEventListener Class Reference

Class ilContactAppEventListener. More...

+ Inheritance diagram for ilContactAppEventListener:
+ Collaboration diagram for ilContactAppEventListener:

Static Public Member Functions

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

Detailed Description

Member Function Documentation

◆ handleEvent()

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

@inheritDoc

Implements ilAppEventListener.

Definition at line 13 of file class.ilContactAppEventListener.php.

14 {
15 global $DIC;
16
17 if ('Services/User' == $a_component && 'deleteUser' == $a_event) {
18 ilBuddyList::getInstanceByUserId((int) $a_parameter['usr_id'])->destroy();
19 ilMailingList::removeAssignmentsByUserId((int) $a_parameter['usr_id']);
20 }
21
22 if ('Services/Contact' == $a_component && 'contactRequested' == $a_event) {
23 $notification = new ilBuddySystemNotification($DIC->user(), $DIC->settings());
24 $notification->setRecipientIds([(int) $a_parameter['usr_id']]);
25 $notification->send();
26 }
27 }
static getInstanceByUserId(int $usrId)
global $DIC
Definition: goto.php:24

References $DIC, and ilBuddyList\getInstanceByUserId().

+ Here is the call graph for this function:

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