Public Member Functions |
| EvaluationAnswerDB () |
| load (&$answerObject) |
| loadVotes (&$answerObject) |
| save (&$answerObject) |
| resetVotes (&$answerObject) |
| delete (&$answerObject) |
| exists ($answerID) |
| addChildren (&$parentObject) |
| getType ($objectID) |
| getParentID ($objectID) |
| getUserAnwerIDs ($questionID, $userID) |
| hasVoted ($answerID, $userID) |
| getAllAnswers ($question_id, $userID, $only_user_answered=false) |
| 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
addChildren |
( |
& |
$parentObject | ) |
|
Adds the children to a parent object public
- Parameters
-
delete |
( |
& |
$answerObject | ) |
|
Deletes a answer public
- Parameters
-
- Exceptions
-
Checks if answer with this ID exists public
- Parameters
-
string | $answerID | The answerID |
- Returns
- bool YES if exists
getAllAnswers |
( |
|
$question_id, |
|
|
|
$userID, |
|
|
|
$only_user_answered = false |
|
) |
| |
Returns the id from the parent object public
- Parameters
-
string | $objectID | The object id |
- Returns
- string The id from the parent object
Returns the type of an objectID public
- Parameters
-
string | $objectID | The objectID |
- Returns
- string INSTANCEOF_x, else NO
Reimplemented from EvaluationObjectDB.
getUserAnwerIDs |
( |
|
$questionID, |
|
|
|
$userID |
|
) |
| |
Give all textanswers for a user and question for the export public
- Parameters
-
string | $questionID | The question id |
string | $userID | The user id |
hasVoted |
( |
|
$answerID, |
|
|
|
$userID |
|
) |
| |
Checks whether a user has voted for an answer public
- Parameters
-
string | $answerID | The answer id |
string | $userID | The user id |
- Returns
- boolean YES if user has voted for the answer
Loads answers of a group from the DB public
- Parameters
-
loadVotes |
( |
& |
$answerObject | ) |
|
Loads the votes from the users for this answer public
- Parameters
-
resetVotes |
( |
& |
$answerObject | ) |
|
Deletes all votes from the users for this answers public
- Parameters
-
Writes answers into the DB public
- Parameters
-
- Exceptions
-
The documentation for this class was generated from the following file: