|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Formula Question Unit. More...
Inheritance diagram for assFormulaQuestionUnit:
Collaboration diagram for assFormulaQuestionUnit:Public Member Functions | |
| initFormArray (array $data) | |
| setId (int $id) | |
| getId () | |
| setUnit (string $unit) | |
| getUnit () | |
| getSanitizedUnit () | |
| setSequence (int $sequence) | |
| getSequence () | |
| setFactor (float $factor) | |
| getFactor () | |
| setBaseUnit (int $baseunit) | |
| getBaseUnit () | |
| setBaseunitTitle (?string $baseunit_title) | |
| getBaseunitTitle () | |
| getSanitizedBaseunitTitle () | |
| setCategory (int $category) | |
| getCategory () | |
| getDisplayString () | |
| 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... | |
Static Public Member Functions | |
| static | lookupUnitFactor (int $a_unit_id) |
Private Member Functions | |
| sanitizeString (string $string) | |
Private Attributes | |
| int | $id = 0 |
| string | $unit = '' |
| float | $factor = 0.0 |
| int | $category = 0 |
| int | $sequence = 0 |
| int | $baseunit = 0 |
| string | $baseunit_title = null |
Formula Question Unit.
Definition at line 31 of file class.assFormulaQuestionUnit.php.
| assFormulaQuestionUnit::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 186 of file class.assFormulaQuestionUnit.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:| assFormulaQuestionUnit::getBaseUnit | ( | ) |
Definition at line 102 of file class.assFormulaQuestionUnit.php.
References $baseunit, and $id.
Referenced by ilUnitConfigurationRepository\saveUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::getBaseunitTitle | ( | ) |
Definition at line 116 of file class.assFormulaQuestionUnit.php.
References $baseunit_title.
Referenced by getSanitizedBaseunitTitle().
Here is the caller graph for this function:| assFormulaQuestionUnit::getCategory | ( | ) |
Definition at line 131 of file class.assFormulaQuestionUnit.php.
References $category.
Referenced by ilUnitConfigurationRepository\createNewUnit(), and ilUnitConfigurationRepository\saveUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::getDisplayString | ( | ) |
Definition at line 136 of file class.assFormulaQuestionUnit.php.
References $DIC, $unit, getSanitizedUnit(), getUnit(), and sanitizeString().
Here is the call graph for this function:| assFormulaQuestionUnit::getFactor | ( | ) |
Definition at line 92 of file class.assFormulaQuestionUnit.php.
References $factor.
Referenced by ilUnitConfigurationRepository\saveUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::getId | ( | ) |
Definition at line 57 of file class.assFormulaQuestionUnit.php.
References $id.
Referenced by ilUnitConfigurationRepository\addUnit(), assFormulaQuestionResult\getResultInfo(), and ilUnitConfigurationRepository\saveUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::getSanitizedBaseunitTitle | ( | ) |
Definition at line 121 of file class.assFormulaQuestionUnit.php.
References getBaseunitTitle(), and sanitizeString().
Here is the call graph for this function:| assFormulaQuestionUnit::getSanitizedUnit | ( | ) |
Definition at line 72 of file class.assFormulaQuestionUnit.php.
References getUnit().
Referenced by getDisplayString().
Here is the call graph for this function:
Here is the caller graph for this function:| assFormulaQuestionUnit::getSequence | ( | ) |
Definition at line 82 of file class.assFormulaQuestionUnit.php.
References $sequence.
Referenced by ilUnitConfigurationRepository\saveUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::getUnit | ( | ) |
Definition at line 67 of file class.assFormulaQuestionUnit.php.
References $unit.
Referenced by ilUnitConfigurationRepository\createNewUnit(), getDisplayString(), getSanitizedUnit(), and ilUnitConfigurationRepository\saveUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::initFormArray | ( | array | $data | ) |
Definition at line 41 of file class.assFormulaQuestionUnit.php.
References $data, and ILIAS\Repository\int().
Here is the call graph for this function:
|
static |
Definition at line 147 of file class.assFormulaQuestionUnit.php.
References $DIC, $ilDB, and $res.
Referenced by assFormulaQuestion\getBestSolution().
Here is the caller graph for this function:
|
private |
Definition at line 163 of file class.assFormulaQuestionUnit.php.
Referenced by getDisplayString(), and getSanitizedBaseunitTitle().
Here is the caller graph for this function:| assFormulaQuestionUnit::setBaseUnit | ( | int | $baseunit | ) |
Definition at line 97 of file class.assFormulaQuestionUnit.php.
References $baseunit.
Referenced by ilUnitConfigurationRepository\createNewUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::setBaseunitTitle | ( | ?string | $baseunit_title | ) |
Definition at line 111 of file class.assFormulaQuestionUnit.php.
References $baseunit_title.
| assFormulaQuestionUnit::setCategory | ( | int | $category | ) |
Definition at line 126 of file class.assFormulaQuestionUnit.php.
References $category.
| assFormulaQuestionUnit::setFactor | ( | float | $factor | ) |
Definition at line 87 of file class.assFormulaQuestionUnit.php.
References $factor.
Referenced by ilUnitConfigurationRepository\createNewUnit(), and ilUnitConfigurationRepository\saveUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::setId | ( | int | $id | ) |
Definition at line 52 of file class.assFormulaQuestionUnit.php.
References $id.
Referenced by ilUnitConfigurationRepository\createNewUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::setSequence | ( | int | $sequence | ) |
Definition at line 77 of file class.assFormulaQuestionUnit.php.
References $sequence.
Referenced by ilUnitConfigurationRepository\createNewUnit().
Here is the caller graph for this function:| assFormulaQuestionUnit::setUnit | ( | string | $unit | ) |
Definition at line 62 of file class.assFormulaQuestionUnit.php.
References $unit.
| assFormulaQuestionUnit::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 169 of file class.assFormulaQuestionUnit.php.
References $baseunit_title, $factor, $sequence, $unit, and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\normalize().
Here is the call graph for this function:
|
private |
Definition at line 38 of file class.assFormulaQuestionUnit.php.
Referenced by getBaseUnit(), and setBaseUnit().
|
private |
Definition at line 39 of file class.assFormulaQuestionUnit.php.
Referenced by getBaseunitTitle(), setBaseunitTitle(), and toNormalized().
|
private |
Definition at line 36 of file class.assFormulaQuestionUnit.php.
Referenced by getCategory(), and setCategory().
|
private |
Definition at line 35 of file class.assFormulaQuestionUnit.php.
Referenced by getFactor(), setFactor(), and toNormalized().
|
private |
Definition at line 33 of file class.assFormulaQuestionUnit.php.
Referenced by getBaseUnit(), getId(), and setId().
|
private |
Definition at line 37 of file class.assFormulaQuestionUnit.php.
Referenced by getSequence(), setSequence(), and toNormalized().
|
private |
Definition at line 34 of file class.assFormulaQuestionUnit.php.
Referenced by getDisplayString(), getUnit(), setUnit(), and toNormalized().