◆ __construct()
Standard constructor.
- Parameters
-
String | id If this is an existing list, here is its ID. |
- Returns
- This object.
◆ __toString()
Standard string representation of this object.
- Returns
- String
◆ addCondition()
addCondition |
( |
|
$condition | ) |
|
◆ addUser()
◆ delete()
◆ describe()
describe |
( |
array |
$wrapper = ['' , |
|
|
''] |
|
|
) |
| |
◆ getConditions()
Gets the currently set conditions for automatic user selection.
- Returns
- Integer
◆ getFactor()
Gets the currently set manipulation factor for this list.
- Returns
- Float
◆ getId()
Gets the list ID.
- Returns
- String
◆ getName()
Gets the list name.
- Returns
- String
◆ getOwnerId()
Gets the owner ID.
- Returns
- String
◆ getUserCount()
Just counts the number of users and returns the value.
◆ getUserLists()
static getUserLists |
( |
|
$userId | ) |
|
|
static |
Gets all user lists the given user has created.
- Parameters
-
- Returns
- array
◆ getUsers()
getUsers |
( |
bool |
$as_objects = false | ) |
|
Gets all assigned user IDs.
- Parameters
-
bool | $as_objects | Whether the users should be returned as objects |
- Returns
- array|User[]
◆ load()
Helper function for loading data from DB.
◆ removeCondition()
removeCondition |
( |
|
$conditionId | ) |
|
◆ removeUser()
◆ setConditions()
setConditions |
( |
|
$conditions | ) |
|
◆ setFactor()
Sets a factor.
- Parameters
-
float | $newFactor | The new factor to be set. |
- Returns
- AdmissionUserList
◆ setName()
◆ setOwnerId()
setOwnerId |
( |
|
$newOwnerId | ) |
|
◆ setUsers()
Sets a set of new list members, replacing previous entries.
- Parameters
-
Array | $newUsers | New member list. |
- Returns
- AdmissionUserList
◆ store()
Function for storing the data to DB. Is not called automatically on changing object values.
◆ toString()
String representation of this object.
◆ $conditions
Conditions for automatic user selection.
◆ $factor
A factor for seat distribution algorithm ("1" means normal algorithm, everything between 0 and 1 decreases the chance to get a seat, everything above 1 increases it.)
◆ $id
Unique identifier of this list.
◆ $name
Some name to display for this list.
◆ $ownerId
ID of the user who created this list.
◆ $users
All user IDs that are on this list.
The documentation for this class was generated from the following file: