ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Base class for course and group waiting lists. More...
Public Member Functions | |
__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... | |
Static Public Member Functions | |
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 | |
static | $is_on_list = array() |
Private Member Functions | |
read () | |
Read waiting list. More... | |
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.
|
static |
delete all
public
int | obj_id |
Definition at line 83 of file class.ilWaitingList.php.
References $ilDB, $query, and $res.
Referenced by ilMembershipTest\testMembership(), and ilSoapCourseAdministration\updateCourse().
|
static |
Delete user.
public
int | user_id |
Definition at line 100 of file class.ilWaitingList.php.
References $ilDB, $query, and $res.
Referenced by ilParticipants\_deleteUser(), and ilMembershipTest\testMembership().
|
static |
Check if a user on the waiting list.
object | $a_usr_id | |
object | $a_obj_id | public |
Definition at line 223 of file class.ilWaitingList.php.
References $ilDB, $query, and $res.
Referenced by ilObjGroupAccess\_checkAccess(), ilObjCourseAccess\_checkAccess(), ilObjSessionAccess\_checkAccess(), ilObjCourseListGUI\getProperties(), ilObjGroupListGUI\getProperties(), ilObjGroupGUI\getTabs(), ilObjCourseGUI\getTabs(), and ilObjSessionGUI\showJoinRequestButton().
|
static |
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 248 of file class.ilWaitingList.php.
References $ilDB, $obj_id, $query, $res, and array.
Referenced by ilObjGroupAccess\_preloadData(), and ilObjCourseAccess\_preloadData().
ilWaitingList::addToList | ( | $a_usr_id | ) |
add to list
public
int | usr_id |
Definition at line 145 of file class.ilWaitingList.php.
References $ilDB, $query, $res, getObjId(), isOnList(), read(), and time.
|
static |
Delete one user entry.
int | $a_usr_id | |
int | $a_obj_id |
Definition at line 116 of file class.ilWaitingList.php.
Referenced by ilParticipant\add(), ilParticipants\add(), and ilObjSessionGUI\unregisterObject().
ilWaitingList::getAllUsers | ( | ) |
get all users on waiting list
public
Definition at line 304 of file class.ilWaitingList.php.
References array.
Referenced by ilCourseXMLWriter\__buildWaitingList().
ilWaitingList::getCountUsers | ( | ) |
get number of users
public
Definition at line 281 of file class.ilWaitingList.php.
ilWaitingList::getObjId | ( | ) |
get obj id
public
Definition at line 134 of file class.ilWaitingList.php.
References $obj_id.
Referenced by ilSessionWaitingList\addToList(), ilCourseWaitingList\addToList(), ilGroupWaitingList\addToList(), addToList(), read(), ilCourseWaitingList\removeFromList(), removeFromList(), and updateSubscriptionTime().
ilWaitingList::getPosition | ( | $a_usr_id | ) |
get position
public
int | usr_id |
Definition at line 293 of file class.ilWaitingList.php.
ilWaitingList::getUser | ( | $a_usr_id | ) |
get user
public
int | usr_id |
Definition at line 316 of file class.ilWaitingList.php.
ilWaitingList::getUserIds | ( | ) |
Get all user ids of users on waiting list.
Definition at line 326 of file class.ilWaitingList.php.
References array.
ilWaitingList::isOnList | ( | $a_usr_id | ) |
check if is on waiting list
public
int | usr_id |
Definition at line 210 of file class.ilWaitingList.php.
Referenced by addToList().
|
static |
Lookup waiting lit size.
int | $a_obj_id |
Definition at line 63 of file class.ilWaitingList.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjGroupAccess\lookupRegistrationInfo(), and ilObjCourseAccess\lookupRegistrationInfo().
|
private |
Read waiting list.
private
Definition at line 339 of file class.ilWaitingList.php.
References $counter, $ilDB, $query, $res, $row, array, ilDBConstants\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 190 of file class.ilWaitingList.php.
References $ilDB, $query, $res, getObjId(), and read().
ilWaitingList::updateSubscriptionTime | ( | $a_usr_id, | |
$a_subtime | |||
) |
update subscription time
public
int | usr_id |
int | subsctription time |
Definition at line 171 of file class.ilWaitingList.php.
References $ilDB, $query, $res, and getObjId().
|
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.