ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilLearningSequenceAppEventListener Class Reference

EventListener for LSO. More...

+ Collaboration diagram for ilLearningSequenceAppEventListener:

Static Public Member Functions

static handleEvent ($component, $event, $parameter)
 

Static Protected Member Functions

static getLSEventHandler ()
 
static getIlTree ()
 
static getIlLPStatusWrapper ()
 

Static Private Member Functions

static onServiceTrackingUpdateStatus (array $parameter)
 
static onObjectDeletion (array $parameter)
 
static onObjectToTrash (array $parameter)
 
static onParticipantDeletion (array $parameter)
 

Detailed Description

Member Function Documentation

◆ getIlLPStatusWrapper()

static ilLearningSequenceAppEventListener::getIlLPStatusWrapper ( )
staticprotected

Definition at line 91 of file class.ilLearningSequenceAppEventListener.php.

92 {
93 return new ilLPStatusWrapper();
94 }
Class ilLPStatusWrapper This class is wrapper for all ilLPStatus classes.

◆ getIlTree()

static ilLearningSequenceAppEventListener::getIlTree ( )
staticprotected

Definition at line 85 of file class.ilLearningSequenceAppEventListener.php.

85 : ilTree
86 {
87 global $DIC;
88 return $DIC['tree'];
89 }
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
global $DIC
Definition: saml.php:7

References $DIC.

◆ getLSEventHandler()

static ilLearningSequenceAppEventListener::getLSEventHandler ( )
staticprotected

Definition at line 80 of file class.ilLearningSequenceAppEventListener.php.

81 {
82 return new ilLSEventHandler(self::getIlTree());
83 }

Referenced by onObjectDeletion(), onObjectToTrash(), and onParticipantDeletion().

+ Here is the caller graph for this function:

◆ handleEvent()

static ilLearningSequenceAppEventListener::handleEvent (   $component,
  $event,
  $parameter 
)
static

Definition at line 13 of file class.ilLearningSequenceAppEventListener.php.

14 {
15 switch ($component) {
16 case "Services/Tracking":
17 switch ($event) {
18 case "updateStatus":
20 break;
21 }
22 break;
23 case "Services/Object":
24 switch ($event) {
25 case "beforeDeletion":
26 self::onObjectDeletion($parameter);
27 break;
28 case "toTrash":
29 self::onObjectToTrash($parameter);
30 break;
31 }
32 break;
33
34 case "Modules/LearningSequence":
35 switch ($event) {
36 case "deleteParticipant":
38 break;
39 case "addParticipant":
40 default:
41 break;
42 }
43 break;
44
45 default:
46 throw new ilException(
47 "ilLearningSequenceAppEventListener::handleEvent: " .
48 "Won't handle events of '$component'."
49 );
50 }
51 }
Base class for ILIAS Exception handling.

References onObjectDeletion(), onObjectToTrash(), onParticipantDeletion(), and onServiceTrackingUpdateStatus().

+ Here is the call graph for this function:

◆ onObjectDeletion()

static ilLearningSequenceAppEventListener::onObjectDeletion ( array  $parameter)
staticprivate

Definition at line 59 of file class.ilLearningSequenceAppEventListener.php.

60 {
62 $handler->handleObjectDeletion($parameter);
63 }
$handler

References $handler, and getLSEventHandler().

Referenced by handleEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onObjectToTrash()

static ilLearningSequenceAppEventListener::onObjectToTrash ( array  $parameter)
staticprivate

Definition at line 65 of file class.ilLearningSequenceAppEventListener.php.

66 {
68 $handler->handleObjectToTrash($parameter);
69 }

References $handler, and getLSEventHandler().

Referenced by handleEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onParticipantDeletion()

static ilLearningSequenceAppEventListener::onParticipantDeletion ( array  $parameter)
staticprivate

Definition at line 71 of file class.ilLearningSequenceAppEventListener.php.

72 {
74 $obj_id = (int) $parameter['obj_id'];
75 $usr_id = (int) $parameter['usr_id'];
76
77 $handler->handleParticipantDeletion($obj_id, $usr_id);
78 }

References $handler, and getLSEventHandler().

Referenced by handleEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onServiceTrackingUpdateStatus()

static ilLearningSequenceAppEventListener::onServiceTrackingUpdateStatus ( array  $parameter)
staticprivate

Definition at line 53 of file class.ilLearningSequenceAppEventListener.php.

54 {
55 $handler = new ilLSLPEventHandler(self::getIlTree(), self::getIlLPStatusWrapper());
56 $handler->updateLPForChildEvent($parameter);
57 }

References $handler.

Referenced by handleEvent().

+ Here is the caller graph for this function:

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