ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilQTIRenderChoice Class Reference
+ Collaboration diagram for ilQTIRenderChoice:

Public Member Functions

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

Data Fields

const SHUFFLE_NO = "0"
 
const SHUFFLE_YES = "1"
 
string $shuffle = self::SHUFFLE_NO
 
string $minnumber = null
 
string $maxnumber = null
 
array $response_labels = []
 
array $material = []
 

Detailed Description

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

Member Function Documentation

◆ addMaterial()

ilQTIRenderChoice::addMaterial ( ilQTIMaterial  $a_material)

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

87  : void
88  {
89  $this->material[] = $a_material;
90  }

◆ addResponseLabel()

ilQTIRenderChoice::addResponseLabel ( ilQTIResponseLabel  $a_response_label)

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

82  : void
83  {
84  $this->response_labels[] = $a_response_label;
85  }

◆ getMaxnumber()

ilQTIRenderChoice::getMaxnumber ( )

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

References $maxnumber.

77  : ?string
78  {
79  return $this->maxnumber;
80  }

◆ getMinnumber()

ilQTIRenderChoice::getMinnumber ( )

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

References $minnumber.

67  : ?string
68  {
69  return $this->minnumber;
70  }

◆ getShuffle()

ilQTIRenderChoice::getShuffle ( )

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

References $shuffle.

57  : string
58  {
59  return $this->shuffle;
60  }

◆ setMaxnumber()

ilQTIRenderChoice::setMaxnumber ( string  $a_maxnumber)

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

72  : void
73  {
74  $this->maxnumber = $a_maxnumber;
75  }

◆ setMinnumber()

ilQTIRenderChoice::setMinnumber ( string  $a_minnumber)

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

62  : void
63  {
64  $this->minnumber = $a_minnumber;
65  }

◆ setShuffle()

ilQTIRenderChoice::setShuffle ( string  $a_shuffle)

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

43  : void
44  {
45  switch (strtolower($a_shuffle)) {
46  case "0":
47  case "no":
48  $this->shuffle = self::SHUFFLE_NO;
49  break;
50  case "1":
51  case "yes":
52  $this->shuffle = self::SHUFFLE_YES;
53  break;
54  }
55  }

Field Documentation

◆ $material

array ilQTIRenderChoice::$material = []

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

◆ $maxnumber

string ilQTIRenderChoice::$maxnumber = null

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

Referenced by getMaxnumber().

◆ $minnumber

string ilQTIRenderChoice::$minnumber = null

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

Referenced by getMinnumber().

◆ $response_labels

array ilQTIRenderChoice::$response_labels = []

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

◆ $shuffle

string ilQTIRenderChoice::$shuffle = self::SHUFFLE_NO

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

Referenced by getShuffle().

◆ SHUFFLE_NO

const ilQTIRenderChoice::SHUFFLE_NO = "0"

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

◆ SHUFFLE_YES

const ilQTIRenderChoice::SHUFFLE_YES = "1"

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


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