Public Member Functions |
| EvaluationQuestion ($objectID="", $parentObject=NULL, $loadChildren=EVAL_LOAD_NO_CHILDREN) |
| setType ($type) |
| getType () |
| setMultiplechoice ($multiplechoice) |
| isMultiplechoice () |
| addChild (&$child) |
| 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) |
& | getChild ($childID="") |
& | getNextChild () |
| getChildren () |
| getNumberChildren () |
| save () |
| delete () |
& | duplicate () |
| duplicate_init () |
| init ($objectID="") |
| load () |
| check () |
| getSpecialChildobjects (&$object, $instanceof, $reset=false) |
| toString () |
| 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
Adds a child and sets the value to pos+1 public
- Parameters
-
- Exceptions
-
Reimplemented from EvaluationObject.
Constructor public
- Parameters
-
string | $objectID | The ID of an existing question |
object | $parentObject | The parent object if exists |
integer | $loadChildren | See const EVAL_LOAD_*_CHILDREN |
Sets the type of a question public
- Returns
- string The type of the question.('likert','multiplechoice','pol')
Checks for multiplechoice public
- Returns
- boolean YES if it is an multiplechoice question
setMultiplechoice |
( |
|
$multiplechoice | ) |
|
Sets multiplechoice value of a question public
- Parameters
-
$tinyint | The multiplechoice Value. |
Sets the type of a question public
- Parameters
-
string | $type | The type of the question. ('skala','normal','pol') |
Field Documentation
If set YES it is allowed to choose more than one answer private
Type of question (skala/normal) => see EVALQUESTION_TYPE_* private
The documentation for this class was generated from the following file: