|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Formula Question Variable. More...
Collaboration diagram for assFormulaQuestionVariable:Public Member Functions | |
| __construct (private string $variable, private string $range_min_txt, private string $range_max_txt, private ?assFormulaQuestionUnit $unit=null, private int $precision=0, private int $intprecision=1) | |
| getRandomValue () | |
| setRandomValue () | |
| isIntPrecisionValid (?int $int_precision, float $min_range, float $max_range) | |
| setValue ($value) | |
| getValue () | |
| getBaseValue () | |
| setPrecision (int $precision) | |
| getPrecision () | |
| setVariable ($variable) | |
| getVariable () | |
| setRangeMin (string $range_min) | |
| getRangeMin () | |
| setRangeMax (string $range_max) | |
| getRangeMax () | |
| setUnit (?assFormulaQuestionUnit $unit) | |
| getUnit () | |
| setIntprecision ($intprecision) | |
| getIntprecision () | |
| setRangeMaxTxt (string $range_max_txt) | |
| getRangeMaxTxt () | |
| setRangeMinTxt (string $range_min_txt) | |
| getRangeMinTxt () | |
Private Attributes | |
| $value = null | |
| float | $range_min |
| float | $range_max |
Formula Question Variable.
Definition at line 26 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::__construct | ( | private string | $variable, |
| private string | $range_min_txt, | ||
| private string | $range_max_txt, | ||
| private ?assFormulaQuestionUnit | $unit = null, |
||
| private int | $precision = 0, |
||
| private int | $intprecision = 1 |
||
| ) |
Definition at line 32 of file class.assFormulaQuestionVariable.php.
References setRangeMax(), and setRangeMin().
Here is the call graph for this function:| assFormulaQuestionVariable::getBaseValue | ( | ) |
Definition at line 122 of file class.assFormulaQuestionVariable.php.
References $value, ilMath\_mul(), and getUnit().
Here is the call graph for this function:| assFormulaQuestionVariable::getIntprecision | ( | ) |
Definition at line 190 of file class.assFormulaQuestionVariable.php.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getPrecision | ( | ) |
Definition at line 136 of file class.assFormulaQuestionVariable.php.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRandomValue | ( | ) |
Definition at line 44 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().
Here is the call graph for this function:
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMax | ( | ) |
Definition at line 170 of file class.assFormulaQuestionVariable.php.
References $range_max.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMaxTxt | ( | ) |
Definition at line 200 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::getRangeMin | ( | ) |
Definition at line 158 of file class.assFormulaQuestionVariable.php.
References $range_min.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMinTxt | ( | ) |
Definition at line 210 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::getUnit | ( | ) |
Definition at line 180 of file class.assFormulaQuestionVariable.php.
Referenced by getBaseValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getValue | ( | ) |
| assFormulaQuestionVariable::getVariable | ( | ) |
Definition at line 146 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestionGUI\getSolutionOutput(), and assFormulaQuestionGUI\isSaveCommand().
Here is the caller graph for this function:| assFormulaQuestionVariable::isIntPrecisionValid | ( | ?int | $int_precision, |
| float | $min_range, | ||
| float | $max_range | ||
| ) |
Definition at line 94 of file class.assFormulaQuestionVariable.php.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::setIntprecision | ( | $intprecision | ) |
Definition at line 185 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setPrecision | ( | int | $precision | ) |
Definition at line 131 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setRandomValue | ( | ) |
Definition at line 89 of file class.assFormulaQuestionVariable.php.
References getRandomValue(), and setValue().
Here is the call graph for this function:| assFormulaQuestionVariable::setRangeMax | ( | string | $range_max | ) |
Definition at line 163 of file class.assFormulaQuestionVariable.php.
Referenced by __construct().
Here is the caller graph for this function:| assFormulaQuestionVariable::setRangeMaxTxt | ( | string | $range_max_txt | ) |
Definition at line 195 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setRangeMin | ( | string | $range_min | ) |
Definition at line 151 of file class.assFormulaQuestionVariable.php.
Referenced by __construct().
Here is the caller graph for this function:| assFormulaQuestionVariable::setRangeMinTxt | ( | string | $range_min_txt | ) |
Definition at line 205 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setUnit | ( | ?assFormulaQuestionUnit | $unit | ) |
Definition at line 175 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setValue | ( | $value | ) |
Definition at line 112 of file class.assFormulaQuestionVariable.php.
References $value.
Referenced by setRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::setVariable | ( | $variable | ) |
Definition at line 141 of file class.assFormulaQuestionVariable.php.
|
private |
Definition at line 30 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMax().
|
private |
Definition at line 29 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMin().
|
private |
Definition at line 28 of file class.assFormulaQuestionVariable.php.
Referenced by getBaseValue(), getValue(), and setValue().