ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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)
 

Detailed Description

Member Function Documentation

◆ handleEvent()

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

Implements ilAppEventListener.

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

References $DIC, ilBuddyList\getInstanceByUserId(), and ilBuddySystemNotification\setRecipientIds().

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)
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

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