ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilCourseWaitingList Class Reference

Course waiting list. More...

+ Inheritance diagram for ilCourseWaitingList:
+ Collaboration diagram for ilCourseWaitingList:

Public Member Functions

 addToList ($a_usr_id)
 Add to waiting list and raise event. More...
 
 removeFromList ($a_usr_id)
 Remove from waiting list and raise event. More...
 
- Public Member Functions inherited from ilWaitingList
 __construct ($a_obj_id)
 Constructor. More...
 
 getObjId ()
 get obj id More...
 
 addToList ($a_usr_id)
 add to list More...
 
 updateSubscriptionTime ($a_usr_id, $a_subtime)
 update subscription time More...
 
 removeFromList ($a_usr_id)
 remove usr from list More...
 
 isOnList ($a_usr_id)
 check if is on waiting list More...
 
 getCountUsers ()
 get number of users More...
 
 getPosition ($a_usr_id)
 get position More...
 
 getAllUsers ()
 get all users on waiting list More...
 
 getUser ($a_usr_id)
 get user More...
 
 getUserIds ()
 Get all user ids of users on waiting list. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilWaitingList
static lookupListSize ($a_obj_id)
 Lookup waiting lit size. More...
 
static _deleteAll ($a_obj_id)
 delete all More...
 
static _deleteUser ($a_usr_id)
 Delete user. More...
 
static deleteUserEntry ($a_usr_id, $a_obj_id)
 Delete one user entry. More...
 
static _isOnList ($a_usr_id, $a_obj_id)
 Check if a user on the waiting list. More...
 
static _preloadOnListInfo ($a_usr_ids, $a_obj_ids)
 Preload on list info. More...
 
- Static Public Attributes inherited from ilWaitingList
static $is_on_list = array()
 

Detailed Description

Course waiting list.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 16 of file class.ilCourseWaitingList.php.

Member Function Documentation

◆ addToList()

ilCourseWaitingList::addToList (   $a_usr_id)

Add to waiting list and raise event.

Parameters
int$a_usr_id

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

References $ilLog, array, and ilWaitingList\getObjId().

Referenced by ilCourseRegistrationGUI\add().

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  }
Create styles array
The data for the language used.
getObjId()
get obj id
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromList()

ilCourseWaitingList::removeFromList (   $a_usr_id)

Remove from waiting list and raise event.

Parameters
int$a_usr_id

Definition at line 48 of file class.ilCourseWaitingList.php.

References $ilLog, array, and ilWaitingList\getObjId().

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  }
Create styles array
The data for the language used.
getObjId()
get obj id
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: