ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilCourseWaitingList.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
6include_once('./Services/Membership/classes/class.ilWaitingList.php');
7
17{
22 public function addToList($a_usr_id)
23 {
24 global $DIC;
25
26 $ilAppEventHandler = $DIC['ilAppEventHandler'];
27 $ilLog = $DIC['ilLog'];
28
29 if (!parent::addToList($a_usr_id)) {
30 return false;
31 }
32
33 $ilLog->write(__METHOD__ . ': Raise new event: Modules/Course addToList');
34 $ilAppEventHandler->raise(
35 "Modules/Course",
36 'addToWaitingList',
37 array(
38 'obj_id' => $this->getObjId(),
39 'usr_id' => $a_usr_id
40 )
41 );
42 return true;
43 }
44
45
50 public function removeFromList($a_usr_id)
51 {
52 global $DIC;
53
54 $ilAppEventHandler = $DIC['ilAppEventHandler'];
55 $ilLog = $DIC['ilLog'];
56
57 if (!parent::removeFromList($a_usr_id)) {
58 return false;
59 }
60
61 $ilLog->write(__METHOD__ . ': Raise new event: Modules/Course removeFromList');
62 $ilAppEventHandler->raise(
63 "Modules/Course",
64 'removeFromWaitingList',
65 array(
66 'obj_id' => $this->getObjId(),
67 'usr_id' => $a_usr_id
68 )
69 );
70 return true;
71 }
72}
An exception for terminatinating execution or to throw for unit testing.
removeFromList($a_usr_id)
Remove from waiting list and raise event.
addToList($a_usr_id)
Add to waiting list and raise event.
Base class for course and group waiting lists.
$DIC
Definition: xapitoken.php:46