|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 27 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 33 of file class.assFormulaQuestionVariable.php.
References setRangeMax(), and setRangeMin().
Here is the call graph for this function:| assFormulaQuestionVariable::getBaseValue | ( | ) |
Definition at line 108 of file class.assFormulaQuestionVariable.php.
References $value, ilMath\_mul(), and getUnit().
Here is the call graph for this function:| assFormulaQuestionVariable::getIntprecision | ( | ) |
Definition at line 176 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog(), and getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getPrecision | ( | ) |
Definition at line 122 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog(), and getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRandomValue | ( | ) |
Definition at line 45 of file class.assFormulaQuestionVariable.php.
References $DIC, 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 156 of file class.assFormulaQuestionVariable.php.
References $range_max.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMaxTxt | ( | ) |
Definition at line 186 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMin | ( | ) |
Definition at line 144 of file class.assFormulaQuestionVariable.php.
References $range_min.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMinTxt | ( | ) |
Definition at line 196 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog().
Here is the caller graph for this function:| assFormulaQuestionVariable::getUnit | ( | ) |
Definition at line 166 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog(), and getBaseValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getValue | ( | ) |
Definition at line 103 of file class.assFormulaQuestionVariable.php.
References $value.
| assFormulaQuestionVariable::getVariable | ( | ) |
Definition at line 132 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\addVariable(), and assFormulaQuestion\buildVariablesForLog().
Here is the caller graph for this function:| assFormulaQuestionVariable::isIntPrecisionValid | ( | ?int | $int_precision, |
| float | $min_range, | ||
| float | $max_range | ||
| ) |
Definition at line 89 of file class.assFormulaQuestionVariable.php.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::setIntprecision | ( | $intprecision | ) |
Definition at line 171 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setPrecision | ( | int | $precision | ) |
Definition at line 117 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setRandomValue | ( | ) |
Definition at line 84 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 149 of file class.assFormulaQuestionVariable.php.
References $range_max.
Referenced by __construct().
Here is the caller graph for this function:| assFormulaQuestionVariable::setRangeMaxTxt | ( | string | $range_max_txt | ) |
Definition at line 181 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setRangeMin | ( | string | $range_min | ) |
Definition at line 137 of file class.assFormulaQuestionVariable.php.
References $range_min.
Referenced by __construct().
Here is the caller graph for this function:| assFormulaQuestionVariable::setRangeMinTxt | ( | string | $range_min_txt | ) |
Definition at line 191 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setUnit | ( | ?assFormulaQuestionUnit | $unit | ) |
Definition at line 161 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setValue | ( | $value | ) |
Definition at line 98 of file class.assFormulaQuestionVariable.php.
References $value.
Referenced by setRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::setVariable | ( | $variable | ) |
Definition at line 127 of file class.assFormulaQuestionVariable.php.
|
private |
Definition at line 31 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMax(), and setRangeMax().
|
private |
Definition at line 30 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMin(), and setRangeMin().
|
private |
Definition at line 29 of file class.assFormulaQuestionVariable.php.
Referenced by getBaseValue(), getValue(), and setValue().