◆ __construct()
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 |
◆ addUserID()
Non-Anonymous vote for this answer public
- Parameters
-
◆ check()
Checks if object is in a valid state private
◆ getNextUserID()
Gets the next user public
- Returns
- string The next user id, otherwise NULL
◆ getNumberOfVotes()
Gets the number of votes for this answer public
- Returns
- string The counter of the answer
◆ getRows()
Gets the number of rows from freetext answers public
- Returns
- integer The number of rows
◆ getUserID()
Gets the first user and removes it public
- Returns
- string The first user id
◆ getUserIDs()
Gets all the user ids public
- Returns
- array An array full of user ids
◆ getValue()
Gets the value of an answer public
- Returns
- integer The value
◆ isFreetext()
public
- Returns
- integer YES, if the Answer is a textfield
◆ isResidual()
Checks whether the answer is a residual answer public
- Returns
- boolean YES if it is a residual answer
◆ setResidual()
Sets the answers as an residual answer public
- Parameters
-
boolean | $boolean | YES to set it as a residual answer |
◆ setRows()
Gets the number of rows for freetext answers public
- Parameters
-
integer | $rows | The number of rows |
◆ setValue()
Sets the value of an answer public
- Parameters
-
◆ toString()
◆ vote()
Vote for this answer public
- Parameters
-
◆ $residual
If true this is the residual answer for a question private
◆ $rows
If >0 the answer is a freetext with $rows rows private
◆ $userNum
The number of users voted for this answer private
◆ $userNumIterator
For internal use (getNextUserID) private
◆ $users
The userIDs of users who voted for this answer private
◆ $value
The value for an answer private
The documentation for this class was generated from the following file: