ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 $ilAppEventHandler, $ilLog;
25
26 if(!parent::addToList($a_usr_id))
27 {
28 return FALSE;
29 }
30
31 $ilLog->write(__METHOD__.': Raise new event: Modules/Course addToList');
32 $ilAppEventHandler->raise(
33 "Modules/Course",
34 'addToWaitingList',
35 array(
36 'obj_id' => $this->getObjId(),
37 'usr_id' => $a_usr_id
38 )
39 );
40 return TRUE;
41 }
42
43
48 public function removeFromList($a_usr_id)
49 {
50 global $ilAppEventHandler, $ilLog;
51
52 if(!parent::removeFromList($a_usr_id))
53 {
54 return FALSE;
55 }
56
57 $ilLog->write(__METHOD__ . ': Raise new event: Modules/Course removeFromList');
58 $ilAppEventHandler->raise(
59 "Modules/Course", 'removeFromWaitingList',
60 array(
61 'obj_id' => $this->getObjId(),
62 'usr_id' => $a_usr_id
63 )
64 );
65 return TRUE;
66 }
67
68}
69
70?>
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.