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.

References $DIC.

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

◆ raise()

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

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

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

◆ userAssigned()

static ilStudyProgrammeEvents::userAssigned ( ilStudyProgrammeUserAssignment  $a_assignment)
static

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

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

Referenced by ilObjStudyProgramme\assignUser().

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  }
getStudyProgramme()
Get the program node where this assignment was made.
getUserId()
Get the id of the user who is assigned.
Create styles array
The data for the language used.
+ 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.

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

Referenced by ilObjStudyProgramme\removeAssignment().

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  }
getStudyProgramme()
Get the program node where this assignment was made.
getUserId()
Get the id of the user who is assigned.
Create styles array
The data for the language used.
+ 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.

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

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

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  }
getStudyProgramme()
Get the program node where this progress belongs to was made.
getAssignment()
Get the assignment this progress belongs to.
Create styles array
The data for the language used.
+ 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: