ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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 28 of file class.ilAssOrderingElement.php.
ilAssOrderingElement::__construct | ( | int | $id = -1 | ) |
ilAssOrderingElement constructor.
Definition at line 82 of file class.ilAssOrderingElement.php.
References $id.
ilAssOrderingElement::__clone | ( | ) |
Cloning.
Definition at line 91 of file class.ilAssOrderingElement.php.
ilAssOrderingElement::__toString | ( | ) |
Definition at line 315 of file class.ilAssOrderingElement.php.
References getContent().
ilAssOrderingElement::getClone | ( | ) |
Definition at line 96 of file class.ilAssOrderingElement.php.
ilAssOrderingElement::getContent | ( | ) |
Definition at line 157 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(), and thumbnailFileExists().
ilAssOrderingElement::getExportIdent | ( | ) |
Definition at line 371 of file class.ilAssOrderingElement.php.
References getIndentation(), getPosition(), getRandomIdentifier(), and getSolutionIdentifier().
ilAssOrderingElement::getId | ( | ) |
Definition at line 101 of file class.ilAssOrderingElement.php.
References $id.
Referenced by ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject().
|
protected |
Definition at line 348 of file class.ilAssOrderingElement.php.
References getContent(), and getImagePathFs().
Referenced by imageFileExists().
|
protected |
Definition at line 353 of file class.ilAssOrderingElement.php.
References getContent(), and getImagePathWeb().
Referenced by getPresentationImageUrl().
ilAssOrderingElement::getImagePathFs | ( | ) |
Definition at line 250 of file class.ilAssOrderingElement.php.
References $image_path_fs.
Referenced by getImageFilePath(), and getThumbnailFilePath().
ilAssOrderingElement::getImagePathWeb | ( | ) |
Definition at line 234 of file class.ilAssOrderingElement.php.
References $imagePathWeb.
Referenced by getImageFileUrl(), and getThumbnailFileUrl().
ilAssOrderingElement::getImageThumbnailPrefix | ( | ) |
Definition at line 260 of file class.ilAssOrderingElement.php.
References $imageThumbnailPrefix.
Referenced by getThumbnailFilePath(), and getThumbnailFileUrl().
ilAssOrderingElement::getIndentation | ( | ) |
Definition at line 139 of file class.ilAssOrderingElement.php.
References $indentation.
Referenced by assOrderingQuestion\getElementArrayWithIdentationsForTextOutput(), getExportIdent(), getStorageValue2(), ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), and isSameElement().
ilAssOrderingElement::getPosition | ( | ) |
Definition at line 144 of file class.ilAssOrderingElement.php.
References $position.
Referenced by assOrderingQuestion\getElementArrayWithIdentationsForTextOutput(), getExportIdent(), getStorageValue1(), getStorageValue2(), ilAssOrderingFormValuesObjectsConverter\getStructValueFromObject(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), and isSameElement().
ilAssOrderingElement::getPresentationImageUrl | ( | ) |
Definition at line 358 of file class.ilAssOrderingElement.php.
References getImageFileUrl(), getThumbnailFileUrl(), imageFileExists(), and thumbnailFileExists().
Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().
ilAssOrderingElement::getRandomIdentifier | ( | ) |
Definition at line 111 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().
ilAssOrderingElement::getSolutionIdentifier | ( | ) |
Definition at line 124 of file class.ilAssOrderingElement.php.
References $solution_identifier.
Referenced by ilAssOrderingElementList\fetchIdentifier(), getExportIdent(), getStorageValue1(), ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\insertOrderingElement(), and isSameElement().
ilAssOrderingElement::getStorageValue1 | ( | int | $ordering_type | ) |
Definition at line 285 of file class.ilAssOrderingElement.php.
References getPosition(), getSolutionIdentifier(), assOrderingQuestion\OQ_NESTED_PICTURES, assOrderingQuestion\OQ_NESTED_TERMS, assOrderingQuestion\OQ_PICTURES, and assOrderingQuestion\OQ_TERMS.
ilAssOrderingElement::getStorageValue2 | ( | int | $ordering_type | ) |
Definition at line 300 of file class.ilAssOrderingElement.php.
References getIndentation(), getPosition(), getRandomIdentifier(), assOrderingQuestion\OQ_NESTED_PICTURES, assOrderingQuestion\OQ_NESTED_TERMS, assOrderingQuestion\OQ_PICTURES, and assOrderingQuestion\OQ_TERMS.
|
protected |
Definition at line 329 of file class.ilAssOrderingElement.php.
References getContent(), getImagePathFs(), and getImageThumbnailPrefix().
Referenced by thumbnailFileExists().
|
protected |
Definition at line 334 of file class.ilAssOrderingElement.php.
References getContent(), getImagePathWeb(), and getImageThumbnailPrefix().
Referenced by getPresentationImageUrl().
ilAssOrderingElement::getUploadImageFile | ( | ) |
Definition at line 171 of file class.ilAssOrderingElement.php.
References $uploadImageFile.
Referenced by isImageUploadAvailable().
ilAssOrderingElement::getUploadImageName | ( | ) |
Definition at line 190 of file class.ilAssOrderingElement.php.
References $uploadImageName.
|
protected |
Definition at line 339 of file class.ilAssOrderingElement.php.
References getContent(), and getImageFilePath().
Referenced by getPresentationImageUrl().
ilAssOrderingElement::isExportIdent | ( | string | $ident | ) |
Definition at line 383 of file class.ilAssOrderingElement.php.
References $parts, ilAssOrderingElementList\isValidIndentation(), ilAssOrderingElementList\isValidPosition(), ilAssOrderingElementList\isValidRandomIdentifier(), and ilAssOrderingElementList\isValidSolutionIdentifier().
Referenced by setExportIdent().
ilAssOrderingElement::isImageRemovalRequest | ( | ) |
Definition at line 218 of file class.ilAssOrderingElement.php.
References $imageRemovalRequest.
ilAssOrderingElement::isImageUploadAvailable | ( | ) |
Definition at line 209 of file class.ilAssOrderingElement.php.
References getUploadImageFile(), and null.
ilAssOrderingElement::isSameElement | ( | ilAssOrderingElement | $element | ) |
Definition at line 270 of file class.ilAssOrderingElement.php.
References getIndentation(), getPosition(), getRandomIdentifier(), and getSolutionIdentifier().
ilAssOrderingElement::setContent | ( | $content | ) |
ilAssOrderingElement::setExportIdent | ( | $ident | ) |
Definition at line 398 of file class.ilAssOrderingElement.php.
References isExportIdent(), setIndentation(), setPosition(), setRandomIdentifier(), and setSolutionIdentifier().
ilAssOrderingElement::setId | ( | int | $id | ) |
ilAssOrderingElement::setImagePathFs | ( | string | $image_path_fs | ) |
Definition at line 255 of file class.ilAssOrderingElement.php.
References $image_path_fs.
Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().
ilAssOrderingElement::setImagePathWeb | ( | $imagePathWeb | ) |
string | $imagePathWeb |
Definition at line 242 of file class.ilAssOrderingElement.php.
References $imagePathWeb.
Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().
ilAssOrderingElement::setImageRemovalRequest | ( | $imageRemovalRequest | ) |
bool | $imageRemovalRequest |
Definition at line 226 of file class.ilAssOrderingElement.php.
References $imageRemovalRequest.
ilAssOrderingElement::setImageThumbnailPrefix | ( | $imageThumbnailPrefix | ) |
Definition at line 265 of file class.ilAssOrderingElement.php.
References $imageThumbnailPrefix.
Referenced by assOrderingQuestionGUI\getAnswerStatisticOrderingElementHtml(), and ilAssOrderingFormValuesObjectsConverter\getImageContentValueFromObject().
ilAssOrderingElement::setIndentation | ( | int | $indentation | ) |
Definition at line 134 of file class.ilAssOrderingElement.php.
References $indentation.
Referenced by setExportIdent().
ilAssOrderingElement::setPosition | ( | int | $position | ) |
Definition at line 149 of file class.ilAssOrderingElement.php.
References $position.
Referenced by setExportIdent().
ilAssOrderingElement::setRandomIdentifier | ( | int | $random_identifier | ) |
Definition at line 116 of file class.ilAssOrderingElement.php.
References $random_identifier.
Referenced by ilAssOrderingElementList\populateIdentifier(), and setExportIdent().
ilAssOrderingElement::setSolutionIdentifier | ( | int | $solution_identifier | ) |
Definition at line 129 of file class.ilAssOrderingElement.php.
References $solution_identifier.
Referenced by ilAssOrderingElementList\populateIdentifier(), and setExportIdent().
ilAssOrderingElement::setUploadImageFile | ( | $uploadImageFile | ) |
string | $uploadImageFile |
Definition at line 179 of file class.ilAssOrderingElement.php.
References $uploadImageFile.
ilAssOrderingElement::setUploadImageName | ( | $uploadImageName | ) |
string | $uploadImageName |
Definition at line 198 of file class.ilAssOrderingElement.php.
References $uploadImageName.
|
protected |
Definition at line 320 of file class.ilAssOrderingElement.php.
References getContent(), and getThumbnailFilePath().
Referenced by getPresentationImageUrl().
ilAssOrderingElement::withContent | ( | string | $content | ) |
ilAssOrderingElement::withIndentation | ( | int | $indentation | ) |
Definition at line 431 of file class.ilAssOrderingElement.php.
References $indentation.
ilAssOrderingElement::withPosition | ( | int | $position | ) |
Definition at line 425 of file class.ilAssOrderingElement.php.
References $position.
ilAssOrderingElement::withRandomIdentifier | ( | int | $id | ) |
Definition at line 413 of file class.ilAssOrderingElement.php.
References $id.
Referenced by ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\buildOrderingElement(), and assOrderingQuestionTest\testOrderingElementMutation().
ilAssOrderingElement::withSolutionIdentifier | ( | int | $id | ) |
Definition at line 419 of file class.ilAssOrderingElement.php.
References $id.
Referenced by assOrderingQuestionTest\testOrderingElementMutation().
|
protected |
Definition at line 71 of file class.ilAssOrderingElement.php.
Referenced by getContent(), setContent(), and withContent().
int ilAssOrderingElement::$id |
Definition at line 39 of file class.ilAssOrderingElement.php.
Referenced by __construct(), getId(), setId(), withRandomIdentifier(), and withSolutionIdentifier().
|
protected |
Definition at line 76 of file class.ilAssOrderingElement.php.
Referenced by getImagePathFs(), and setImagePathFs().
|
protected |
Definition at line 75 of file class.ilAssOrderingElement.php.
Referenced by getImagePathWeb(), and setImagePathWeb().
|
protected |
Definition at line 74 of file class.ilAssOrderingElement.php.
Referenced by isImageRemovalRequest(), and setImageRemovalRequest().
|
protected |
Definition at line 77 of file class.ilAssOrderingElement.php.
Referenced by getImageThumbnailPrefix(), and setImageThumbnailPrefix().
|
protected |
the correct width of indentation for the element
Definition at line 65 of file class.ilAssOrderingElement.php.
Referenced by getIndentation(), setIndentation(), and withIndentation().
|
static |
Definition at line 32 of file class.ilAssOrderingElement.php.
ilAssOrderingElement::$objectInstanceId |
Definition at line 33 of file class.ilAssOrderingElement.php.
|
protected |
the correct position in the ordering sequence
Definition at line 70 of file class.ilAssOrderingElement.php.
Referenced by getPosition(), setPosition(), 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 48 of file class.ilAssOrderingElement.php.
Referenced by getRandomIdentifier(), and setRandomIdentifier().
|
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 60 of file class.ilAssOrderingElement.php.
Referenced by getSolutionIdentifier(), and setSolutionIdentifier().
|
protected |
Definition at line 73 of file class.ilAssOrderingElement.php.
Referenced by getUploadImageFile(), and setUploadImageFile().
|
protected |
Definition at line 72 of file class.ilAssOrderingElement.php.
Referenced by getUploadImageName(), and setUploadImageName().
const ilAssOrderingElement::EXPORT_IDENT_PROPERTY_SEPARATOR = '_' |
Definition at line 30 of file class.ilAssOrderingElement.php.