|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Inheritance diagram for ilAssOrderingElementList:
Collaboration diagram for ilAssOrderingElementList:Static Public Member Functions | |
| static | isValidSolutionIdentifier ($identifier) |
| static | isValidRandomIdentifier ($identifier) |
| static | isValidPosition ($position) |
| static | isValidIndentation ($indentation) |
| static | getFallbackDefaultElement () |
| static | buildInstance (int $question_id, array $elements=[]) |
Data Fields | |
| $objectInstanceId | |
| const | SOLUTION_IDENTIFIER_BUILD_MAX_TRIES = 1000 |
| const | SOLUTION_IDENTIFIER_VALUE_INTERVAL = 1 |
| const | SOLUTION_IDENTIFIER_START_VALUE = 0 |
| const | RANDOM_IDENTIFIER_BUILD_MAX_TRIES = 1000 |
| const | RANDOM_IDENTIFIER_RANGE_LOWER_BOUND = 1 |
| const | RANDOM_IDENTIFIER_RANGE_UPPER_BOUND = 100000 |
| const | FALLBACK_DEFAULT_ELEMENT_RANDOM_IDENTIFIER = 0 |
| const | JS_ADDED_ELEMENTS_RANDOM_IDENTIFIER_START_VALUE = -1 |
| const | JS_ADDED_ELEMENTS_RANDOM_IDENTIFIER_VALUE_INTERVAL = -1 |
| const | IDENTIFIER_TYPE_SOLUTION = 'SolutionIds' |
| const | IDENTIFIER_TYPE_RANDOM = 'RandomIds' |
Static Public Attributes | |
| static | $objectInstanceCounter = 0 |
Protected Attributes | |
| $question_id | |
| $elements | |
Static Protected Attributes | |
| static | $identifierRegistry |
Definition at line 12 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::__construct | ( | int | $question_id = null, |
| array | $elements = [] |
||
| ) |
ilAssOrderingElementList constructor.
| ilAssOrderingElement[] | $elements |
Definition at line 54 of file class.ilAssOrderingElementList.php.
References $elements, $objectInstanceCounter, and $question_id.
| ilAssOrderingElementList::__clone | ( | ) |
clone list by additionally cloning the element objects
Definition at line 67 of file class.ilAssOrderingElementList.php.
References $elements, and $objectInstanceCounter.
| ilAssOrderingElementList::addElement | ( | ilAssOrderingElement | $element | ) |
| ilAssOrderingElement | $element |
Definition at line 247 of file class.ilAssOrderingElementList.php.
References hasValidIdentifiers(), and registerIdentifiers().
Referenced by setElements().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 505 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier(), buildSolutionIdentifier(), IDENTIFIER_TYPE_RANDOM, IDENTIFIER_TYPE_SOLUTION, and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 842 of file class.ilAssOrderingElementList.php.
References $elements, $question_id, and setQuestionId().
Referenced by assOrderingQuestion\fetchSolutionListFromFormSubmissionData(), ilAssNestedOrderingElementsInputGUI\getElementList(), ilAssOrderingImagesInputGUI\getElementList(), and ilAssOrderingTextsInputGUI\getElementList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilTestQuestionPoolException |
Definition at line 598 of file class.ilAssOrderingElementList.php.
References isIdentifierRegistered(), RANDOM_IDENTIFIER_RANGE_LOWER_BOUND, RANDOM_IDENTIFIER_RANGE_UPPER_BOUND, and throwCouldNotBuildRandomIdentifierException().
Referenced by buildIdentifier(), and distributeNewRandomIdentifiers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 581 of file class.ilAssOrderingElementList.php.
References getLastSolutionIdentifier(), and SOLUTION_IDENTIFIER_VALUE_INTERVAL.
Referenced by buildIdentifier().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::completeContentsFromElementList | ( | self | $otherList | ) |
| ilAssOrderingElementList | $otherList |
Definition at line 775 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::countElements | ( | ) |
Definition at line 105 of file class.ilAssOrderingElementList.php.
Referenced by hasElements(), hasSameElementSetByRandomIdentifiers(), and isLastElementPosition().
Here is the caller graph for this function:| ilAssOrderingElementList::current | ( | ) |
Definition at line 793 of file class.ilAssOrderingElementList.php.
References current().
Referenced by current().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::distributeNewRandomIdentifiers | ( | ) |
Definition at line 648 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistByPosition | ( | $position | ) |
| $position |
Definition at line 273 of file class.ilAssOrderingElementList.php.
References getElementByPosition().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistByRandomIdentifier | ( | $randomIdentifier | ) |
| $randomIdentifier |
Definition at line 296 of file class.ilAssOrderingElementList.php.
References getElementByRandomIdentifier().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistBySolutionIdentifier | ( | $solutionIdentifier | ) |
| $solutionIdentifier |
Definition at line 321 of file class.ilAssOrderingElementList.php.
References getElementBySolutionIdentifier().
Here is the call graph for this function:
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
Definition at line 391 of file class.ilAssOrderingElementList.php.
References buildIdentifier(), fetchIdentifier(), isValidIdentifier(), populateIdentifier(), and registerIdentifier().
Referenced by ensureValidIdentifiers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::ensureValidIdentifiers | ( | ilAssOrderingElement | $element | ) |
| ilAssOrderingElement | $element |
Definition at line 379 of file class.ilAssOrderingElementList.php.
References ensureValidIdentifier().
Referenced by assOrderingQuestion\setOrderingElementList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 456 of file class.ilAssOrderingElementList.php.
References ilAssOrderingElement\getRandomIdentifier(), ilAssOrderingElement\getSolutionIdentifier(), IDENTIFIER_TYPE_RANDOM, IDENTIFIER_TYPE_SOLUTION, and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier(), getIndexedElements(), hasValidIdentifiers(), isIdentifierRegistered(), and registerIdentifier().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::getClone | ( | ) |
Definition at line 83 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::getDifferenceElementList | ( | self | $otherElementList | ) |
| ilAssOrderingElementList | $otherElementList |
Definition at line 743 of file class.ilAssOrderingElementList.php.
References getDifferenceRandomIdentifierIndex(), getElementByRandomIdentifier(), and getQuestionId().
Here is the call graph for this function:
|
protected |
| ilAssOrderingElementList | $other |
Definition at line 762 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndex().
Referenced by getDifferenceElementList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::getElementByPosition | ( | $position | ) |
| $randomIdentifier |
Definition at line 260 of file class.ilAssOrderingElementList.php.
Referenced by assOrderingQuestion\calculateReachedPointsForSolution(), elementExistByPosition(), and moveElementByPositions().
Here is the caller graph for this function:| ilAssOrderingElementList::getElementByRandomIdentifier | ( | $randomIdentifier | ) |
| $randomIdentifier |
Definition at line 282 of file class.ilAssOrderingElementList.php.
Referenced by elementExistByRandomIdentifier(), and getDifferenceElementList().
Here is the caller graph for this function:| ilAssOrderingElementList::getElementBySolutionIdentifier | ( | $solutionIdentifier | ) |
| $randomIdentifier |
Definition at line 305 of file class.ilAssOrderingElementList.php.
Referenced by elementExistBySolutionIdentifier().
Here is the caller graph for this function:| ilAssOrderingElementList::getElements | ( | ) |
Definition at line 193 of file class.ilAssOrderingElementList.php.
References $elements.
Referenced by assOrderingQuestion\setOrderingElementList(), and ILIAS\TA\Questions\Ordering\assOrderingQuestionDatabaseRepository\updateOrderingList().
Here is the caller graph for this function:
|
static |
Definition at line 833 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingDefaultElementFallback\manipulateFormInputValues().
Here is the caller graph for this function:| ilAssOrderingElementList::getHash | ( | ) |
Definition at line 852 of file class.ilAssOrderingElementList.php.
|
protected |
Definition at line 233 of file class.ilAssOrderingElementList.php.
References $elements, and fetchIdentifier().
Referenced by getRandomIdentifierIndexedElements(), and getSolutionIdentifierIndexedElements().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 563 of file class.ilAssOrderingElementList.php.
References getRegisteredSolutionIdentifiers().
Referenced by buildSolutionIdentifier().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::getParityTrueElementList | ( | self | $otherList | ) |
Definition at line 669 of file class.ilAssOrderingElementList.php.
References getQuestionId(), and hasSameElementSetByRandomIdentifiers().
Here is the call graph for this function:| ilAssOrderingElementList::getQuestionId | ( | ) |
Definition at line 92 of file class.ilAssOrderingElementList.php.
References $question_id.
Referenced by getDifferenceElementList(), getParityTrueElementList(), getRegisteredIdentifiers(), isIdentifierRegistered(), moveElementByPositions(), registerIdentifier(), removeElement(), and ILIAS\TA\Questions\Ordering\assOrderingQuestionDatabaseRepository\updateOrderingList().
Here is the caller graph for this function:| ilAssOrderingElementList::getRandomIdentifierIndex | ( | ) |
Definition at line 209 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndexedElements().
Referenced by getDifferenceRandomIdentifierIndex().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::getRandomIdentifierIndexedElements | ( | ) |
Definition at line 201 of file class.ilAssOrderingElementList.php.
References getIndexedElements().
Referenced by getRandomIdentifierIndex(), ilAssNestedOrderingElementsInputGUI\setElementList(), ilAssOrderingImagesInputGUI\setElementList(), and ilAssOrderingTextsInputGUI\setElementList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $identifierType |
Definition at line 346 of file class.ilAssOrderingElementList.php.
References getQuestionId().
Referenced by getRegisteredRandomIdentifiers(), and getRegisteredSolutionIdentifiers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 337 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
Here is the call graph for this function:
|
protected |
Definition at line 329 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
Referenced by getLastSolutionIdentifier().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::getSolutionIdentifierIndex | ( | ) |
Definition at line 225 of file class.ilAssOrderingElementList.php.
References getSolutionIdentifierIndexedElements().
Here is the call graph for this function:| ilAssOrderingElementList::getSolutionIdentifierIndexedElements | ( | ) |
Definition at line 217 of file class.ilAssOrderingElementList.php.
References getIndexedElements().
Referenced by getSolutionIdentifierIndex().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::hasElements | ( | ) |
Definition at line 110 of file class.ilAssOrderingElementList.php.
References countElements().
Here is the call graph for this function:| ilAssOrderingElementList::hasSameElementSetByRandomIdentifiers | ( | self | $otherList | ) |
| ilAssOrderingElementList | $otherList |
Definition at line 658 of file class.ilAssOrderingElementList.php.
References countElements().
Referenced by getParityTrueElementList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilAssOrderingElement | $element |
Definition at line 359 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and isValidIdentifier().
Referenced by addElement().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::isFirstElementPosition | ( | $position | ) |
Definition at line 115 of file class.ilAssOrderingElementList.php.
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 435 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and getQuestionId().
Referenced by buildRandomIdentifier().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::isLastElementPosition | ( | $position | ) |
Definition at line 120 of file class.ilAssOrderingElementList.php.
References countElements().
Here is the call graph for this function:
|
protected |
| string | $identifierType | |
| $identifier |
| ilTestQuestionPoolException |
Definition at line 487 of file class.ilAssOrderingElementList.php.
References IDENTIFIER_TYPE_RANDOM, IDENTIFIER_TYPE_SOLUTION, isValidRandomIdentifier(), isValidSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier(), and hasValidIdentifiers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 640 of file class.ilAssOrderingElementList.php.
References isValidPosition().
Referenced by ilAssOrderingElement\isExportIdent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 635 of file class.ilAssOrderingElementList.php.
References isValidSolutionIdentifier().
Referenced by ilAssOrderingElement\isExportIdent(), and isValidIndentation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 627 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent(), and isValidIdentifier().
Here is the caller graph for this function:
|
static |
Definition at line 620 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent(), isValidIdentifier(), and isValidPosition().
Here is the caller graph for this function:| ilAssOrderingElementList::key | ( | ) |
Definition at line 809 of file class.ilAssOrderingElementList.php.
References key().
Referenced by key(), and valid().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::moveElementByPositions | ( | $currentPosition, | |
| $targetPosition | |||
| ) |
Definition at line 125 of file class.ilAssOrderingElementList.php.
References getElementByPosition(), getQuestionId(), and setElements().
Here is the call graph for this function:| ilAssOrderingElementList::next | ( | ) |
Definition at line 801 of file class.ilAssOrderingElementList.php.
References next().
Referenced by next().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType | |
| $identifier |
| ilTestQuestionPoolException |
Definition at line 472 of file class.ilAssOrderingElementList.php.
References IDENTIFIER_TYPE_RANDOM, IDENTIFIER_TYPE_SOLUTION, ilAssOrderingElement\setRandomIdentifier(), ilAssOrderingElement\setSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 416 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and getQuestionId().
Referenced by ensureValidIdentifier(), and registerIdentifiers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilAssOrderingElement | $element |
Definition at line 405 of file class.ilAssOrderingElementList.php.
References registerIdentifier().
Referenced by addElement().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::removeElement | ( | ilAssOrderingElement | $removeElement | ) |
Definition at line 153 of file class.ilAssOrderingElementList.php.
References getQuestionId().
Here is the call graph for this function:| ilAssOrderingElementList::reorderByRandomIdentifiers | ( | $randomIdentifiers | ) |
| $randomIdentifiers |
| ilTestQuestionPoolException |
Definition at line 702 of file class.ilAssOrderingElementList.php.
References setElements(), throwMissingReorderPositionException(), and throwUnknownRandomIdentifiersException().
Here is the call graph for this function:| ilAssOrderingElementList::resetElements | ( | ) |
resets elements
Definition at line 173 of file class.ilAssOrderingElementList.php.
Referenced by setElements().
Here is the caller graph for this function:| ilAssOrderingElementList::resetElementsIndentations | ( | ) |
resets the indentation to level 0 for all elements in list
Definition at line 732 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::rewind | ( | ) |
Definition at line 825 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::setElements | ( | $elements | ) |
| $elements |
Definition at line 181 of file class.ilAssOrderingElementList.php.
References $elements, addElement(), and resetElements().
Referenced by moveElementByPositions(), and reorderByRandomIdentifiers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::setQuestionId | ( | $question_id | ) |
| integer | $question_id |
Definition at line 100 of file class.ilAssOrderingElementList.php.
References $question_id.
Referenced by buildInstance().
Here is the caller graph for this function:
|
protected |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 530 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
Here is the caller graph for this function:
|
protected |
| string | $randomIdentifier |
| ilTestQuestionPoolException |
Definition at line 541 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
Here is the caller graph for this function:
|
protected |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 519 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), fetchIdentifier(), isValidIdentifier(), and populateIdentifier().
Here is the caller graph for this function:
|
protected |
| array | $randomIdentifiers |
| ilTestQuestionPoolException |
Definition at line 552 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
Here is the caller graph for this function:| ilAssOrderingElementList::valid | ( | ) |
Definition at line 817 of file class.ilAssOrderingElementList.php.
References key().
Here is the call graph for this function:| ilAssOrderingElementList::withElements | ( | array | $elements | ) |
| ilAssOrderingElement[]; |
Definition at line 870 of file class.ilAssOrderingElementList.php.
References $elements.
Referenced by assOrderingQuestion\setOrderingElementList(), and assOrderingQuestionTest\testOrderingElementListMutation().
Here is the caller graph for this function:| ilAssOrderingElementList::withQuestionId | ( | int | $question_id | ) |
Definition at line 877 of file class.ilAssOrderingElementList.php.
References $question_id.
Referenced by assOrderingQuestion\setOrderingElementList().
Here is the caller graph for this function:
|
protected |
Definition at line 48 of file class.ilAssOrderingElementList.php.
Referenced by __clone(), __construct(), buildInstance(), getElements(), getIndexedElements(), setElements(), and withElements().
|
staticprotected |
Definition at line 35 of file class.ilAssOrderingElementList.php.
|
static |
Definition at line 14 of file class.ilAssOrderingElementList.php.
Referenced by __clone(), and __construct().
| ilAssOrderingElementList::$objectInstanceId |
Definition at line 15 of file class.ilAssOrderingElementList.php.
|
protected |
Definition at line 43 of file class.ilAssOrderingElementList.php.
Referenced by __construct(), buildInstance(), getQuestionId(), setQuestionId(), and withQuestionId().
| const ilAssOrderingElementList::FALLBACK_DEFAULT_ELEMENT_RANDOM_IDENTIFIER = 0 |
Definition at line 25 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::IDENTIFIER_TYPE_RANDOM = 'RandomIds' |
Definition at line 30 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), fetchIdentifier(), isValidIdentifier(), and populateIdentifier().
| const ilAssOrderingElementList::IDENTIFIER_TYPE_SOLUTION = 'SolutionIds' |
Definition at line 29 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), fetchIdentifier(), isValidIdentifier(), and populateIdentifier().
| const ilAssOrderingElementList::JS_ADDED_ELEMENTS_RANDOM_IDENTIFIER_START_VALUE = -1 |
Definition at line 26 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::JS_ADDED_ELEMENTS_RANDOM_IDENTIFIER_VALUE_INTERVAL = -1 |
Definition at line 27 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::RANDOM_IDENTIFIER_BUILD_MAX_TRIES = 1000 |
Definition at line 21 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::RANDOM_IDENTIFIER_RANGE_LOWER_BOUND = 1 |
Definition at line 22 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
| const ilAssOrderingElementList::RANDOM_IDENTIFIER_RANGE_UPPER_BOUND = 100000 |
Definition at line 23 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
| const ilAssOrderingElementList::SOLUTION_IDENTIFIER_BUILD_MAX_TRIES = 1000 |
Definition at line 17 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::SOLUTION_IDENTIFIER_START_VALUE = 0 |
Definition at line 19 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::SOLUTION_IDENTIFIER_VALUE_INTERVAL = 1 |
Definition at line 18 of file class.ilAssOrderingElementList.php.
Referenced by buildSolutionIdentifier().