ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct ($variable, $range_min, $range_max, $unit=null, $precision=0, $intprecision=1) | |
assFormulaQuestionVariable constructor More... | |
getRandomValue () | |
setRandomValue () | |
isIntPrecisionValid ($int_precision, $min_range, $max_range) | |
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 | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Formula Question Variable
Definition at line 24 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 47 of file class.assFormulaQuestionVariable.php.
References $intprecision, $precision, $range_max, $range_min, $unit, $variable, setRangeMax(), setRangeMaxTxt(), setRangeMin(), and setRangeMinTxt().
assFormulaQuestionVariable::getBaseValue | ( | ) |
Definition at line 138 of file class.assFormulaQuestionVariable.php.
References $value, ilMath\_mul(), and getUnit().
assFormulaQuestionVariable::getIntprecision | ( | ) |
Definition at line 214 of file class.assFormulaQuestionVariable.php.
References $intprecision.
Referenced by getRandomValue().
assFormulaQuestionVariable::getPrecision | ( | ) |
Definition at line 153 of file class.assFormulaQuestionVariable.php.
References $precision.
Referenced by getRandomValue().
assFormulaQuestionVariable::getRandomValue | ( | ) |
Definition at line 60 of file class.assFormulaQuestionVariable.php.
References $DIC, $lng, ilMath\_add(), ilMath\_div(), ilMath\_mul(), ilMath\_pow(), ilMath\_sub(), getIntprecision(), getPrecision(), getRangeMax(), getRangeMin(), and isIntPrecisionValid().
Referenced by setRandomValue().
assFormulaQuestionVariable::getRangeMax | ( | ) |
Definition at line 194 of file class.assFormulaQuestionVariable.php.
References $range_max.
Referenced by getRandomValue().
assFormulaQuestionVariable::getRangeMaxTxt | ( | ) |
Definition at line 224 of file class.assFormulaQuestionVariable.php.
References $range_max_txt.
assFormulaQuestionVariable::getRangeMin | ( | ) |
Definition at line 180 of file class.assFormulaQuestionVariable.php.
References $range_min.
Referenced by getRandomValue().
assFormulaQuestionVariable::getRangeMinTxt | ( | ) |
Definition at line 234 of file class.assFormulaQuestionVariable.php.
References $range_min_txt.
assFormulaQuestionVariable::getUnit | ( | ) |
Definition at line 204 of file class.assFormulaQuestionVariable.php.
References $unit.
Referenced by getBaseValue().
assFormulaQuestionVariable::getValue | ( | ) |
assFormulaQuestionVariable::getVariable | ( | ) |
Definition at line 165 of file class.assFormulaQuestionVariable.php.
References $variable.
Referenced by assFormulaQuestionGUI\isSaveCommand().
assFormulaQuestionVariable::isIntPrecisionValid | ( | $int_precision, | |
$min_range, | |||
$max_range | |||
) |
Definition at line 113 of file class.assFormulaQuestionVariable.php.
Referenced by getRandomValue().
assFormulaQuestionVariable::setIntprecision | ( | $intprecision | ) |
Definition at line 209 of file class.assFormulaQuestionVariable.php.
References $intprecision.
assFormulaQuestionVariable::setPrecision | ( | $precision | ) |
assFormulaQuestionVariable::setRandomValue | ( | ) |
Definition at line 108 of file class.assFormulaQuestionVariable.php.
References getRandomValue(), and setValue().
assFormulaQuestionVariable::setRangeMax | ( | $range_max | ) |
Definition at line 185 of file class.assFormulaQuestionVariable.php.
References $range_max.
Referenced by __construct().
assFormulaQuestionVariable::setRangeMaxTxt | ( | $range_max_txt | ) |
Definition at line 219 of file class.assFormulaQuestionVariable.php.
References $range_max_txt.
Referenced by __construct().
assFormulaQuestionVariable::setRangeMin | ( | $range_min | ) |
Definition at line 170 of file class.assFormulaQuestionVariable.php.
References $range_min.
Referenced by __construct().
assFormulaQuestionVariable::setRangeMinTxt | ( | $range_min_txt | ) |
Definition at line 229 of file class.assFormulaQuestionVariable.php.
References $range_min_txt.
Referenced by __construct(), and assFormulaQuestionGUI\writePostData().
assFormulaQuestionVariable::setUnit | ( | $unit | ) |
assFormulaQuestionVariable::setValue | ( | $value | ) |
Definition at line 128 of file class.assFormulaQuestionVariable.php.
References $value.
Referenced by setRandomValue().
assFormulaQuestionVariable::setVariable | ( | $variable | ) |
|
private |
Definition at line 32 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getIntprecision(), and setIntprecision().
|
private |
Definition at line 31 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getPrecision(), and setPrecision().
|
private |
Definition at line 28 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getRangeMax(), and setRangeMax().
|
private |
Definition at line 34 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMaxTxt(), and setRangeMaxTxt().
|
private |
Definition at line 27 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getRangeMin(), and setRangeMin().
|
private |
Definition at line 33 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMinTxt(), and setRangeMinTxt().
|
private |
Definition at line 29 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getUnit(), and setUnit().
|
private |
Definition at line 30 of file class.assFormulaQuestionVariable.php.
Referenced by getBaseValue(), getValue(), and setValue().
|
private |
Definition at line 26 of file class.assFormulaQuestionVariable.php.
Referenced by __construct(), getVariable(), and setVariable().