This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
|
static | handleEvent (string $a_component, string $a_event, array $a_parameter) |
|
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 Repository app event listener
- Author
- Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Definition at line 26 of file class.ilRepositoryAppEventListener.php.
◆ handleEvent()
static ilRepositoryAppEventListener::handleEvent |
( |
string |
$a_component, |
|
|
string |
$a_event, |
|
|
array |
$a_parameter |
|
) |
| |
|
static |
Implements ilAppEventListener.
Definition at line 31 of file class.ilRepositoryAppEventListener.php.
References ILIAS\Survey\Mode\getId().
33 switch ($a_component) {
34 case "Services/Object":
36 case "deleteReference":
39 $rec_manager->removeRecommendationsOfRefId((
int) $a_parameter[
"ref_id"]);
43 $rec_manager->removeFavouritesOfRefId((
int) $a_parameter[
"ref_id"]);
46 case "beforeDeletion":
49 if ($a_parameter[
"object"]->getType() ===
"usr") {
53 $rec_manager->removeRecommendationsOfUser((
int) $a_parameter[
"object"]->
getId());
57 $rec_manager->removeFavouritesOfUser((
int) $a_parameter[
"object"]->
getId());
60 if ($a_parameter[
"object"]->getType() ===
"role") {
64 $rec_manager->removeRecommendationsOfRole((
int) $a_parameter[
"object"]->
getId());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
The documentation for this class was generated from the following file: