ILIAS
Release_4_4_x_branch Revision 61816
|
Formula Question Variable. More...
Public Member Functions | |
__construct ($variable, $range_min, $range_max, $unit=null, $precision=0, $intprecision=1) | |
assFormulaQuestionVariable constructor | |
getRandomValue () | |
setRandomValue () | |
setValue ($value) | |
getValue () | |
getBaseValue () | |
setPrecision ($precision) | |
getPrecision () | |
setVariable ($variable) | |
getVariable () | |
setRangeMin ($range_min) | |
getRangeMin () | |
setRangeMax ($range_max) | |
getRangeMax () | |
setUnit ($unit) | |
getUnit () | |
setIntprecision ($intprecision) | |
getIntprecision () | |
setRangeMaxTxt ($range_max_txt) | |
getRangeMaxTxt () | |
setRangeMinTxt ($range_min_txt) | |
getRangeMinTxt () |
Private Attributes | |
$variable | |
$range_min | |
$range_max | |
$unit | |
$value | |
$precision | |
$intprecision | |
$range_min_txt | |
$range_max_txt |
Formula Question Variable.
Definition at line 10 of file class.assFormulaQuestionVariable.php.
assFormulaQuestionVariable::__construct | ( | $variable, | |
$range_min, | |||
$range_max, | |||
$unit = null , |
|||
$precision = 0 , |
|||
$intprecision = 1 |
|||
) |
assFormulaQuestionVariable constructor
string | $variable | Variable name |
float | $range_min | Range minimum |
float | $range_max | Range maximum |
object | $unit | Unit |
integer | $precision | Number of decimal places of the value |
integer | $intprecision | Values with precision 0 must be divisible by this value public |
Definition at line 33 of file class.assFormulaQuestionVariable.php.
References $intprecision, $precision, $range_max, $range_min, $unit, $variable, setRangeMax(), setRangeMaxTxt(), setRangeMin(), and setRangeMinTxt().
assFormulaQuestionVariable::getBaseValue | ( | ) |
Definition at line 108 of file class.assFormulaQuestionVariable.php.
References $value, ilMath\_mul(), and getUnit().
assFormulaQuestionVariable::getIntprecision | ( | ) |
Definition at line 187 of file class.assFormulaQuestionVariable.php.
References $intprecision.
Referenced by getRandomValue().
assFormulaQuestionVariable::getPrecision | ( | ) |
Definition at line 126 of file class.assFormulaQuestionVariable.php.
References $precision.
Referenced by getRandomValue().
assFormulaQuestionVariable::getRandomValue | ( | ) |
Definition at line 46 of file class.assFormulaQuestionVariable.php.
References ilMath\_add(), ilMath\_div(), ilMath\_mul(), ilMath\_pow(), ilMath\_sub(), getIntprecision(), getPrecision(), getRangeMax(), and getRangeMin().
Referenced by setRandomValue().
assFormulaQuestionVariable::getRangeMax | ( | ) |
Definition at line 167 of file class.assFormulaQuestionVariable.php.
References $range_max.
Referenced by getRandomValue().
assFormulaQuestionVariable::getRangeMaxTxt | ( | ) |
Definition at line 197 of file class.assFormulaQuestionVariable.php.
References $range_max_txt.
assFormulaQuestionVariable::getRangeMin | ( | ) |
Definition at line 153 of file class.assFormulaQuestionVariable.php.
References $range_min.
Referenced by getRandomValue().
assFormulaQuestionVariable::getRangeMinTxt | ( | ) |
Definition at line 207 of file class.assFormulaQuestionVariable.php.
References $range_min_txt.
assFormulaQuestionVariable::getUnit | ( | ) |
Definition at line 177 of file class.assFormulaQuestionVariable.php.
References $unit.
Referenced by getBaseValue().
assFormulaQuestionVariable::getValue | ( | ) |
Definition at line 103 of file class.assFormulaQuestionVariable.php.
References $value.
assFormulaQuestionVariable::getVariable | ( | ) |
Definition at line 138 of file class.assFormulaQuestionVariable.php.
References $variable.
assFormulaQuestionVariable::setIntprecision | ( | $intprecision | ) |
Definition at line 182 of file class.assFormulaQuestionVariable.php.
References $intprecision.
assFormulaQuestionVariable::setPrecision | ( | $precision | ) |
Definition at line 121 of file class.assFormulaQuestionVariable.php.
References $precision.
assFormulaQuestionVariable::setRandomValue | ( | ) |
Definition at line 89 of file class.assFormulaQuestionVariable.php.
References getRandomValue(), and setValue().
assFormulaQuestionVariable::setRangeMax | ( | $range_max | ) |
Definition at line 158 of file class.assFormulaQuestionVariable.php.
References $range_max, and $result.
Referenced by __construct().
assFormulaQuestionVariable::setRangeMaxTxt | ( | $range_max_txt | ) |
Definition at line 192 of file class.assFormulaQuestionVariable.php.
References $range_max_txt.
Referenced by __construct().
assFormulaQuestionVariable::setRangeMin | ( | $range_min | ) |
Definition at line 143 of file class.assFormulaQuestionVariable.php.
References $range_min, and $result.
Referenced by __construct().
assFormulaQuestionVariable::setRangeMinTxt | ( | $range_min_txt | ) |
Definition at line 202 of file class.assFormulaQuestionVariable.php.
References $range_min_txt.
Referenced by __construct(), and assFormulaQuestionGUI\writePostData().
assFormulaQuestionVariable::setUnit | ( | $unit | ) |
Definition at line 172 of file class.assFormulaQuestionVariable.php.
References $unit.
assFormulaQuestionVariable::setValue | ( | $value | ) |
Definition at line 98 of file class.assFormulaQuestionVariable.php.
References $value.
Referenced by setRandomValue().
assFormulaQuestionVariable::setVariable | ( | $variable | ) |
Definition at line 133 of file class.assFormulaQuestionVariable.php.
References $variable.
|
private |
Definition at line 18 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getIntprecision(), and setIntprecision().
|
private |
Definition at line 17 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getPrecision(), and setPrecision().
|
private |
Definition at line 14 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getRangeMax(), and setRangeMax().
|
private |
Definition at line 20 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMaxTxt(), and setRangeMaxTxt().
|
private |
Definition at line 13 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getRangeMin(), and setRangeMin().
|
private |
Definition at line 19 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMinTxt(), and setRangeMinTxt().
|
private |
Definition at line 15 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getUnit(), and setUnit().
|
private |
Definition at line 16 of file class.assFormulaQuestionVariable.php.
Referenced by getBaseValue(), getValue(), and setValue().
|
private |
Definition at line 12 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getVariable(), and setVariable().