|
ILIAS
release_8 Revision v8.24
|
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 = array() | |
Static Protected Attributes | |
| static | $identifierRegistry |
Definition at line 25 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::__construct | ( | int | $question_id = null, |
| array | $elements = [] |
||
| ) |
ilAssOrderingElementList constructor.
| ilAssOrderingElement[] | $elements |
Definition at line 67 of file class.ilAssOrderingElementList.php.
References $elements, $objectInstanceCounter, and $question_id.
| ilAssOrderingElementList::__clone | ( | ) |
clone list by additionally cloning the element objects
Definition at line 80 of file class.ilAssOrderingElementList.php.
References $elements, ILIAS\LTI\ToolProvider\$key, and $objectInstanceCounter.
| ilAssOrderingElementList::addElement | ( | ilAssOrderingElement | $element | ) |
| ilAssOrderingElement | $element |
Definition at line 260 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 |
Definition at line 509 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 848 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 605 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 588 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 781 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::countElements | ( | ) |
Definition at line 118 of file class.ilAssOrderingElementList.php.
Referenced by hasElements(), hasSameElementSetByRandomIdentifiers(), and isLastElementPosition().
Here is the caller graph for this function:| ilAssOrderingElementList::current | ( | ) |
Definition at line 799 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 655 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistByPosition | ( | $position | ) |
| $position |
Definition at line 286 of file class.ilAssOrderingElementList.php.
References getElementByPosition().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistByRandomIdentifier | ( | $randomIdentifier | ) |
| $randomIdentifier |
Definition at line 310 of file class.ilAssOrderingElementList.php.
References getElementByRandomIdentifier().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistBySolutionIdentifier | ( | $solutionIdentifier | ) |
| $solutionIdentifier |
Definition at line 335 of file class.ilAssOrderingElementList.php.
References getElementBySolutionIdentifier().
Here is the call graph for this function:
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
Definition at line 405 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 393 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 |
| ilTestQuestionPoolException |
Definition at line 467 of file class.ilAssOrderingElementList.php.
References ilAssOrderingElement\getRandomIdentifier(), ilAssOrderingElement\getSolutionIdentifier(), 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 96 of file class.ilAssOrderingElementList.php.
Referenced by assOrderingQuestion\getShuffledOrderingElementList().
Here is the caller graph for this function:| ilAssOrderingElementList::getDifferenceElementList | ( | self | $otherElementList | ) |
| ilAssOrderingElementList | $otherElementList |
Definition at line 749 of file class.ilAssOrderingElementList.php.
References getDifferenceRandomIdentifierIndex(), getElementByRandomIdentifier(), and getQuestionId().
Here is the call graph for this function:
|
protected |
| ilAssOrderingElementList | $other |
Definition at line 768 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 273 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 295 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 319 of file class.ilAssOrderingElementList.php.
Referenced by elementExistBySolutionIdentifier().
Here is the caller graph for this function:| ilAssOrderingElementList::getElements | ( | ) |
Definition at line 206 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 839 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingDefaultElementFallback\manipulateFormInputValues().
Here is the caller graph for this function:| ilAssOrderingElementList::getHash | ( | ) |
Definition at line 858 of file class.ilAssOrderingElementList.php.
|
protected |
Definition at line 246 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 570 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 676 of file class.ilAssOrderingElementList.php.
References getQuestionId(), and hasSameElementSetByRandomIdentifiers().
Here is the call graph for this function:| ilAssOrderingElementList::getQuestionId | ( | ) |
Definition at line 105 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 222 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 214 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 360 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 351 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
Here is the call graph for this function:
|
protected |
Definition at line 343 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 238 of file class.ilAssOrderingElementList.php.
References getSolutionIdentifierIndexedElements().
Here is the call graph for this function:| ilAssOrderingElementList::getSolutionIdentifierIndexedElements | ( | ) |
Definition at line 230 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 123 of file class.ilAssOrderingElementList.php.
References countElements().
Here is the call graph for this function:| ilAssOrderingElementList::hasSameElementSetByRandomIdentifiers | ( | self | $otherList | ) |
| ilAssOrderingElementList | $otherList |
Definition at line 665 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 373 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 128 of file class.ilAssOrderingElementList.php.
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 449 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 133 of file class.ilAssOrderingElementList.php.
References countElements().
Here is the call graph for this function:
|
protected |
@noinspection PhpInconsistentReturnPointsInspection
Definition at line 496 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 647 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 642 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 634 of file class.ilAssOrderingElementList.php.
References ILIAS\Repository\int().
Referenced by ilAssOrderingElement\isExportIdent(), and isValidIdentifier().
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.
References ILIAS\Repository\int().
Referenced by ilAssOrderingElement\isExportIdent(), isValidIdentifier(), and isValidPosition().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::key | ( | ) |
Definition at line 815 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 138 of file class.ilAssOrderingElementList.php.
References getElementByPosition(), getQuestionId(), and setElements().
Here is the call graph for this function:| ilAssOrderingElementList::next | ( | ) |
Definition at line 807 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 484 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 430 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 419 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 166 of file class.ilAssOrderingElementList.php.
References getQuestionId().
Here is the call graph for this function:| ilAssOrderingElementList::reorderByRandomIdentifiers | ( | $randomIdentifiers | ) |
| $randomIdentifiers |
| ilTestQuestionPoolException |
Definition at line 708 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 186 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 738 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::rewind | ( | ) |
Definition at line 831 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::setElements | ( | $elements | ) |
| $elements |
Definition at line 194 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 113 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 537 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
Here is the caller graph for this function:
|
protected |
| string | $randomIdentifier |
| ilTestQuestionPoolException |
Definition at line 548 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
Here is the caller graph for this function:
|
protected |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 526 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 559 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
Here is the caller graph for this function:| ilAssOrderingElementList::valid | ( | ) |
Definition at line 823 of file class.ilAssOrderingElementList.php.
References key().
Here is the call graph for this function:| ilAssOrderingElementList::withElements | ( | array | $elements | ) |
| ilAssOrderingElement[]; |
Definition at line 876 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 883 of file class.ilAssOrderingElementList.php.
References $question_id.
Referenced by assOrderingQuestion\setOrderingElementList().
Here is the caller graph for this function:
|
protected |
Definition at line 61 of file class.ilAssOrderingElementList.php.
Referenced by __clone(), __construct(), buildInstance(), getElements(), getIndexedElements(), setElements(), and withElements().
|
staticprotected |
Definition at line 48 of file class.ilAssOrderingElementList.php.
|
static |
Definition at line 27 of file class.ilAssOrderingElementList.php.
Referenced by __clone(), and __construct().
| ilAssOrderingElementList::$objectInstanceId |
Definition at line 28 of file class.ilAssOrderingElementList.php.
|
protected |
Definition at line 56 of file class.ilAssOrderingElementList.php.
Referenced by __construct(), buildInstance(), getQuestionId(), setQuestionId(), and withQuestionId().
| const ilAssOrderingElementList::FALLBACK_DEFAULT_ELEMENT_RANDOM_IDENTIFIER = 0 |
Definition at line 38 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::IDENTIFIER_TYPE_RANDOM = 'RandomIds' |
Definition at line 43 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), isValidIdentifier(), and populateIdentifier().
| const ilAssOrderingElementList::IDENTIFIER_TYPE_SOLUTION = 'SolutionIds' |
Definition at line 42 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), isValidIdentifier(), and populateIdentifier().
| const ilAssOrderingElementList::JS_ADDED_ELEMENTS_RANDOM_IDENTIFIER_START_VALUE = -1 |
Definition at line 39 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::JS_ADDED_ELEMENTS_RANDOM_IDENTIFIER_VALUE_INTERVAL = -1 |
Definition at line 40 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::RANDOM_IDENTIFIER_BUILD_MAX_TRIES = 1000 |
Definition at line 34 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::RANDOM_IDENTIFIER_RANGE_LOWER_BOUND = 1 |
Definition at line 35 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
| const ilAssOrderingElementList::RANDOM_IDENTIFIER_RANGE_UPPER_BOUND = 100000 |
Definition at line 36 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
| const ilAssOrderingElementList::SOLUTION_IDENTIFIER_BUILD_MAX_TRIES = 1000 |
Definition at line 30 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::SOLUTION_IDENTIFIER_START_VALUE = 0 |
Definition at line 32 of file class.ilAssOrderingElementList.php.
| const ilAssOrderingElementList::SOLUTION_IDENTIFIER_VALUE_INTERVAL = 1 |
Definition at line 31 of file class.ilAssOrderingElementList.php.
Referenced by buildSolutionIdentifier().