ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilDataCollectionAppEventListener.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 private static ?ilDclNotification $notification = null;
24
25 public static function handleEvent(string $component, string $event, array $parameter): void
26 {
27 if ($event === 'deleteUser') {
28 if (self::$notification === null) {
29 global $DIC;
30 self::$notification = new ilDclNotification($DIC->database());
31 }
32 self::$notification->deleteForUser($parameter['usr_id']);
33 }
34 }
35}
static handleEvent(string $component, string $event, array $parameter)
Handle an event in a listener.
Interface for event handling.
global $DIC
Definition: shib_login.php:26