ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  return false;
28  }
29 
30  $ilLog->write(__METHOD__ . ': Raise new event: Modules/Course addToList');
31  $ilAppEventHandler->raise(
32  "Modules/Course",
33  'addToWaitingList',
34  array(
35  'obj_id' => $this->getObjId(),
36  'usr_id' => $a_usr_id
37  )
38  );
39  return true;
40  }
41 
42 
47  public function removeFromList($a_usr_id)
48  {
49  global $ilAppEventHandler, $ilLog;
50 
51  if (!parent::removeFromList($a_usr_id)) {
52  return false;
53  }
54 
55  $ilLog->write(__METHOD__ . ': Raise new event: Modules/Course removeFromList');
56  $ilAppEventHandler->raise(
57  "Modules/Course",
58  'removeFromWaitingList',
59  array(
60  'obj_id' => $this->getObjId(),
61  'usr_id' => $a_usr_id
62  )
63  );
64  return true;
65  }
66 }
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