ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
6 include_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 ?>
Base class for course and group waiting lists.
removeFromList($a_usr_id)
Remove from waiting list and raise event.
addToList($a_usr_id)
Add to waiting list and raise event.
Create styles array
The data for the language used.
getObjId()
get obj id