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