ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilDashboardAppEventListener.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:26
Interface for event handling.