ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjectAppEventListener Class Reference

Class ilObjectAppEventListener. More...

+ Inheritance diagram for ilObjectAppEventListener:
+ Collaboration diagram for ilObjectAppEventListener:

Static Public Member Functions

static handleEvent (string $component, string $event, array $parameter)
 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" => ...)
More...
 
static handleEvent (string $a_component, string $a_event, array $a_parameter)
 Handle an event in a listener. More...
 

Detailed Description

Member Function Documentation

◆ handleEvent()

static ilObjectAppEventListener::handleEvent ( string  $component,
string  $event,
array  $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 30 of file class.ilObjectAppEventListener.php.

30 : void
31 {
32 global $DIC;
33
34 if ('components/ILIAS/ILIASObject' === $component && 'beforeDeletion' === $event) {
35 $customIconFactory = $DIC['object.customicons.factory'];
36 $customIcon = $customIconFactory->getByObjId(
37 $parameter['object']->getId(),
38 $parameter['object']->getType()
39 );
40 $customIcon->delete();
41 }
42 }
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\Survey\Mode\getId().

+ Here is the call graph for this function:

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