ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilObjectAppEventListener Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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. "Modules/Forum" or "Services/User"
string$a_eventevent e.g. "createUser", "updateUser", "deleteUser", ...
array<string,mixed>$a_parameter parameter array (assoc), array("name" => ..., "phone_office" => ...)
More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilObjectAppEventListener

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

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

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. "Modules/Forum" or "Services/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.

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

30  : void
31  {
32  global $DIC;
33 
34  if ('Services/Object' === $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: feed.php:28
+ Here is the call graph for this function:

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