Public Member Functions |
| EvaluationDB () |
| load (&$evalObject) |
| save (&$evalObject) |
| delete (&$evalObject) |
| exists ($evalID) |
| hasVoted ($evalID, $userID="") |
| getType ($objectID) |
| connectWithUser ($evalID, $userID) |
| removeUser ($evalID, $userID="") |
| getNumberOfVotes ($evalID) |
| getUserVoted ($evalID, $answerIDs=array(), $questionIDs=array()) |
| search_range ($search_str) |
| EvaluationObjectDB () |
| getRangename ($rangeID, $html_decode=true) |
| getGlobalPerm ($as_value=false) |
| getRangePerm ($rangeID, $userID=NULL, $as_value=false) |
| getValidRangeIDs (&$permObj, &$userObj, $rangeID) |
| getEvalUserRangesWithNoPermission (&$eval, $return_ids=false) |
| getPublicTemplateIDs ($searchString) |
| getEvaluationIDs ($rangeID="", $state="") |
| getEvalID ($objectID) |
| DatabaseObject () |
| getObjectID () |
| setObjectID ($objectID) |
| getAuthorID () |
| setAuthorID ($authorID) |
| getRangeID () |
| setRangeID ($rangeID) |
| AuthorObject () |
| finalize () |
| setAuthorEmail ($email) |
| getAuthorEmail () |
| setAuthorName ($name) |
| getAuthorName () |
| x_instanceof () |
| isError () |
| getErrors () |
| resetErrors () |
| throwError ($errcode, $errstring, $errline=0, $errfile=0, $errtype=ERROR_NORMAL) |
| throwErrorFromClass (&$class) |
| errorHandler ($no, $str, $file, $line, $ctx) |
Member Function Documentation
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
getNumberOfVotes |
( |
|
$evalID | ) |
|
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
Reimplemented from EvaluationObjectDB.
getUserVoted |
( |
|
$evalID, |
|
|
|
$answerIDs = array () , |
|
|
|
$questionIDs = array () |
|
) |
| |
Get users who participated in the eval public
- Parameters
-
string | $evalID | The eval id |
array | $answerIDs | The answerIDs to get the pseudonym users |
- Returns
- integer The number of users
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: