ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 resetElements().
ilAssOrderingElementList::__clone | ( | ) |
clone list by additionally cloning the element objects
Definition at line 64 of file class.ilAssOrderingElementList.php.
References $elements, and array.
ilAssOrderingElementList::addElement | ( | ilAssOrderingElement | $element | ) |
ilAssOrderingElement | $element |
Definition at line 317 of file class.ilAssOrderingElementList.php.
References hasValidIdentifiers(), and registerIdentifiers().
Referenced by loadFromDb(), and setElements().
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 593 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier(), buildSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
|
static |
integer | $questionId | |
array[ilAssOrderingElement] | $orderingElements |
Definition at line 997 of file class.ilAssOrderingElementList.php.
References $questionId.
Referenced by assOrderingQuestion\fetchSolutionListFromFormSubmissionData(), ilAssOrderingTextsInputGUI\getElementList(), ilAssOrderingImagesInputGUI\getElementList(), ilAssNestedOrderingElementsInputGUI\getElementList(), and assOrderingQuestionGUI\removeElementImage().
|
protected |
ilTestQuestionPoolException |
Definition at line 690 of file class.ilAssOrderingElementList.php.
References isIdentifierRegistered(), and throwCouldNotBuildRandomIdentifierException().
Referenced by buildIdentifier(), and distributeNewRandomIdentifiers().
|
protected |
Definition at line 672 of file class.ilAssOrderingElementList.php.
References getLastSolutionIdentifier().
Referenced by buildIdentifier().
ilAssOrderingElementList::clearElementContents | ( | ) |
clears the contents of all elements
Definition at line 165 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::completeContentsFromElementList | ( | self | $otherList | ) |
ilAssOrderingElementList | $otherList |
Definition at line 939 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::countElements | ( | ) |
Definition at line 173 of file class.ilAssOrderingElementList.php.
Referenced by hasSameElementSetByRandomIdentifiers(), and isLastElementPosition().
ilAssOrderingElementList::current | ( | ) |
Definition at line 959 of file class.ilAssOrderingElementList.php.
References current().
Referenced by current().
ilAssOrderingElementList::distributeNewRandomIdentifiers | ( | ) |
Definition at line 773 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier().
ilAssOrderingElementList::elementExistByPosition | ( | $position | ) |
$position |
Definition at line 345 of file class.ilAssOrderingElementList.php.
References getElementByPosition().
ilAssOrderingElementList::elementExistByRandomIdentifier | ( | $randomIdentifier | ) |
$randomIdentifier |
Definition at line 373 of file class.ilAssOrderingElementList.php.
References getElementByRandomIdentifier().
ilAssOrderingElementList::elementExistBySolutionIdentifier | ( | $solutionIdentifier | ) |
$solutionIdentifier |
Definition at line 400 of file class.ilAssOrderingElementList.php.
References getElementBySolutionIdentifier().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
Definition at line 471 of file class.ilAssOrderingElementList.php.
References buildIdentifier(), fetchIdentifier(), isValidIdentifier(), populateIdentifier(), and registerIdentifier().
Referenced by ensureValidIdentifiers().
|
protected |
ilAssOrderingElement | $element |
Definition at line 461 of file class.ilAssOrderingElementList.php.
References ensureValidIdentifier().
Referenced by loadFromDb().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 541 of file class.ilAssOrderingElementList.php.
References ilAssOrderingElement\getRandomIdentifier(), ilAssOrderingElement\getSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier(), getIndexedElements(), hasValidIdentifiers(), isIdentifierRegistered(), and registerIdentifier().
ilAssOrderingElementList::getClone | ( | ) |
Definition at line 81 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::getDifferenceElementList | ( | self | $otherElementList | ) |
ilAssOrderingElementList | $otherElementList |
Definition at line 907 of file class.ilAssOrderingElementList.php.
References getDifferenceRandomIdentifierIndex(), getElementByRandomIdentifier(), and getQuestionId().
|
protected |
ilAssOrderingElementList | $other |
Definition at line 927 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndex().
Referenced by getDifferenceElementList().
ilAssOrderingElementList::getElementByPosition | ( | $position | ) |
$randomIdentifier |
Definition at line 331 of file class.ilAssOrderingElementList.php.
Referenced by assOrderingQuestion\calculateReachedPointsForSolution(), elementExistByPosition(), and moveElementByPositions().
ilAssOrderingElementList::getElementByRandomIdentifier | ( | $randomIdentifier | ) |
$randomIdentifier |
Definition at line 354 of file class.ilAssOrderingElementList.php.
Referenced by elementExistByRandomIdentifier(), and getDifferenceElementList().
ilAssOrderingElementList::getElementBySolutionIdentifier | ( | $solutionIdentifier | ) |
$randomIdentifier |
Definition at line 382 of file class.ilAssOrderingElementList.php.
Referenced by elementExistBySolutionIdentifier().
ilAssOrderingElementList::getElements | ( | ) |
Definition at line 262 of file class.ilAssOrderingElementList.php.
References $elements.
|
static |
Definition at line 984 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingDefaultElementFallback\manipulateFormInputValues().
|
protected |
Definition at line 302 of file class.ilAssOrderingElementList.php.
References $elements, array, and fetchIdentifier().
Referenced by getRandomIdentifierIndexedElements(), and getSolutionIdentifierIndexedElements().
|
protected |
Definition at line 652 of file class.ilAssOrderingElementList.php.
References getRegisteredSolutionIdentifiers().
Referenced by buildSolutionIdentifier().
ilAssOrderingElementList::getParityTrueElementList | ( | self | $otherList | ) |
Definition at line 825 of file class.ilAssOrderingElementList.php.
References getQuestionId(), and hasSameElementSetByRandomIdentifiers().
ilAssOrderingElementList::getQuestionId | ( | ) |
Definition at line 90 of file class.ilAssOrderingElementList.php.
References $questionId.
Referenced by getDifferenceElementList(), getParityTrueElementList(), getRegisteredIdentifiers(), isIdentifierRegistered(), loadFromDb(), moveElementByPositions(), registerIdentifier(), and removeElement().
ilAssOrderingElementList::getRandomIdentifierIndex | ( | ) |
Definition at line 278 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndexedElements().
Referenced by getDifferenceRandomIdentifierIndex(), and hasSameElementSetByRandomIdentifiers().
ilAssOrderingElementList::getRandomIdentifierIndexedElements | ( | ) |
Definition at line 270 of file class.ilAssOrderingElementList.php.
References getIndexedElements().
Referenced by getRandomIdentifierIndex(), ilAssOrderingTextsInputGUI\setElementList(), ilAssOrderingImagesInputGUI\setElementList(), and ilAssNestedOrderingElementsInputGUI\setElementList().
|
protected |
string | $identifierType |
Definition at line 425 of file class.ilAssOrderingElementList.php.
References array, and getQuestionId().
Referenced by getRegisteredRandomIdentifiers(), and getRegisteredSolutionIdentifiers().
|
protected |
Definition at line 416 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
|
protected |
Definition at line 408 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
Referenced by getLastSolutionIdentifier().
ilAssOrderingElementList::getSolutionIdentifierIndex | ( | ) |
Definition at line 294 of file class.ilAssOrderingElementList.php.
References getSolutionIdentifierIndexedElements().
ilAssOrderingElementList::getSolutionIdentifierIndexedElements | ( | ) |
Definition at line 286 of file class.ilAssOrderingElementList.php.
References getIndexedElements().
Referenced by getSolutionIdentifierIndex().
ilAssOrderingElementList::hasSameElementSetByRandomIdentifiers | ( | self | $otherList | ) |
ilAssOrderingElementList | $otherList |
Definition at line 785 of file class.ilAssOrderingElementList.php.
References countElements(), and getRandomIdentifierIndex().
Referenced by getParityTrueElementList().
|
protected |
ilAssOrderingElement | $element |
Definition at line 439 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and isValidIdentifier().
Referenced by addElement().
ilAssOrderingElementList::isFirstElementPosition | ( | $position | ) |
Definition at line 178 of file class.ilAssOrderingElementList.php.
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 518 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and getQuestionId().
Referenced by buildRandomIdentifier().
ilAssOrderingElementList::isLastElementPosition | ( | $position | ) |
Definition at line 183 of file class.ilAssOrderingElementList.php.
References countElements().
|
protected |
string | $identifierType | |
$identifier |
ilTestQuestionPoolException |
Definition at line 574 of file class.ilAssOrderingElementList.php.
References throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier(), and hasValidIdentifiers().
|
static |
Definition at line 765 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 760 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 735 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 715 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
ilAssOrderingElementList::key | ( | ) |
Definition at line 969 of file class.ilAssOrderingElementList.php.
References key().
Referenced by key(), and valid().
ilAssOrderingElementList::loadFromDb | ( | ) |
load elements from database
Definition at line 106 of file class.ilAssOrderingElementList.php.
References $GLOBALS, $ilDB, $result, $row, addElement(), array, ensureValidIdentifiers(), getQuestionId(), registerIdentifiers(), and time.
ilAssOrderingElementList::moveElementByPositions | ( | $currentPosition, | |
$targetPosition | |||
) |
Definition at line 188 of file class.ilAssOrderingElementList.php.
References getElementByPosition(), getQuestionId(), and setElements().
ilAssOrderingElementList::next | ( | ) |
Definition at line 964 of file class.ilAssOrderingElementList.php.
References next().
Referenced by next().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType | |
$identifier |
ilTestQuestionPoolException |
Definition at line 558 of file class.ilAssOrderingElementList.php.
References ilAssOrderingElement\setRandomIdentifier(), ilAssOrderingElement\setSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 497 of file class.ilAssOrderingElementList.php.
References array, fetchIdentifier(), and getQuestionId().
Referenced by ensureValidIdentifier(), and registerIdentifiers().
|
protected |
ilAssOrderingElement | $element |
Definition at line 486 of file class.ilAssOrderingElementList.php.
References registerIdentifier().
Referenced by addElement(), and loadFromDb().
ilAssOrderingElementList::removeElement | ( | ilAssOrderingElement | $removeElement | ) |
Definition at line 219 of file class.ilAssOrderingElementList.php.
References getQuestionId().
ilAssOrderingElementList::reorderByRandomIdentifiers | ( | $randomIdentifiers | ) |
$randomIdentifiers |
ilTestQuestionPoolException |
Definition at line 862 of file class.ilAssOrderingElementList.php.
References array, setElements(), throwMissingReorderPositionException(), and throwUnknownRandomIdentifiersException().
ilAssOrderingElementList::resetElements | ( | ) |
resets elements
Definition at line 241 of file class.ilAssOrderingElementList.php.
References array.
Referenced by __construct(), and setElements().
ilAssOrderingElementList::resetElementsIndentations | ( | ) |
resets the indentation to level 0 for all elements in list
Definition at line 895 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::rewind | ( | ) |
Definition at line 979 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::setElements | ( | $elements | ) |
$elements |
Definition at line 249 of file class.ilAssOrderingElementList.php.
References $elements, addElement(), and resetElements().
Referenced by moveElementByPositions(), and reorderByRandomIdentifiers().
ilAssOrderingElementList::setQuestionId | ( | $questionId | ) |
integer | $questionId |
Definition at line 98 of file class.ilAssOrderingElementList.php.
References $questionId.
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 619 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
|
protected |
string | $randomIdentifier |
ilTestQuestionPoolException |
Definition at line 630 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 608 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), fetchIdentifier(), isValidIdentifier(), and populateIdentifier().
|
protected |
array | $randomIdentifiers |
ilTestQuestionPoolException |
Definition at line 641 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
ilAssOrderingElementList::valid | ( | ) |
Definition at line 974 of file class.ilAssOrderingElementList.php.
References key().
|
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.
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.
const ilAssOrderingElementList::IDENTIFIER_TYPE_SOLUTION = 'SolutionIds' |
Definition at line 29 of file class.ilAssOrderingElementList.php.
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.
const ilAssOrderingElementList::RANDOM_IDENTIFIER_RANGE_UPPER_BOUND = 100000 |
Definition at line 23 of file class.ilAssOrderingElementList.php.
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.