|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Formula Question Variable. More...
Collaboration diagram for assFormulaQuestionVariable:Public Member Functions | |
| __construct ($variable, $range_min, $range_max, $unit=null, $precision=0, $intprecision=1) | |
| assFormulaQuestionVariable constructor More... | |
| 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 @access public |
Definition at line 33 of file class.assFormulaQuestionVariable.php.
References $intprecision, $precision, $range_max, $range_min, $unit, $variable, setRangeMax(), setRangeMaxTxt(), setRangeMin(), and setRangeMinTxt().
Here is the call graph for this function:| assFormulaQuestionVariable::getBaseValue | ( | ) |
Definition at line 101 of file class.assFormulaQuestionVariable.php.
References $value, ilMath\_mul(), and getUnit().
Here is the call graph for this function:| assFormulaQuestionVariable::getIntprecision | ( | ) |
Definition at line 177 of file class.assFormulaQuestionVariable.php.
References $intprecision.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getPrecision | ( | ) |
Definition at line 116 of file class.assFormulaQuestionVariable.php.
References $precision.
Referenced by getRandomValue().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMax | ( | ) |
Definition at line 157 of file class.assFormulaQuestionVariable.php.
References $range_max.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMaxTxt | ( | ) |
Definition at line 187 of file class.assFormulaQuestionVariable.php.
References $range_max_txt.
| assFormulaQuestionVariable::getRangeMin | ( | ) |
Definition at line 143 of file class.assFormulaQuestionVariable.php.
References $range_min.
Referenced by getRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getRangeMinTxt | ( | ) |
Definition at line 197 of file class.assFormulaQuestionVariable.php.
References $range_min_txt.
| assFormulaQuestionVariable::getUnit | ( | ) |
Definition at line 167 of file class.assFormulaQuestionVariable.php.
References $unit.
Referenced by getBaseValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::getValue | ( | ) |
Definition at line 96 of file class.assFormulaQuestionVariable.php.
References $value.
| assFormulaQuestionVariable::getVariable | ( | ) |
Definition at line 128 of file class.assFormulaQuestionVariable.php.
References $variable.
| assFormulaQuestionVariable::setIntprecision | ( | $intprecision | ) |
Definition at line 172 of file class.assFormulaQuestionVariable.php.
References $intprecision.
| assFormulaQuestionVariable::setPrecision | ( | $precision | ) |
Definition at line 111 of file class.assFormulaQuestionVariable.php.
References $precision.
| assFormulaQuestionVariable::setRandomValue | ( | ) |
Definition at line 82 of file class.assFormulaQuestionVariable.php.
References getRandomValue(), and setValue().
Here is the call graph for this function:| assFormulaQuestionVariable::setRangeMax | ( | $range_max | ) |
Definition at line 148 of file class.assFormulaQuestionVariable.php.
References $range_max, and $result.
Referenced by __construct().
Here is the caller graph for this function:| assFormulaQuestionVariable::setRangeMaxTxt | ( | $range_max_txt | ) |
Definition at line 182 of file class.assFormulaQuestionVariable.php.
References $range_max_txt.
Referenced by __construct().
Here is the caller graph for this function:| assFormulaQuestionVariable::setRangeMin | ( | $range_min | ) |
Definition at line 133 of file class.assFormulaQuestionVariable.php.
References $range_min, and $result.
Referenced by __construct().
Here is the caller graph for this function:| assFormulaQuestionVariable::setRangeMinTxt | ( | $range_min_txt | ) |
Definition at line 192 of file class.assFormulaQuestionVariable.php.
References $range_min_txt.
Referenced by __construct().
Here is the caller graph for this function:| assFormulaQuestionVariable::setUnit | ( | $unit | ) |
Definition at line 162 of file class.assFormulaQuestionVariable.php.
References $unit.
| assFormulaQuestionVariable::setValue | ( | $value | ) |
Definition at line 91 of file class.assFormulaQuestionVariable.php.
References $value.
Referenced by setRandomValue().
Here is the caller graph for this function:| assFormulaQuestionVariable::setVariable | ( | $variable | ) |
Definition at line 123 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().