ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilRegistrationAppEventListener Class Reference
+ Inheritance diagram for ilRegistrationAppEventListener:
+ Collaboration diagram for ilRegistrationAppEventListener:

Static Public Member Functions

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

Detailed Description

Definition at line 23 of file class.ilRegistrationAppEventListener.php.

Member Function Documentation

◆ handleEvent()

static ilRegistrationAppEventListener::handleEvent ( string  $a_component,
string  $a_event,
array  $a_parameter 
)
static

Handle an event in a listener.

Parameters
string$a_componentcomponent, e.g. "components/ILIAS/Forum" or "components/ILIAS/User"
string$a_eventevent e.g. "createUser", "updateUser", "deleteUser", ...
array<string,mixed>$a_parameter parameter array (assoc), array("name" => ..., "phone_office" => ...)

Implements ilAppEventListener.

Definition at line 25 of file class.ilRegistrationAppEventListener.php.

25 : void
26 {
27 if ($a_component === 'Services/User' && $a_event === 'deleteUser') {
28 global $DIC;
29
30 $pending_reg_repository = new PendingRegistrationDatabaseRepository($DIC->database());
31 $pending_reg_repository->deleteByUserId((int) $a_parameter['usr_id']);
32 }
33 }
@phpstan-type PendingRegistrationRecord array{id: string, usr_id: int, reg_hash: string,...
global $DIC
Definition: shib_login.php:26

References $DIC.


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