Public Member Functions |
| EvaluationAnswer ($objectID="", $parentObject=NULL, $loadChildren=EVAL_LOAD_NO_CHILDREN) |
| getNumberOfVotes () |
| getRows () |
| setRows ($rows) |
| getValue () |
| setValue ($value) |
| isResidual () |
| setResidual ($boolean) |
| vote ($userID) |
| addUserID ($userID) |
| getUserID () |
| getNextUserID () |
| getUserIDs () |
| isFreetext () |
| check () |
| toString () |
| EvaluationObject ($objectID="", $parentObject=NULL, $loadChildren=EVAL_LOAD_NO_CHILDREN) |
| setTitle ($title, $encoded=false) |
| getTitle ($escaped=false) |
| setText ($text, $encoded=false) |
| getText ($escaped=false) |
| setPosition ($position) |
| getPosition () |
| setParentObject (&$parentObject) |
| getParentObject () |
| getParentID () |
| setParentID ($parentID) |
| removeChildID ($childID) |
| addChild (&$child) |
& | getChild ($childID="") |
& | getNextChild () |
| getChildren () |
| getNumberChildren () |
| save () |
| delete () |
& | duplicate () |
| duplicate_init () |
| init ($objectID="") |
| load () |
| getSpecialChildobjects (&$object, $instanceof, $reset=false) |
| StudipObject ($objectID="") |
| createNewID () |
| getObjectID () |
| setObjectID ($objectID) |
| getAuthorID () |
| getAuthor () |
| getFullname () |
| 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
Non-Anonymous vote for this answer public
- Parameters
-
Checks if object is in a valid state private
Reimplemented from EvaluationObject.
Constructor public
- Parameters
-
string | $objectID | The ID of an existing answer |
object | $parentObject | The parent object if exists |
integer | $loadChildren | See const EVAL_LOAD_*_CHILDREN |
Gets the next user public
- Returns
- string The next user id, otherwise NULL
Gets the number of votes for this answer public
- Returns
- string The counter of the answer
Gets the number of rows from freetext answers public
- Returns
- integer The number of rows
Gets the first user and removes it public
- Returns
- string The first user id
Gets all the user ids public
- Returns
- array An array full of user ids
Gets the value of an answer public
- Returns
- integer The value
public
- Returns
- integer YES, if the Answer is a textfield
Checks whether the answer is a residual answer public
- Returns
- boolean YES if it is a residual answer
Sets the answers as an residual answer public
- Parameters
-
boolean | $boolean | YES to set it as a residual answer |
Gets the number of rows for freetext answers public
- Parameters
-
integer | $rows | The number of rows |
Sets the value of an answer public
- Parameters
-
Vote for this answer public
- Parameters
-
Field Documentation
If true this is the residual answer for a question private
If >0 the answer is a freetext with $rows rows private
The number of users voted for this answer private
For internal use (getNextUserID) private
The userIDs of users who voted for this answer private
The value for an answer private
The documentation for this class was generated from the following file: