ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Base class for course and group waiting lists. More...
Public Member Functions | |
__construct (int $a_obj_id) | |
getObjId () | |
addToList (int $a_usr_id) | |
updateSubscriptionTime (int $a_usr_id, int $a_subtime) | |
removeFromList (int $a_usr_id) | |
isOnList (int $a_usr_id) | |
getCountUsers () | |
getPosition (int $a_usr_id) | |
getAllUsers () | |
get all users on waiting list public More... | |
getUser (int $a_usr_id) | |
get user More... | |
getUserIds () | |
Static Public Member Functions | |
static | lookupListSize (int $a_obj_id) |
static | _deleteAll (int $a_obj_id) |
static | _deleteUser (int $a_usr_id) |
static | deleteUserEntry (int $a_usr_id, int $a_obj_id) |
static | _isOnList (int $a_usr_id, int $a_obj_id) |
static | _preloadOnListInfo (array $a_usr_ids, array $a_obj_ids) |
Preload on list info. More... | |
Static Public Attributes | |
static array | $is_on_list = [] |
Protected Attributes | |
ilDBInterface | $db |
ilAppEventHandler | $eventHandler |
Private Member Functions | |
read () | |
Private Attributes | |
int | $obj_id = 0 |
array | $user_ids = [] |
array | $users = [] |
Base class for course and group waiting lists.
Definition at line 26 of file class.ilWaitingList.php.
ilWaitingList::__construct | ( | int | $a_obj_id | ) |
|
static |
Definition at line 60 of file class.ilWaitingList.php.
References $DIC, $ilDB, and $res.
Referenced by ilSoapCourseAdministration\excludeCourseMember().
|
static |
Definition at line 70 of file class.ilWaitingList.php.
References $DIC, $ilDB, and $res.
Referenced by ilParticipants\_deleteUser().
|
static |
Definition at line 135 of file class.ilWaitingList.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjGroupAccess\_checkAccess(), ilObjSessionAccess\_checkAccess(), ilObjCourseAccess\_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.
Definition at line 158 of file class.ilWaitingList.php.
References $DIC, $ilDB, $obj_id, $res, and ILIAS\Repository\int().
Referenced by ilObjGroupAccess\_preloadData(), and ilObjCourseAccess\_preloadData().
ilWaitingList::addToList | ( | int | $a_usr_id | ) |
Definition at line 95 of file class.ilWaitingList.php.
References $res, getObjId(), isOnList(), and read().
|
static |
Definition at line 79 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 194 of file class.ilWaitingList.php.
References $users.
Referenced by ilCourseXMLWriter\__buildWaitingList().
ilWaitingList::getCountUsers | ( | ) |
Definition at line 179 of file class.ilWaitingList.php.
Referenced by ilGroupRegistrationGUI\fillMaxMembers(), and ilCourseRegistrationGUI\fillMaxMembers().
ilWaitingList::getObjId | ( | ) |
Definition at line 90 of file class.ilWaitingList.php.
References $obj_id.
Referenced by ilLearningSequenceWaitingList\addToList(), ilGroupWaitingList\addToList(), ilSessionWaitingList\addToList(), ilCourseWaitingList\addToList(), addToList(), read(), ilCourseWaitingList\removeFromList(), removeFromList(), and updateSubscriptionTime().
ilWaitingList::getPosition | ( | int | $a_usr_id | ) |
Definition at line 184 of file class.ilWaitingList.php.
Referenced by ilGroupRegistrationGUI\fillMaxMembers(), and ilCourseRegistrationGUI\fillMaxMembers().
ilWaitingList::getUser | ( | int | $a_usr_id | ) |
get user
int | usr_id |
Definition at line 204 of file class.ilWaitingList.php.
ilWaitingList::getUserIds | ( | ) |
ilWaitingList::isOnList | ( | int | $a_usr_id | ) |
Definition at line 130 of file class.ilWaitingList.php.
Referenced by addToList(), ilGroupRegistrationGUI\fillMaxMembers(), and ilCourseRegistrationGUI\fillMaxMembers().
|
static |
Definition at line 47 of file class.ilWaitingList.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjGroupAccess\lookupRegistrationInfo(), and ilObjCourseAccess\lookupRegistrationInfo().
|
private |
Definition at line 217 of file class.ilWaitingList.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, getObjId(), and ILIAS\Repository\int().
Referenced by __construct(), addToList(), and removeFromList().
ilWaitingList::removeFromList | ( | int | $a_usr_id | ) |
Definition at line 120 of file class.ilWaitingList.php.
References getObjId(), and read().
ilWaitingList::updateSubscriptionTime | ( | int | $a_usr_id, |
int | $a_subtime | ||
) |
Definition at line 111 of file class.ilWaitingList.php.
References $res, and getObjId().
|
protected |
Definition at line 32 of file class.ilWaitingList.php.
|
protected |
Definition at line 33 of file class.ilWaitingList.php.
|
static |
Definition at line 28 of file class.ilWaitingList.php.
|
private |
Definition at line 29 of file class.ilWaitingList.php.
Referenced by _preloadOnListInfo(), and getObjId().
|
private |
Definition at line 30 of file class.ilWaitingList.php.
Referenced by getUserIds().
|
private |
Definition at line 31 of file class.ilWaitingList.php.
Referenced by getAllUsers().