ILIAS  release_7 Revision v7.30-3-g800a261c036
ilGroupWaitingList Class Reference

Waiting list for groups. More...

+ Inheritance diagram for ilGroupWaitingList:
+ Collaboration diagram for ilGroupWaitingList:

Public Member Functions

 addToList ($a_usr_id)
 Add to 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

Waiting list for groups.

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

Definition at line 35 of file class.ilGroupWaitingList.php.

Member Function Documentation

◆ addToList()

ilGroupWaitingList::addToList (   $a_usr_id)

Add to waiting list and raise event.

Parameters
int$a_usr_id

Reimplemented from ilWaitingList.

Definition at line 41 of file class.ilGroupWaitingList.php.

42 {
43 global $DIC;
44
45 $ilAppEventHandler = $DIC['ilAppEventHandler'];
46 $ilLog = $DIC['ilLog'];
47
48 if (!parent::addToList($a_usr_id)) {
49 return false;
50 }
51
52 $GLOBALS['DIC']->logger()->grp()->info('Raise new event: Modules/Group addToList.');
53 $ilAppEventHandler->raise(
54 "Modules/Group",
55 'addToWaitingList',
56 array(
57 'obj_id' => $this->getObjId(),
58 'usr_id' => $a_usr_id
59 )
60 );
61 return true;
62 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
global $DIC
Definition: goto.php:24

References $DIC, $GLOBALS, and ilWaitingList\getObjId().

+ Here is the call graph for this function:

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