| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Base class for course and group waiting lists. More...
 Inheritance diagram for ilWaitingList:
 Inheritance diagram for ilWaitingList: Collaboration diagram for ilWaitingList:
 Collaboration diagram for ilWaitingList:| Public Member Functions | |
| __construct ($a_obj_id) | |
| Constructor. | |
| getObjId () | |
| get obj id | |
| addToList ($a_usr_id) | |
| add to list | |
| updateSubscriptionTime ($a_usr_id, $a_subtime) | |
| update subscription time | |
| removeFromList ($a_usr_id) | |
| remove usr from list | |
| isOnList ($a_usr_id) | |
| check if is on waiting list | |
| _preloadOnListInfo ($a_usr_ids, $a_obj_ids) | |
| Preload on list info. | |
| getCountUsers () | |
| get number of users | |
| getPosition ($a_usr_id) | |
| get position | |
| getAllUsers () | |
| get all users on waiting list | |
| getUser ($a_usr_id) | |
| get user | |
| getUserIds () | |
| Get all user ids of users on waiting list. | |
| Static Public Member Functions | |
| static | _deleteAll ($a_obj_id) | 
| delete all | |
| static | _deleteUser ($a_usr_id) | 
| Delete user. | |
| static | deleteUserEntry ($a_usr_id, $a_obj_id) | 
| Delete one user entry. | |
| static | _isOnList ($a_usr_id, $a_obj_id) | 
| Check if a user on the waiting list. | |
| Static Public Attributes | |
| static | $is_on_list = array() | 
| Private Member Functions | |
| read () | |
| Read waiting list. | |
| Private Attributes | |
| $db = null | |
| $obj_id = 0 | |
| $user_ids = array() | |
| $users = array() | |
Base class for course and group waiting lists.
Definition at line 33 of file class.ilWaitingList.php.
| ilWaitingList::__construct | ( | $a_obj_id | ) | 
Constructor.
public
| int | obj_id | 
Definition at line 49 of file class.ilWaitingList.php.
References read().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
delete all
public
| int | obj_id | 
Definition at line 66 of file class.ilWaitingList.php.
Referenced by ilMembershipTest\testMembership(), and ilSoapCourseAdministration\updateCourse().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Delete user.
public
| int | user_id | 
Definition at line 83 of file class.ilWaitingList.php.
Referenced by ilMembershipTest\testMembership().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Check if a user on the waiting list.
| object | $a_usr_id | |
| object | $a_obj_id | public | 
Definition at line 207 of file class.ilWaitingList.php.
Referenced by ilObjGroupAccess\_checkAccess(), ilObjCourseAccess\_checkAccess(), ilObjCourseListGUI\getProperties(), ilObjGroupListGUI\getProperties(), ilObjGroupGUI\getTabs(), and ilObjCourseGUI\getTabs().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilWaitingList::_preloadOnListInfo | ( | $a_usr_ids, | |
| $a_obj_ids | |||
| ) | 
Preload on list info.
This is used, e.g. in the repository to prevent multiple reads on the waiting list table. The function is triggered in the preload functions of ilObjCourseAccess and ilObjGroupAccess.
| array | $a_usr_ids | array of user ids | 
| array | $a_obj_ids | array of object ids | 
Definition at line 233 of file class.ilWaitingList.php.
References $obj_id, $query, $res, and $usr_id.
Referenced by ilObjGroupAccess\_preloadData(), and ilObjCourseAccess\_preloadData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilWaitingList::addToList | ( | $a_usr_id | ) | 
add to list
public
| int | usr_id | 
Definition at line 128 of file class.ilWaitingList.php.
References $query, $res, getObjId(), isOnList(), and read().
Referenced by ilGroupRegistrationGUI\add(), and ilCourseRegistrationGUI\add().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Delete one user entry.
| object | $a_usr_id | |
| object | $a_obj_id | 
Definition at line 99 of file class.ilWaitingList.php.
References $query.
Referenced by ilParticipant\add(), and ilParticipants\add().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilWaitingList::getAllUsers | ( | ) | 
get all users on waiting list
public
Definition at line 294 of file class.ilWaitingList.php.
| ilWaitingList::getCountUsers | ( | ) | 
get number of users
public
Definition at line 271 of file class.ilWaitingList.php.
| ilWaitingList::getObjId | ( | ) | 
get obj id
public
Definition at line 117 of file class.ilWaitingList.php.
References $obj_id.
Referenced by addToList(), read(), removeFromList(), and updateSubscriptionTime().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilWaitingList::getPosition | ( | $a_usr_id | ) | 
get position
public
| int | usr_id | 
Definition at line 283 of file class.ilWaitingList.php.
| ilWaitingList::getUser | ( | $a_usr_id | ) | 
get user
public
| int | usr_id | 
Definition at line 306 of file class.ilWaitingList.php.
| ilWaitingList::getUserIds | ( | ) | 
Get all user ids of users on waiting list.
Definition at line 316 of file class.ilWaitingList.php.
| ilWaitingList::isOnList | ( | $a_usr_id | ) | 
check if is on waiting list
public
| int | usr_id | 
Definition at line 194 of file class.ilWaitingList.php.
Referenced by addToList().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Read waiting list.
private
| @return | 
Definition at line 329 of file class.ilWaitingList.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and getObjId().
Referenced by __construct(), addToList(), and removeFromList().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilWaitingList::removeFromList | ( | $a_usr_id | ) | 
remove usr from list
public
| int | usr_id | 
Definition at line 174 of file class.ilWaitingList.php.
References $query, $res, getObjId(), and read().
Referenced by ilObjGroupGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignFromWaitingListObject(), ilObjGroupGUI\refuseFromListObject(), and ilObjCourseGUI\refuseFromListObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilWaitingList::updateSubscriptionTime | ( | $a_usr_id, | |
| $a_subtime | |||
| ) | 
update subscription time
public
| int | usr_id | 
| int | subsctription time | 
Definition at line 155 of file class.ilWaitingList.php.
References $query, $res, and getObjId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 35 of file class.ilWaitingList.php.
| 
 | static | 
Definition at line 40 of file class.ilWaitingList.php.
| 
 | private | 
Definition at line 36 of file class.ilWaitingList.php.
Referenced by _preloadOnListInfo(), and getObjId().
| 
 | private | 
Definition at line 37 of file class.ilWaitingList.php.
| 
 | private | 
Definition at line 38 of file class.ilWaitingList.php.