ILIAS
eassessment Revision 61809
|
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. | |
static | deleteUserEntry ($a_usr_id, $a_obj_id) |
Delete one user entry. | |
static | _isOnList ($a_usr_id, $a_obj_id) |
Check if a user on the waiting list. |
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 | ) |
|
static |
delete all
public
int | obj_id |
Definition at line 65 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 82 of file class.ilWaitingList.php.
References $ilDB, $query, and $res.
Referenced by ilMembershipTest\testMembership().
|
static |
Check if a user on the waiting list.
object | $a_usr_id | |
object | $a_obj_id | public |
Definition at line 206 of file class.ilWaitingList.php.
References $ilDB, $query, and $res.
Referenced by ilObjGroupAccess\_checkAccess(), ilObjCourseAccess\_checkAccess(), ilObjCourseListGUI\getProperties(), ilObjGroupListGUI\getProperties(), ilObjGroupGUI\getTabs(), and ilObjCourseGUI\getTabs().
ilWaitingList::addToList | ( | $a_usr_id | ) |
add to list
public
int | usr_id |
Definition at line 127 of file class.ilWaitingList.php.
References $ilDB, $query, $res, getObjId(), isOnList(), and read().
Referenced by ilGroupRegistrationGUI\add(), and ilCourseRegistrationGUI\add().
|
static |
Delete one user entry.
object | $a_usr_id | |
object | $a_obj_id |
Definition at line 98 of file class.ilWaitingList.php.
Referenced by ilParticipants\add().
ilWaitingList::getAllUsers | ( | ) |
get all users on waiting list
public
Definition at line 247 of file class.ilWaitingList.php.
ilWaitingList::getCountUsers | ( | ) |
get number of users
public
Definition at line 224 of file class.ilWaitingList.php.
ilWaitingList::getObjId | ( | ) |
get obj id
public
Definition at line 116 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 236 of file class.ilWaitingList.php.
ilWaitingList::getUser | ( | $a_usr_id | ) |
get user
public
int | usr_id |
Definition at line 259 of file class.ilWaitingList.php.
ilWaitingList::getUserIds | ( | ) |
Get all user ids of users on waiting list.
Definition at line 269 of file class.ilWaitingList.php.
ilWaitingList::isOnList | ( | $a_usr_id | ) |
check if is on waiting list
public
int | usr_id |
Definition at line 193 of file class.ilWaitingList.php.
Referenced by addToList().
|
private |
Read waiting list.
private
@return |
Definition at line 282 of file class.ilWaitingList.php.
References $ilDB, $query, $res, $row, 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 173 of file class.ilWaitingList.php.
References $ilDB, $query, $res, 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 154 of file class.ilWaitingList.php.
References $ilDB, $query, $res, and 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.