connectWithUser |
( |
|
$evalID, |
|
|
|
$userID |
|
) |
| |
Connect a user with an evaluation public
- Parameters
-
string | $evalID | The evaluation id |
string | $userID | The user id |
Deletes an evaluation public
- Parameters
-
object | Evaluation &$evalObject The evaluation to delete |
- Exceptions
-
Checks if evaluation with this ID exists public
- Parameters
-
- Returns
- bool YES if exists
static getNumberOfVotes |
( |
|
$evalID | ) |
|
|
static |
Get number of users who participated in the eval public
- Parameters
-
- Returns
- integer The number of users
Returns the type of an objectID public
- Parameters
-
string | $objectID | The objectID |
- Returns
- string INSTANCEOF_x, else NO
static getUserVoted |
( |
|
$evalID, |
|
|
|
$answerIDs = [] , |
|
|
|
$questionIDs = [] |
|
) |
| |
|
static |
Get users who participated in the eval public
- Parameters
-
string | $evalID | The eval id |
array | $answerIDs | The answerIDs to get the pseudonym users |
- Returns
- string[] Ids of the users who voted
hasVoted |
( |
|
$evalID, |
|
|
|
$userID = "" |
|
) |
| |
Checks if someone used the evaluation public
- Parameters
-
string | $evalID | The eval id |
string | $userID | The user id |
- Returns
- bool YES if evaluation was used
Loads an evaluation from DB into an object
public
- Parameters
-
- Exceptions
-
removeUser |
( |
|
$evalID, |
|
|
|
$userID = "" |
|
) |
| |
Removes the connection of an evaluation with a user or all users public
- Parameters
-
string | $evalID | The evaluation id |
string | $userID | The user id |
Saves an evaluation public
- Parameters
-
object | Evaluation &$evalObject The evaluation to save |
- Exceptions
-
search_range |
( |
|
$search_str | ) |
|
public
- Parameters
-
- Returns
- array
The documentation for this class was generated from the following file: