Public Member Functions | Data Fields

ilQTIRenderChoice Class Reference

Public Member Functions

 ilQTIRenderChoice ()
 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.


Member Function Documentation

ilQTIRenderChoice::addMaterial ( a_material  ) 

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

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

ilQTIRenderChoice::addResponseLabel ( a_response_label  ) 

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

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

ilQTIRenderChoice::getMaxnumber (  ) 

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

        {
                return $this->maxnumber;
        }

ilQTIRenderChoice::getMinnumber (  ) 

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

        {
                return $this->minnumber;
        }

ilQTIRenderChoice::getShuffle (  ) 

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

        {
                return $this->shuffle;
        }

ilQTIRenderChoice::ilQTIRenderChoice (  ) 

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

        {
                $this->shuffle = SHUFFLE_NO;
                $this->response_labels = array();
                $this->material = array();
        }

ilQTIRenderChoice::setMaxnumber ( a_maxnumber  ) 

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

        {
                $this->maxnumber = $a_maxnumber;
        }

ilQTIRenderChoice::setMinnumber ( a_minnumber  ) 

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

        {
                $this->minnumber = $a_minnumber;
        }

ilQTIRenderChoice::setShuffle ( a_shuffle  ) 

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

        {
                switch (strtolower($a_shuffle))
                {
                        case "0":
                        case "no":
                                $this->shuffle = SHUFFLE_NO;
                                break;
                        case "1":
                        case "yes":
                                $this->shuffle = SHUFFLE_YES;
                                break;
                }
        }


Field Documentation

ilQTIRenderChoice::$material

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

ilQTIRenderChoice::$maxnumber

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

ilQTIRenderChoice::$minnumber

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

ilQTIRenderChoice::$response_labels

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

ilQTIRenderChoice::$shuffle

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


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