|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ilAssOrderingElement:
Collaboration diagram for ilAssOrderingElement:Public Member Functions | |
| __construct (int $id=-1) | |
| ilAssOrderingElement constructor. More... | |
| __clone () | |
| Cloning. More... | |
| getClone () | |
| getId () | |
| setId (int $id) | |
| getRandomIdentifier () | |
| setRandomIdentifier (int $random_identifier) | |
| getSolutionIdentifier () | |
| setSolutionIdentifier (int $solution_identifier) | |
| setIndentation (int $indentation) | |
| getIndentation () | |
| getPosition () | |
| setPosition (int $position) | |
| getContent () | |
| setContent ($content) | |
| getUploadImageFile () | |
| setUploadImageFile ($uploadImageFile) | |
| getUploadImageName () | |
| setUploadImageName ($uploadImageName) | |
| isImageUploadAvailable () | |
| isImageRemovalRequest () | |
| setImageRemovalRequest ($imageRemovalRequest) | |
| getImagePathWeb () | |
| setImagePathWeb ($imagePathWeb) | |
| getImagePathFs () | |
| setImagePathFs (string $image_path_fs) | |
| getImageThumbnailPrefix () | |
| setImageThumbnailPrefix ($imageThumbnailPrefix) | |
| isSameElement (ilAssOrderingElement $element) | |
| getStorageValue1 (int $ordering_type) | |
| getStorageValue2 (int $ordering_type) | |
| __toString () | |
| getPresentationImageUrl () | |
| getExportIdent () | |
| isExportIdent (string $ident) | |
| setExportIdent ($ident) | |
| withRandomIdentifier (int $id) | |
| withSolutionIdentifier (int $id) | |
| withPosition (int $position) | |
| withIndentation (int $indentation) | |
| withContent (string $content) | |
| 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... | |
Data Fields | |
| const | EXPORT_IDENT_PROPERTY_SEPARATOR = '_' |
| $objectInstanceId | |
| int | $id |
Static Public Attributes | |
| static | $objectInstanceCounter = 0 |
Protected Member Functions | |
| thumbnailFileExists () | |
| getThumbnailFilePath () | |
| getThumbnailFileUrl () | |
| imageFileExists () | |
| getImageFilePath () | |
| getImageFileUrl () | |
Protected Attributes | |
| int | $random_identifier = null |
| this identifier is generated randomly it is recycled for known elements More... | |
| int | $solution_identifier = null |
| this identifier is used to identify elements and is stored together with the set position and indentation More... | |
| int | $indentation = 0 |
| the correct width of indentation for the element More... | |
| int | $position = null |
| the correct position in the ordering sequence More... | |
| string | $content = null |
| string | $uploadImageName = null |
| string | $uploadImageFile = null |
| bool | $imageRemovalRequest = false |
| string | $imagePathWeb = null |
| string | $image_path_fs = null |
| $imageThumbnailPrefix = null | |
Definition at line 34 of file class.ilAssOrderingElement.php.
| ilAssOrderingElement::__construct | ( | int | $id = -1 | ) |
ilAssOrderingElement constructor.
Definition at line 88 of file class.ilAssOrderingElement.php.
References $id, and $objectInstanceCounter.
| ilAssOrderingElement::__clone | ( | ) |
Cloning.
Definition at line 97 of file class.ilAssOrderingElement.php.
References $objectInstanceCounter.
| ilAssOrderingElement::__toString | ( | ) |
Definition at line 321 of file class.ilAssOrderingElement.php.
References getContent().
Here is the call graph for this function:| ilAssOrderingElement::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 466 of file class.ilAssOrderingElement.php.
References ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\denormalize(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\int(), and withRandomIdentifier().
Here is the call graph for this function:| ilAssOrderingElement::getClone | ( | ) |
Definition at line 102 of file class.ilAssOrderingElement.php.
| ilAssOrderingElement::getContent | ( | ) |
Definition at line 163 of file class.ilAssOrderingElement.php.
References $content.
Referenced by __toString(), assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), assOrderingQuestion\getElementArrayWithIdentationsForTextOutput(), ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject(), getImageFilePath(), getImageFileUrl(), ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject(), ilAssOrderingFormValuesObjectsConverter\getTextContentValueFromObject(), getThumbnailFilePath(), getThumbnailFileUrl(), imageFileExists(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), assOrderingQuestion\isImageReplaced(), assOrderingQuestionTest\testOrderingElementMutation(), and thumbnailFileExists().
Here is the caller graph for this function:| ilAssOrderingElement::getExportIdent | ( | ) |
Definition at line 377 of file class.ilAssOrderingElement.php.
References getIndentation(), getPosition(), getRandomIdentifier(), and getSolutionIdentifier().
Here is the call graph for this function:| ilAssOrderingElement::getId | ( | ) |
Definition at line 107 of file class.ilAssOrderingElement.php.
References $id.
Referenced by ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject().
Here is the caller graph for this function:
|
protected |
Definition at line 354 of file class.ilAssOrderingElement.php.
References getContent(), and getImagePathFs().
Referenced by imageFileExists().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 359 of file class.ilAssOrderingElement.php.
References getContent(), and getImagePathWeb().
Referenced by getPresentationImageUrl().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElement::getImagePathFs | ( | ) |
Definition at line 256 of file class.ilAssOrderingElement.php.
References $image_path_fs.
Referenced by getImageFilePath(), and getThumbnailFilePath().
Here is the caller graph for this function:| ilAssOrderingElement::getImagePathWeb | ( | ) |
Definition at line 240 of file class.ilAssOrderingElement.php.
References $imagePathWeb.
Referenced by getImageFileUrl(), and getThumbnailFileUrl().
Here is the caller graph for this function:| ilAssOrderingElement::getImageThumbnailPrefix | ( | ) |
Definition at line 266 of file class.ilAssOrderingElement.php.
References $imageThumbnailPrefix.
Referenced by getThumbnailFilePath(), and getThumbnailFileUrl().
Here is the caller graph for this function:| ilAssOrderingElement::getIndentation | ( | ) |
Definition at line 145 of file class.ilAssOrderingElement.php.
References $indentation.
Referenced by assOrderingQuestion\getElementArrayWithIdentationsForTextOutput(), getExportIdent(), getStorageValue2(), ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), isSameElement(), and assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:| ilAssOrderingElement::getPosition | ( | ) |
Definition at line 150 of file class.ilAssOrderingElement.php.
References $position.
Referenced by getExportIdent(), getStorageValue1(), getStorageValue2(), ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), isSameElement(), and assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:| ilAssOrderingElement::getPresentationImageUrl | ( | ) |
Definition at line 364 of file class.ilAssOrderingElement.php.
References getImageFileUrl(), getThumbnailFileUrl(), imageFileExists(), and thumbnailFileExists().
Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElement::getRandomIdentifier | ( | ) |
Definition at line 117 of file class.ilAssOrderingElement.php.
References $random_identifier.
Referenced by ilAssOrderingElementList\fetchIdentifier(), getExportIdent(), getStorageValue2(), ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), isSameElement(), and assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:| ilAssOrderingElement::getSolutionIdentifier | ( | ) |
Definition at line 130 of file class.ilAssOrderingElement.php.
References $solution_identifier.
Referenced by ilAssOrderingElementList\fetchIdentifier(), getExportIdent(), getStorageValue1(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), isSameElement(), and assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:| ilAssOrderingElement::getStorageValue1 | ( | int | $ordering_type | ) |
Definition at line 291 of file class.ilAssOrderingElement.php.
References getPosition(), getSolutionIdentifier(), assOrderingQuestion\OQ_NESTED_PICTURES, assOrderingQuestion\OQ_NESTED_TERMS, assOrderingQuestion\OQ_PICTURES, and assOrderingQuestion\OQ_TERMS.
Here is the call graph for this function:| ilAssOrderingElement::getStorageValue2 | ( | int | $ordering_type | ) |
Definition at line 306 of file class.ilAssOrderingElement.php.
References getIndentation(), getPosition(), getRandomIdentifier(), assOrderingQuestion\OQ_NESTED_PICTURES, assOrderingQuestion\OQ_NESTED_TERMS, assOrderingQuestion\OQ_PICTURES, and assOrderingQuestion\OQ_TERMS.
Here is the call graph for this function:
|
protected |
Definition at line 335 of file class.ilAssOrderingElement.php.
References getContent(), getImagePathFs(), and getImageThumbnailPrefix().
Referenced by thumbnailFileExists().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 340 of file class.ilAssOrderingElement.php.
References getContent(), getImagePathWeb(), and getImageThumbnailPrefix().
Referenced by getPresentationImageUrl().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElement::getUploadImageFile | ( | ) |
Definition at line 177 of file class.ilAssOrderingElement.php.
References $uploadImageFile.
Referenced by isImageUploadAvailable().
Here is the caller graph for this function:| ilAssOrderingElement::getUploadImageName | ( | ) |
Definition at line 196 of file class.ilAssOrderingElement.php.
References $uploadImageName.
|
protected |
Definition at line 345 of file class.ilAssOrderingElement.php.
References getContent(), and getImageFilePath().
Referenced by getPresentationImageUrl().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElement::isExportIdent | ( | string | $ident | ) |
Definition at line 389 of file class.ilAssOrderingElement.php.
References ilAssOrderingElementList\isValidIndentation(), ilAssOrderingElementList\isValidPosition(), ilAssOrderingElementList\isValidRandomIdentifier(), and ilAssOrderingElementList\isValidSolutionIdentifier().
Referenced by setExportIdent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElement::isImageRemovalRequest | ( | ) |
Definition at line 224 of file class.ilAssOrderingElement.php.
References $imageRemovalRequest.
| ilAssOrderingElement::isImageUploadAvailable | ( | ) |
Definition at line 215 of file class.ilAssOrderingElement.php.
References getUploadImageFile().
Here is the call graph for this function:| ilAssOrderingElement::isSameElement | ( | ilAssOrderingElement | $element | ) |
Definition at line 276 of file class.ilAssOrderingElement.php.
References getIndentation(), getPosition(), getRandomIdentifier(), and getSolutionIdentifier().
Here is the call graph for this function:| ilAssOrderingElement::setContent | ( | $content | ) |
| ilAssOrderingElement::setExportIdent | ( | $ident | ) |
Definition at line 404 of file class.ilAssOrderingElement.php.
References isExportIdent(), setIndentation(), setPosition(), setRandomIdentifier(), and setSolutionIdentifier().
Here is the call graph for this function:| ilAssOrderingElement::setId | ( | int | $id | ) |
Definition at line 112 of file class.ilAssOrderingElement.php.
References $id.
| ilAssOrderingElement::setImagePathFs | ( | string | $image_path_fs | ) |
Definition at line 261 of file class.ilAssOrderingElement.php.
References $image_path_fs.
Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().
Here is the caller graph for this function:| ilAssOrderingElement::setImagePathWeb | ( | $imagePathWeb | ) |
| string | $imagePathWeb |
Definition at line 248 of file class.ilAssOrderingElement.php.
References $imagePathWeb.
Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().
Here is the caller graph for this function:| ilAssOrderingElement::setImageRemovalRequest | ( | $imageRemovalRequest | ) |
| bool | $imageRemovalRequest |
Definition at line 232 of file class.ilAssOrderingElement.php.
References $imageRemovalRequest.
| ilAssOrderingElement::setImageThumbnailPrefix | ( | $imageThumbnailPrefix | ) |
Definition at line 271 of file class.ilAssOrderingElement.php.
References $imageThumbnailPrefix.
Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().
Here is the caller graph for this function:| ilAssOrderingElement::setIndentation | ( | int | $indentation | ) |
Definition at line 140 of file class.ilAssOrderingElement.php.
References $indentation.
Referenced by setExportIdent().
Here is the caller graph for this function:| ilAssOrderingElement::setPosition | ( | int | $position | ) |
Definition at line 155 of file class.ilAssOrderingElement.php.
References $position.
Referenced by setExportIdent().
Here is the caller graph for this function:| ilAssOrderingElement::setRandomIdentifier | ( | int | $random_identifier | ) |
Definition at line 122 of file class.ilAssOrderingElement.php.
References $random_identifier.
Referenced by ilAssOrderingElementList\populateIdentifier(), and setExportIdent().
Here is the caller graph for this function:| ilAssOrderingElement::setSolutionIdentifier | ( | int | $solution_identifier | ) |
Definition at line 135 of file class.ilAssOrderingElement.php.
References $solution_identifier.
Referenced by ilAssOrderingElementList\populateIdentifier(), and setExportIdent().
Here is the caller graph for this function:| ilAssOrderingElement::setUploadImageFile | ( | $uploadImageFile | ) |
| string | $uploadImageFile |
Definition at line 185 of file class.ilAssOrderingElement.php.
References $uploadImageFile.
| ilAssOrderingElement::setUploadImageName | ( | $uploadImageName | ) |
| string | $uploadImageName |
Definition at line 204 of file class.ilAssOrderingElement.php.
References $uploadImageName.
|
protected |
Definition at line 326 of file class.ilAssOrderingElement.php.
References getContent(), and getThumbnailFilePath().
Referenced by getPresentationImageUrl().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElement::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 451 of file class.ilAssOrderingElement.php.
References $indentation, $position, $random_identifier, $solution_identifier, and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\normalize().
Here is the call graph for this function:| ilAssOrderingElement::withContent | ( | string | $content | ) |
Definition at line 443 of file class.ilAssOrderingElement.php.
References $content.
Referenced by assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:| ilAssOrderingElement::withIndentation | ( | int | $indentation | ) |
Definition at line 437 of file class.ilAssOrderingElement.php.
References $indentation.
Referenced by assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:| ilAssOrderingElement::withPosition | ( | int | $position | ) |
Definition at line 431 of file class.ilAssOrderingElement.php.
References $position.
Referenced by assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:| ilAssOrderingElement::withRandomIdentifier | ( | int | $id | ) |
Definition at line 419 of file class.ilAssOrderingElement.php.
References $id.
Referenced by fromNormalized(), and assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:| ilAssOrderingElement::withSolutionIdentifier | ( | int | $id | ) |
Definition at line 425 of file class.ilAssOrderingElement.php.
References $id.
Referenced by assOrderingQuestionTest\testOrderingElementMutation().
Here is the caller graph for this function:
|
protected |
Definition at line 77 of file class.ilAssOrderingElement.php.
Referenced by getContent(), setContent(), and withContent().
| int ilAssOrderingElement::$id |
Definition at line 45 of file class.ilAssOrderingElement.php.
Referenced by __construct(), getId(), setId(), withRandomIdentifier(), and withSolutionIdentifier().
|
protected |
Definition at line 82 of file class.ilAssOrderingElement.php.
Referenced by getImagePathFs(), and setImagePathFs().
|
protected |
Definition at line 81 of file class.ilAssOrderingElement.php.
Referenced by getImagePathWeb(), and setImagePathWeb().
|
protected |
Definition at line 80 of file class.ilAssOrderingElement.php.
Referenced by isImageRemovalRequest(), and setImageRemovalRequest().
|
protected |
Definition at line 83 of file class.ilAssOrderingElement.php.
Referenced by getImageThumbnailPrefix(), and setImageThumbnailPrefix().
|
protected |
the correct width of indentation for the element
Definition at line 71 of file class.ilAssOrderingElement.php.
Referenced by getIndentation(), setIndentation(), toNormalized(), and withIndentation().
|
static |
Definition at line 38 of file class.ilAssOrderingElement.php.
Referenced by __clone(), and __construct().
| ilAssOrderingElement::$objectInstanceId |
Definition at line 39 of file class.ilAssOrderingElement.php.
|
protected |
the correct position in the ordering sequence
Definition at line 76 of file class.ilAssOrderingElement.php.
Referenced by getPosition(), setPosition(), toNormalized(), and withPosition().
|
protected |
this identifier is generated randomly it is recycled for known elements
the main purpose is to have a key that does not make the solution derivable and is therefore useable in the examines working form
Definition at line 54 of file class.ilAssOrderingElement.php.
Referenced by getRandomIdentifier(), setRandomIdentifier(), and toNormalized().
|
protected |
this identifier is used to identify elements and is stored together with the set position and indentation
this happens for the examine's submit data as well, an order index is build and the elements are assigned using this identifier
it is an integer sequence starting at 0 that increments with every added element while obsolete numbers are not recycled
Definition at line 66 of file class.ilAssOrderingElement.php.
Referenced by getSolutionIdentifier(), setSolutionIdentifier(), and toNormalized().
|
protected |
Definition at line 79 of file class.ilAssOrderingElement.php.
Referenced by getUploadImageFile(), and setUploadImageFile().
|
protected |
Definition at line 78 of file class.ilAssOrderingElement.php.
Referenced by getUploadImageName(), and setUploadImageName().
| const ilAssOrderingElement::EXPORT_IDENT_PROPERTY_SEPARATOR = '_' |
Definition at line 36 of file class.ilAssOrderingElement.php.