|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 ($questionId, $orderingElements=array()) |
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 | |
| $questionId | |
| $elements | |
Static Protected Attributes | |
| static | $identifierRegistry |
Definition at line 12 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::__construct | ( | ) |
ilAssOrderingElementList constructor.
Definition at line 53 of file class.ilAssOrderingElementList.php.
References $objectInstanceCounter, and resetElements().
Here is the call graph for this function:| ilAssOrderingElementList::__clone | ( | ) |
clone list by additionally cloning the element objects
Definition at line 64 of file class.ilAssOrderingElementList.php.
References $elements, $key, and $objectInstanceCounter.
| ilAssOrderingElementList::addElement | ( | ilAssOrderingElement | $element | ) |
| ilAssOrderingElement | $element |
Definition at line 308 of file class.ilAssOrderingElementList.php.
References hasValidIdentifiers(), and registerIdentifiers().
Referenced by loadFromDb(), and setElements().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 567 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 |
| integer | $questionId | |
| array[ilAssOrderingElement] | $orderingElements |
Definition at line 959 of file class.ilAssOrderingElementList.php.
References $questionId.
Referenced by assOrderingQuestion\fetchSolutionListFromFormSubmissionData(), ilAssNestedOrderingElementsInputGUI\getElementList(), ilAssOrderingImagesInputGUI\getElementList(), ilAssOrderingTextsInputGUI\getElementList(), and assOrderingQuestionGUI\removeElementImage().
Here is the caller graph for this function:
|
protected |
| ilTestQuestionPoolException |
Definition at line 660 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 643 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::clearElementContents | ( | ) |
clears the contents of all elements
Definition at line 164 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::completeContentsFromElementList | ( | self | $otherList | ) |
| ilAssOrderingElementList | $otherList |
Definition at line 888 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::countElements | ( | ) |
Definition at line 171 of file class.ilAssOrderingElementList.php.
Referenced by hasSameElementSetByRandomIdentifiers(), and isLastElementPosition().
Here is the caller graph for this function:| ilAssOrderingElementList::current | ( | ) |
Definition at line 906 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 733 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistByPosition | ( | $position | ) |
| $position |
Definition at line 334 of file class.ilAssOrderingElementList.php.
References getElementByPosition().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistByRandomIdentifier | ( | $randomIdentifier | ) |
| $randomIdentifier |
Definition at line 360 of file class.ilAssOrderingElementList.php.
References getElementByRandomIdentifier().
Here is the call graph for this function:| ilAssOrderingElementList::elementExistBySolutionIdentifier | ( | $solutionIdentifier | ) |
| $solutionIdentifier |
Definition at line 385 of file class.ilAssOrderingElementList.php.
References getElementBySolutionIdentifier().
Here is the call graph for this function:
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
Definition at line 453 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:
|
protected |
| ilAssOrderingElement | $element |
Definition at line 443 of file class.ilAssOrderingElementList.php.
References ensureValidIdentifier().
Here is the call graph for this function:
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 518 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 80 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::getDifferenceElementList | ( | self | $otherElementList | ) |
| ilAssOrderingElementList | $otherElementList |
Definition at line 856 of file class.ilAssOrderingElementList.php.
References getDifferenceRandomIdentifierIndex(), getElementByRandomIdentifier(), and getQuestionId().
Here is the call graph for this function:
|
protected |
| ilAssOrderingElementList | $other |
Definition at line 875 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 321 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 343 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 369 of file class.ilAssOrderingElementList.php.
Referenced by elementExistBySolutionIdentifier().
Here is the caller graph for this function:| ilAssOrderingElementList::getElements | ( | ) |
Definition at line 254 of file class.ilAssOrderingElementList.php.
References $elements.
|
static |
Definition at line 946 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingDefaultElementFallback\manipulateFormInputValues().
Here is the caller graph for this function:
|
protected |
Definition at line 294 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 625 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 782 of file class.ilAssOrderingElementList.php.
References getQuestionId(), and hasSameElementSetByRandomIdentifiers().
Here is the call graph for this function:| ilAssOrderingElementList::getQuestionId | ( | ) |
Definition at line 89 of file class.ilAssOrderingElementList.php.
References $questionId.
Referenced by getDifferenceElementList(), getParityTrueElementList(), getRegisteredIdentifiers(), isIdentifierRegistered(), loadFromDb(), moveElementByPositions(), registerIdentifier(), and removeElement().
Here is the caller graph for this function:| ilAssOrderingElementList::getRandomIdentifierIndex | ( | ) |
Definition at line 270 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 262 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 410 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 401 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
Here is the call graph for this function:
|
protected |
Definition at line 393 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 286 of file class.ilAssOrderingElementList.php.
References getSolutionIdentifierIndexedElements().
Here is the call graph for this function:| ilAssOrderingElementList::getSolutionIdentifierIndexedElements | ( | ) |
Definition at line 278 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::hasSameElementSetByRandomIdentifiers | ( | self | $otherList | ) |
| ilAssOrderingElementList | $otherList |
Definition at line 744 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 423 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 176 of file class.ilAssOrderingElementList.php.
|
protected |
| ilAssOrderingElement | $element | |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 497 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 181 of file class.ilAssOrderingElementList.php.
References countElements().
Here is the call graph for this function:
|
protected |
| string | $identifierType | |
| $identifier |
| ilTestQuestionPoolException |
Definition at line 549 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 725 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 720 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 699 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent(), and isValidIdentifier().
Here is the caller graph for this function:
|
static |
Definition at line 682 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 922 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::loadFromDb | ( | ) |
load elements from database
Definition at line 105 of file class.ilAssOrderingElementList.php.
References $GLOBALS, $ilDB, $result, $row, addElement(), getQuestionId(), and registerIdentifiers().
Here is the call graph for this function:| ilAssOrderingElementList::moveElementByPositions | ( | $currentPosition, | |
| $targetPosition | |||
| ) |
Definition at line 186 of file class.ilAssOrderingElementList.php.
References getElementByPosition(), getQuestionId(), and setElements().
Here is the call graph for this function:| ilAssOrderingElementList::next | ( | ) |
Definition at line 914 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 534 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 478 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 467 of file class.ilAssOrderingElementList.php.
References registerIdentifier().
Referenced by addElement(), and loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssOrderingElementList::removeElement | ( | ilAssOrderingElement | $removeElement | ) |
Definition at line 214 of file class.ilAssOrderingElementList.php.
References getQuestionId().
Here is the call graph for this function:| ilAssOrderingElementList::reorderByRandomIdentifiers | ( | $randomIdentifiers | ) |
| $randomIdentifiers |
| ilTestQuestionPoolException |
Definition at line 815 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 234 of file class.ilAssOrderingElementList.php.
Referenced by __construct(), and 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 845 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::rewind | ( | ) |
Definition at line 938 of file class.ilAssOrderingElementList.php.
| ilAssOrderingElementList::setElements | ( | $elements | ) |
| $elements |
Definition at line 242 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 | ( | $questionId | ) |
| integer | $questionId |
Definition at line 97 of file class.ilAssOrderingElementList.php.
References $questionId.
|
protected |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 592 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
Here is the caller graph for this function:
|
protected |
| string | $randomIdentifier |
| ilTestQuestionPoolException |
Definition at line 603 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
Here is the caller graph for this function:
|
protected |
| string | $identifierType |
| ilTestQuestionPoolException |
Definition at line 581 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 614 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
Here is the caller graph for this function:| ilAssOrderingElementList::valid | ( | ) |
Definition at line 930 of file class.ilAssOrderingElementList.php.
References key().
Here is the call graph for this function:
|
protected |
Definition at line 48 of file class.ilAssOrderingElementList.php.
Referenced by __clone(), getElements(), getIndexedElements(), and setElements().
|
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 buildInstance(), getQuestionId(), and setQuestionId().
| 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().