Stud.IP  4.2 Revision
EvaluationQuestion Class Reference
Inheritance diagram for EvaluationQuestion:
Inheritance graph
Collaboration diagram for EvaluationQuestion:
Collaboration graph

Public Member Functions

 __construct ($objectID="", $parentObject=NULL, $loadChildren=EVAL_LOAD_NO_CHILDREN)
 
 setType ($type)
 
 getType ()
 
 setMultiplechoice ($multiplechoice)
 
 isMultiplechoice ()
 
 addChild (&$child)
 
- Public Member Functions inherited from EvaluationObject
 __construct ($objectID="", $parentObject=NULL, $loadChildren=EVAL_LOAD_NO_CHILDREN)
 
 setTitle ($title)
 
 getTitle ()
 
 setText ($text)
 
 getText ()
 
 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 ()
 
 check ()
 
 getSpecialChildobjects (&$object, $instanceof, $reset=false)
 
 toString ()
 
- Public Member Functions inherited from StudipObject
 __construct ($objectID="")
 
 createNewID ()
 
 getObjectID ()
 
 setObjectID ($objectID)
 
 getAuthorID ()
 
 getAuthor ()
 
 getFullname ()
 
 setAuthorID ($authorID)
 
 getRangeID ()
 
 setRangeID ($rangeID)
 
- Public Member Functions inherited from AuthorObject
 __construct ()
 
 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)
 

Data Fields

 $type
 
 $isMultiplechoice
 
- Data Fields inherited from EvaluationObject
 $parentObject
 
 $parentObjectID
 
 $childObjects
 
 $numberChildren
 
 $title
 
 $text
 
 $position
 
 $db
 
 $childNum
 
 $loadChildren
 
- Data Fields inherited from StudipObject
 $objectID
 
 $authorID
 
 $rangeID
 
- Data Fields inherited from AuthorObject
 $errorArray
 
 $authorEmail
 
 $authorName
 
 $instanceof
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $objectID = "",
  $parentObject = NULL,
  $loadChildren = EVAL_LOAD_NO_CHILDREN 
)

Constructor public

Parameters
string$objectIDThe ID of an existing question
object$parentObjectThe parent object if exists
integer$loadChildrenSee const EVAL_LOAD_*_CHILDREN
Here is the call graph for this function:

Member Function Documentation

◆ addChild()

addChild ( $child)

Adds a child and sets the value to pos+1 public

Parameters
objectEvaluationObject &$child The child object
Exceptions
error

◆ getType()

getType ( )

Sets the type of a question public

Returns
string The type of the question.('likert','multiplechoice','pol')

◆ isMultiplechoice()

isMultiplechoice ( )

Checks for multiplechoice public

Returns
boolean YES if it is an multiplechoice question
Here is the caller graph for this function:

◆ setMultiplechoice()

setMultiplechoice (   $multiplechoice)

Sets multiplechoice value of a question public

Parameters
$tinyintThe multiplechoice Value.

◆ setType()

setType (   $type)

Sets the type of a question public

Parameters
string$typeThe type of the question. ('skala','normal','pol')

Field Documentation

◆ $isMultiplechoice

If set YES it is allowed to choose more than one answer private

◆ $type

string $type

Type of question (skala/normal) => see EVALQUESTION_TYPE_* private


The documentation for this class was generated from the following file: