Public Member Functions |
| TestVote ($oldTestID="") |
| setAnswers ($answerArray) |
| setCo_Visibility ($co_visibility) |
| getCo_Visibility () |
| getNumberOfCorrectAnswers ($userData=NULL) |
| readVote () |
| executeWrite () |
| checkConsistency () |
| Vote ($oldVoteID="") |
| finalize () |
| setTitle ($title) |
| getTitle () |
| setQuestion ($question) |
| getQuestion () |
| addSlashesToText () |
| getAnswers () |
| setStartdate ($timestamp) |
| getStartdate () |
| setStopdate ($timestamp) |
| getStopdate () |
| getRealStopdate () |
| getCreationdate () |
| getChangedate () |
| setTimespan ($seconds) |
| getTimespan () |
| setMultiplechoice ($multiplechoice) |
| isMultiplechoice () |
| setResultvisibility ($mode) |
| getResultvisibility () |
| setNamesvisibility ($namesvisibility) |
| getNamesvisibility () |
| setAnonymous ($anonymous) |
| isAnonymous () |
| setChangeable ($changeable) |
| isChangeable () |
| isVisible () |
| setVoteID ($objectID) |
| getVoteID () |
| setRangeID ($rangeID) |
| getRangeID () |
| setAuthorID ($authorID) |
| getAuthorID () |
| isInUse () |
| isNew () |
| isActive () |
| isStopped () |
| sortVoteAnswers () |
| getMaxAnswer () |
| getNumberAnswers () |
| getNumberPersons () |
| executeAssociate ($userID, $answerArray) |
| executeStart () |
| executeStop () |
| executeRemove () |
| executeRestart () |
| executeContinue () |
| executeSetVisible ($visibility) |
| setIsInUse ($isInUse) |
| setState ($state) |
| setCreationdate ($timestamp) |
| setChangedate ($timestamp) |
| getState () |
| sortVoteAnswerarray ($a, $b) |
| StudipObject ($objectID="") |
| createNewID () |
| getObjectID () |
| setObjectID ($objectID) |
| getAuthor () |
| getFullname () |
| AuthorObject () |
| 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) |
Additional Inherited Members |
| date2timestamp ($day, $month, $year, $hour=0, $minute=0, $second=0) |
Member Function Documentation
Checks the consostency of the test (internal!) private
- Exceptions
-
Reimplemented from Vote.
Writes the test into the database (!) public
- Exceptions
-
Reimplemented from Vote.
Gets the way how to show the correct answers public
- Returns
- bool true if the correctness of answers shall be revealed to the user right after voting
getNumberOfCorrectAnswers |
( |
|
$userData = NULL | ) |
|
Gets number of correct answers public
- Parameters
-
array | $userData | the answers the user guessed |
- Returns
- int IF param given: the number of answers the user guessed right ELSE: the total number of correct answers of the test
Loads an old vote (internal!) private
- Exceptions
-
Reimplemented from Vote.
setAnswers |
( |
|
$answerArray | ) |
|
Sets the answers public
- Parameters
-
$answerArray | array The answers. E.g. : 0 => array ( "answer_id" => "35b9dfed54c3740edcf96ece787994f3", "text" => "Monday") |
- Exceptions
-
Reimplemented from Vote.
setCo_Visibility |
( |
|
$co_visibility | ) |
|
Sets the way how to show the correct answers public
- Parameters
-
bool | $co_visibility | TRUE if the correctness of answers shall be revealed to the user right after voting |
Constructor
- Parameters
-
String | $oldTestID | The ID of an old test public |
Field Documentation
Whether the correctness shall be revealed to the user right after voting private
The documentation for this class was generated from the following file: