ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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.
References $DIC, $ilDB, and read().
|
static |
delete all
public
int | obj_id |
Definition at line 87 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilMembershipTest\testMembership(), and ilSoapCourseAdministration\updateCourse().
|
static |
Delete user.
public
int | user_id |
Definition at line 106 of file class.ilWaitingList.php.
References $DIC, $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 239 of file class.ilWaitingList.php.
References $DIC, $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 266 of file class.ilWaitingList.php.
References $DIC, $ilDB, $obj_id, $query, and $res.
Referenced by ilObjGroupAccess\_preloadData(), and ilObjCourseAccess\_preloadData().
ilWaitingList::addToList | ( | $a_usr_id | ) |
add to list
public
int | usr_id |
Definition at line 155 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, getObjId(), isOnList(), and read().
|
static |
Delete one user entry.
int | $a_usr_id | |
int | $a_obj_id |
Definition at line 124 of file class.ilWaitingList.php.
References $DIC, $ilDB, and $query.
Referenced by ilParticipant\add(), ilParticipants\add(), and ilObjSessionGUI\unregisterObject().
ilWaitingList::getAllUsers | ( | ) |
get all users on waiting list
public
Definition at line 324 of file class.ilWaitingList.php.
Referenced by ilCourseXMLWriter\__buildWaitingList().
ilWaitingList::getCountUsers | ( | ) |
get number of users
public
Definition at line 301 of file class.ilWaitingList.php.
ilWaitingList::getObjId | ( | ) |
get obj id
public
Definition at line 144 of file class.ilWaitingList.php.
References $obj_id.
Referenced by ilLearningSequenceWaitingList\addToList(), 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 313 of file class.ilWaitingList.php.
ilWaitingList::getUser | ( | $a_usr_id | ) |
get user
public
int | usr_id |
Definition at line 336 of file class.ilWaitingList.php.
ilWaitingList::getUserIds | ( | ) |
Get all user ids of users on waiting list.
Definition at line 346 of file class.ilWaitingList.php.
ilWaitingList::isOnList | ( | $a_usr_id | ) |
check if is on waiting list
public
int | usr_id |
Definition at line 226 of file class.ilWaitingList.php.
Referenced by addToList().
|
static |
Lookup waiting lit size.
int | $a_obj_id |
Definition at line 65 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjGroupAccess\lookupRegistrationInfo(), and ilObjCourseAccess\lookupRegistrationInfo().
|
private |
Read waiting list.
private
Definition at line 359 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, $row, 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 204 of file class.ilWaitingList.php.
References $DIC, $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 183 of file class.ilWaitingList.php.
References $DIC, $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.