ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilStudyProgrammeEvents Class Reference

Events for the StudyProgramme. More...

+ Collaboration diagram for ilStudyProgrammeEvents:

Static Public Member Functions

static userAssigned (ilStudyProgrammeUserAssignment $a_assignment)
 
static userDeassigned (ilStudyProgrammeUserAssignment $a_assignment)
 
static userSuccessful (ilStudyProgrammeUserProgress $a_progress)
 

Static Public Attributes

static $app_event_handler = null
 

Static Protected Member Functions

static initAppEventHandler ()
 
static raise ($a_event, $a_parameter)
 

Static Protected Attributes

static $component = "Modules/StudyProgramme"
 

Detailed Description

Member Function Documentation

◆ initAppEventHandler()

static ilStudyProgrammeEvents::initAppEventHandler ( )
staticprotected

Definition at line 15 of file class.ilStudyProgrammeEvents.php.

16 {
17 if (self::$app_event_handler === null) {
18 global $DIC;
19 $ilAppEventHandler = $DIC['ilAppEventHandler'];
20 self::$app_event_handler = $ilAppEventHandler;
21 }
22 }
global $DIC
Definition: saml.php:7

References $DIC.

Referenced by raise().

+ Here is the caller graph for this function:

◆ raise()

static ilStudyProgrammeEvents::raise (   $a_event,
  $a_parameter 
)
staticprotected

Definition at line 24 of file class.ilStudyProgrammeEvents.php.

25 {
27 self::$app_event_handler->raise(self::$component, $a_event, $a_parameter);
28 }

References initAppEventHandler().

Referenced by userAssigned(), userDeassigned(), and userSuccessful().

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

◆ userAssigned()

static ilStudyProgrammeEvents::userAssigned ( ilStudyProgrammeUserAssignment  $a_assignment)
static

Definition at line 30 of file class.ilStudyProgrammeEvents.php.

31 {
32 self::raise("userAssigned", array( "root_prg_id" => $a_assignment->getStudyProgramme()->getId()
33 , "usr_id" => $a_assignment->getUserId()
34 , "ass_id" => $a_assignment->getId()
35 ));
36 }
static raise($a_event, $a_parameter)
getStudyProgramme()
Get the program node where this assignment was made.
getUserId()
Get the id of the user who is assigned.

References ilStudyProgrammeUserAssignment\getId(), ilStudyProgrammeUserAssignment\getStudyProgramme(), ilStudyProgrammeUserAssignment\getUserId(), and raise().

Referenced by ilObjStudyProgramme\assignUser().

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

◆ userDeassigned()

static ilStudyProgrammeEvents::userDeassigned ( ilStudyProgrammeUserAssignment  $a_assignment)
static

Definition at line 38 of file class.ilStudyProgrammeEvents.php.

39 {
40 self::raise("userDeassigned", array( "root_prg_id" => $a_assignment->getStudyProgramme()->getId()
41 , "usr_id" => $a_assignment->getUserId()
42 , "ass_id" => $a_assignment->getId()
43 ));
44 }

References ilStudyProgrammeUserAssignment\getId(), ilStudyProgrammeUserAssignment\getStudyProgramme(), ilStudyProgrammeUserAssignment\getUserId(), and raise().

Referenced by ilObjStudyProgramme\removeAssignment().

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

◆ userSuccessful()

static ilStudyProgrammeEvents::userSuccessful ( ilStudyProgrammeUserProgress  $a_progress)
static

Definition at line 46 of file class.ilStudyProgrammeEvents.php.

47 {
48 $ass = $a_progress->getAssignment();
49 self::raise("userSuccessful", array( "root_prg_id" => $ass->getStudyProgramme()->getId()
50 , "prg_id" => $a_progress->getStudyProgramme()->getId()
51 , "usr_id" => $ass->getUserId()
52 , "ass_id" => $ass->getId()
53 ));
54 }
getAssignment()
Get the assignment this progress belongs to.
getStudyProgramme()
Get the program node where this progress belongs to was made.

References ilStudyProgrammeUserProgress\getAssignment(), ilStudyProgrammeUserProgress\getStudyProgramme(), and raise().

Referenced by ilStudyProgrammeUserProgress\markAccredited(), ilStudyProgrammeUserProgress\setLPCompleted(), and ilStudyProgrammeUserProgress\updateStatus().

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

Field Documentation

◆ $app_event_handler

ilStudyProgrammeEvents::$app_event_handler = null
static

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

Referenced by ilStudyProgrammeEventsTest\setUp().

◆ $component

ilStudyProgrammeEvents::$component = "Modules/StudyProgramme"
staticprotected

Definition at line 12 of file class.ilStudyProgrammeEvents.php.


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