|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Base class for course and group waiting lists. More...
Inheritance diagram for ilWaitingList:
Collaboration diagram for ilWaitingList: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 | ) |
|
static |
delete all
@access 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().
Here is the caller graph for this function:
|
static |
Delete user.
@access 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().
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 | @access public |
Definition at line 239 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, and true.
Referenced by ilObjCourseAccess\_checkAccess(), ilObjGroupAccess\_checkAccess(), ilObjSessionAccess\_checkAccess(), ilObjCourseListGUI\getProperties(), ilObjGroupListGUI\getProperties(), ilObjCourseGUI\getTabs(), ilObjGroupGUI\getTabs(), and ilObjSessionGUI\showJoinRequestButton().
Here is the caller graph for this function:
|
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 ilObjCourseAccess\_preloadData(), and ilObjGroupAccess\_preloadData().
Here is the caller graph for this function:| ilWaitingList::addToList | ( | $a_usr_id | ) |
add to list
@access public
| int | usr_id |
Reimplemented in ilCourseWaitingList, ilGroupWaitingList, ilSessionWaitingList, and ilLearningSequenceWaitingList.
Definition at line 155 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, getObjId(), isOnList(), and read().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:| ilWaitingList::getAllUsers | ( | ) |
get all users on waiting list
@access public
Definition at line 324 of file class.ilWaitingList.php.
| ilWaitingList::getCountUsers | ( | ) |
get number of users
@access public
Definition at line 301 of file class.ilWaitingList.php.
| ilWaitingList::getObjId | ( | ) |
get obj id
@access public
Definition at line 144 of file class.ilWaitingList.php.
References $obj_id.
Referenced by ilCourseWaitingList\addToList(), ilGroupWaitingList\addToList(), ilSessionWaitingList\addToList(), addToList(), ilLearningSequenceWaitingList\addToList(), read(), ilCourseWaitingList\removeFromList(), removeFromList(), and updateSubscriptionTime().
Here is the caller graph for this function:| ilWaitingList::getPosition | ( | $a_usr_id | ) |
get position
@access public
| int | usr_id |
Definition at line 313 of file class.ilWaitingList.php.
| ilWaitingList::getUser | ( | $a_usr_id | ) |
get user
@access 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
@access public
| int | usr_id |
Definition at line 226 of file class.ilWaitingList.php.
References true.
Referenced by addToList().
Here is the caller graph for this function:
|
static |
Lookup waiting lit size.
| int | $a_obj_id |
Definition at line 65 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjCourseAccess\lookupRegistrationInfo(), and ilObjGroupAccess\lookupRegistrationInfo().
Here is the caller graph for this function:
|
private |
Read waiting list.
@access private
return
Definition at line 359 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and getObjId().
Referenced by __construct(), addToList(), and removeFromList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWaitingList::removeFromList | ( | $a_usr_id | ) |
remove usr from list
@access public
| int | usr_id |
Reimplemented in ilCourseWaitingList.
Definition at line 204 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, getObjId(), and read().
Here is the call graph for this function:| ilWaitingList::updateSubscriptionTime | ( | $a_usr_id, | |
| $a_subtime | |||
| ) |
update subscription time
@access public
| int | usr_id |
| int | subsctription time |
Definition at line 183 of file class.ilWaitingList.php.
References $DIC, $ilDB, $query, $res, and getObjId().
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.