ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilQTIRenderChoice Class Reference
+ Collaboration diagram for ilQTIRenderChoice:

Public Member Functions

 __construct ()
 
 setShuffle ($a_shuffle)
 
 getShuffle ()
 
 setMinnumber ($a_minnumber)
 
 getMinnumber ()
 
 setMaxnumber ($a_maxnumber)
 
 getMaxnumber ()
 
 addResponseLabel ($a_response_label)
 
 addMaterial ($a_material)
 

Data Fields

 $shuffle
 
 $minnumber
 
 $maxnumber
 
 $response_labels
 
 $material
 

Detailed Description

Definition at line 35 of file class.ilQTIRenderChoice.php.

Constructor & Destructor Documentation

◆ __construct()

ilQTIRenderChoice::__construct ( )

Definition at line 43 of file class.ilQTIRenderChoice.php.

44 {
45 $this->shuffle = SHUFFLE_NO;
46 $this->minnumber = null;
47 $this->maxnumber = null;
48 $this->response_labels = array();
49 $this->material = array();
50 }
const SHUFFLE_NO

References SHUFFLE_NO.

Member Function Documentation

◆ addMaterial()

ilQTIRenderChoice::addMaterial (   $a_material)

Definition at line 96 of file class.ilQTIRenderChoice.php.

97 {
98 array_push($this->material, $a_material);
99 }

◆ addResponseLabel()

ilQTIRenderChoice::addResponseLabel (   $a_response_label)

Definition at line 91 of file class.ilQTIRenderChoice.php.

92 {
93 array_push($this->response_labels, $a_response_label);
94 }

◆ getMaxnumber()

ilQTIRenderChoice::getMaxnumber ( )

Definition at line 86 of file class.ilQTIRenderChoice.php.

References $maxnumber.

◆ getMinnumber()

ilQTIRenderChoice::getMinnumber ( )

Definition at line 76 of file class.ilQTIRenderChoice.php.

References $minnumber.

◆ getShuffle()

ilQTIRenderChoice::getShuffle ( )

Definition at line 66 of file class.ilQTIRenderChoice.php.

References $shuffle.

◆ setMaxnumber()

ilQTIRenderChoice::setMaxnumber (   $a_maxnumber)

Definition at line 81 of file class.ilQTIRenderChoice.php.

82 {
83 $this->maxnumber = $a_maxnumber;
84 }

◆ setMinnumber()

ilQTIRenderChoice::setMinnumber (   $a_minnumber)

Definition at line 71 of file class.ilQTIRenderChoice.php.

72 {
73 $this->minnumber = $a_minnumber;
74 }

◆ setShuffle()

ilQTIRenderChoice::setShuffle (   $a_shuffle)

Definition at line 52 of file class.ilQTIRenderChoice.php.

53 {
54 switch (strtolower($a_shuffle)) {
55 case "0":
56 case "no":
57 $this->shuffle = SHUFFLE_NO;
58 break;
59 case "1":
60 case "yes":
61 $this->shuffle = SHUFFLE_YES;
62 break;
63 }
64 }
const SHUFFLE_YES

References SHUFFLE_NO, and SHUFFLE_YES.

Field Documentation

◆ $material

ilQTIRenderChoice::$material

Definition at line 41 of file class.ilQTIRenderChoice.php.

◆ $maxnumber

ilQTIRenderChoice::$maxnumber

Definition at line 39 of file class.ilQTIRenderChoice.php.

Referenced by getMaxnumber().

◆ $minnumber

ilQTIRenderChoice::$minnumber

Definition at line 38 of file class.ilQTIRenderChoice.php.

Referenced by getMinnumber().

◆ $response_labels

ilQTIRenderChoice::$response_labels

Definition at line 40 of file class.ilQTIRenderChoice.php.

◆ $shuffle

ilQTIRenderChoice::$shuffle

Definition at line 37 of file class.ilQTIRenderChoice.php.

Referenced by getShuffle().


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