|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Formula Question Variable. More...
Inheritance diagram for assFormulaQuestionVariable:
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 () | |
| toNormalized (Transformations $transformations, array $context=[]) | |
| Convert the internal state of the implementing object into a language-neutral array structure. More... | |
| fromNormalized (array $normalized, Transformations $transformations) | |
| Restore the object from its normalized representation. More... | |
| toNormalized (Transformations $transformations, array $context=[]) | |
| Convert the internal state of the implementing object into a language-neutral array structure. More... | |
| fromNormalized (array $normalized, Transformations $transformations) | |
| Restore the object from its normalized representation. More... | |
Private Attributes | |
| $value = null | |
| float | $range_min |
| float | $range_max |
Formula Question Variable.
\
Definition at line 31 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 37 of file class.assFormulaQuestionVariable.php.
References setRangeMax(), and setRangeMin().
Here is the call graph for this function:| assFormulaQuestionVariable::fromNormalized | ( | array | $normalized, |
| Transformations | $transformations | ||
| ) |
Restore the object from its normalized representation.
| array<array-key,mixed> | $normalized |
Implements ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\FromNormalized.
Definition at line 224 of file class.assFormulaQuestionVariable.php.
References ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\denormalize(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\float(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\int(), and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\string().
Here is the call graph for this function:| assFormulaQuestionVariable::getBaseValue | ( | ) |
Definition at line 112 of file class.assFormulaQuestionVariable.php.
References $value, ilMath\_mul(), and getUnit().
Here is the call graph for this function:| assFormulaQuestionVariable::getIntprecision | ( | ) |
Definition at line 180 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog(), and getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getPrecision | ( | ) |
Definition at line 126 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog(), and getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRandomValue | ( | ) |
Definition at line 49 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 160 of file class.assFormulaQuestionVariable.php.
References $range_max.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMaxTxt | ( | ) |
Definition at line 190 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMin | ( | ) |
Definition at line 148 of file class.assFormulaQuestionVariable.php.
References $range_min.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMinTxt | ( | ) |
Definition at line 200 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog().
Here is the caller graph for this function:| assFormulaQuestionVariable::getUnit | ( | ) |
Definition at line 170 of file class.assFormulaQuestionVariable.php.
Referenced by assFormulaQuestion\buildVariablesForLog(), and getBaseValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getValue | ( | ) |
Definition at line 107 of file class.assFormulaQuestionVariable.php.
References $value.
| assFormulaQuestionVariable::getVariable | ( | ) |
Definition at line 136 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 93 of file class.assFormulaQuestionVariable.php.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::setIntprecision | ( | $intprecision | ) |
Definition at line 175 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setPrecision | ( | int | $precision | ) |
Definition at line 121 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setRandomValue | ( | ) |
Definition at line 88 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 153 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 185 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setRangeMin | ( | string | $range_min | ) |
Definition at line 141 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 195 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setUnit | ( | ?assFormulaQuestionUnit | $unit | ) |
Definition at line 165 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::setValue | ( | $value | ) |
Definition at line 102 of file class.assFormulaQuestionVariable.php.
References $value.
Referenced by setRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::setVariable | ( | $variable | ) |
Definition at line 131 of file class.assFormulaQuestionVariable.php.
| assFormulaQuestionVariable::toNormalized | ( | Transformations | $transformations, |
| array | $context = [] |
||
| ) |
Convert the internal state of the implementing object into a language-neutral array structure.
The resulting array must contain only null, scalar values (string, int, float, bool) and nested arrays following the same rules.
| array<string,mixed> | $context |
Implements ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\ToNormalized.
Definition at line 206 of file class.assFormulaQuestionVariable.php.
References $range_max, $range_min, and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\normalize().
Here is the call graph for this function:
|
private |
Definition at line 35 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMax(), setRangeMax(), and toNormalized().
|
private |
Definition at line 34 of file class.assFormulaQuestionVariable.php.
Referenced by getRangeMin(), setRangeMin(), and toNormalized().
|
private |
Definition at line 33 of file class.assFormulaQuestionVariable.php.
Referenced by getBaseValue(), getValue(), and setValue().