ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 14 of file class.ilStudyProgrammeEvents.php.

14 {
15 if (self::$app_event_handler === null) {
16 global $DIC;
17 $ilAppEventHandler = $DIC['ilAppEventHandler'];
18 self::$app_event_handler = $ilAppEventHandler;
19 }
20 }
global $DIC

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 22 of file class.ilStudyProgrammeEvents.php.

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

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 27 of file class.ilStudyProgrammeEvents.php.

27 {
28 self::raise("userAssigned", array
29 ( "root_prg_id" => $a_assignment->getStudyProgramme()->getId()
30 , "usr_id" => $a_assignment->getUserId()
31 , "ass_id" => $a_assignment->getId()
32 ));
33 }
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 35 of file class.ilStudyProgrammeEvents.php.

35 {
36 self::raise("userDeassigned", array
37 ( "root_prg_id" => $a_assignment->getStudyProgramme()->getId()
38 , "usr_id" => $a_assignment->getUserId()
39 , "ass_id" => $a_assignment->getId()
40 ));
41 }

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 43 of file class.ilStudyProgrammeEvents.php.

43 {
44 $ass = $a_progress->getAssignment();
45 self::raise("userSuccessful", array
46 ( "root_prg_id" => $ass->getStudyProgramme()->getId()
47 , "prg_id" => $a_progress->getStudyProgramme()->getId()
48 , "usr_id" => $ass->getUserId()
49 , "ass_id" => $ass->getId()
50 ));
51 }
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 12 of file class.ilStudyProgrammeEvents.php.

Referenced by ilStudyProgrammeEventsTest\setUp().

◆ $component

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

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


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