ILIAS
Release_3_10_x_branch Revision 61812
|
Base class for course and group waiting lists. More...
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 | |
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. |
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 48 of file class.ilWaitingList.php.
References read().
|
static |
delete all
public
int | obj_id |
Definition at line 65 of file class.ilWaitingList.php.
Referenced by ilSoapCourseAdministration\updateCourse().
|
static |
Delete user.
public
int | user_id |
Definition at line 82 of file class.ilWaitingList.php.
ilWaitingList::addToList | ( | $a_usr_id | ) |
add to list
public
int | usr_id |
Definition at line 110 of file class.ilWaitingList.php.
References getObjId(), isOnList(), and read().
Referenced by ilGroupRegistrationGUI\add(), and ilCourseRegistrationGUI\add().
ilWaitingList::getAllUsers | ( | ) |
get all users on waiting list
public
Definition at line 211 of file class.ilWaitingList.php.
ilWaitingList::getCountUsers | ( | ) |
get number of users
public
Definition at line 188 of file class.ilWaitingList.php.
ilWaitingList::getObjId | ( | ) |
get obj id
public
Definition at line 99 of file class.ilWaitingList.php.
References $obj_id.
Referenced by addToList(), read(), removeFromList(), and updateSubscriptionTime().
ilWaitingList::getPosition | ( | $a_usr_id | ) |
get position
public
int | usr_id |
Definition at line 200 of file class.ilWaitingList.php.
ilWaitingList::getUser | ( | $a_usr_id | ) |
get user
public
int | usr_id |
Definition at line 223 of file class.ilWaitingList.php.
ilWaitingList::getUserIds | ( | ) |
Get all user ids of users on waiting list.
Definition at line 233 of file class.ilWaitingList.php.
ilWaitingList::isOnList | ( | $a_usr_id | ) |
check if is on waiting list
public
int | usr_id |
Definition at line 177 of file class.ilWaitingList.php.
Referenced by addToList().
|
private |
Read waiting list.
private
@return |
Definition at line 246 of file class.ilWaitingList.php.
References $res, DB_FETCHMODE_OBJECT, and getObjId().
Referenced by __construct(), addToList(), and removeFromList().
ilWaitingList::removeFromList | ( | $a_usr_id | ) |
remove usr from list
public
int | usr_id |
Definition at line 156 of file class.ilWaitingList.php.
References getObjId(), and read().
Referenced by ilObjGroupGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignFromWaitingListObject(), ilObjGroupGUI\refuseFromListObject(), and ilObjCourseGUI\refuseFromListObject().
ilWaitingList::updateSubscriptionTime | ( | $a_usr_id, | |
$a_subtime | |||
) |
update subscription time
public
int | usr_id |
int | subsctription time |
Definition at line 136 of file class.ilWaitingList.php.
References getObjId().
|
private |
Definition at line 35 of file class.ilWaitingList.php.
|
private |
Definition at line 36 of file class.ilWaitingList.php.
Referenced by getObjId().
|
private |
Definition at line 37 of file class.ilWaitingList.php.
|
private |
Definition at line 38 of file class.ilWaitingList.php.