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.

References $DIC.

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

◆ raise()

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

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

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

◆ userAssigned()

static ilStudyProgrammeEvents::userAssigned ( ilStudyProgrammeUserAssignment  $a_assignment)
static

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

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

Referenced by ilObjStudyProgramme\assignUser().

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

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

Referenced by ilObjStudyProgramme\removeAssignment().

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

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

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

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  }
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 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: