ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 97 of file class.ilQTIRenderChoice.php.

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

◆ addResponseLabel()

ilQTIRenderChoice::addResponseLabel (   $a_response_label)

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

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

◆ getMaxnumber()

ilQTIRenderChoice::getMaxnumber ( )

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

References $maxnumber.

◆ getMinnumber()

ilQTIRenderChoice::getMinnumber ( )

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

References $minnumber.

◆ getShuffle()

ilQTIRenderChoice::getShuffle ( )

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

References $shuffle.

◆ setMaxnumber()

ilQTIRenderChoice::setMaxnumber (   $a_maxnumber)

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

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

◆ setMinnumber()

ilQTIRenderChoice::setMinnumber (   $a_minnumber)

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

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

◆ setShuffle()

ilQTIRenderChoice::setShuffle (   $a_shuffle)

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

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