ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 $key.
ilAssOrderingElementList::addElement | ( | ilAssOrderingElement | $element | ) |
ilAssOrderingElement | $element |
Definition at line 314 of file class.ilAssOrderingElementList.php.
References hasValidIdentifiers(), and registerIdentifiers().
Referenced by loadFromDb(), and setElements().
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 573 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier(), buildSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
|
static |
integer | $questionId | |
array[ilAssOrderingElement] | $orderingElements |
Definition at line 965 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 666 of file class.ilAssOrderingElementList.php.
References isIdentifierRegistered(), and throwCouldNotBuildRandomIdentifierException().
Referenced by buildIdentifier(), and distributeNewRandomIdentifiers().
|
protected |
Definition at line 649 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 894 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::countElements | ( | ) |
Definition at line 172 of file class.ilAssOrderingElementList.php.
Referenced by hasElements(), hasSameElementSetByRandomIdentifiers(), and isLastElementPosition().
ilAssOrderingElementList::current | ( | ) |
ilAssOrderingElementList::distributeNewRandomIdentifiers | ( | ) |
Definition at line 739 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier().
ilAssOrderingElementList::elementExistByPosition | ( | $position | ) |
$position |
Definition at line 340 of file class.ilAssOrderingElementList.php.
References getElementByPosition().
ilAssOrderingElementList::elementExistByRandomIdentifier | ( | $randomIdentifier | ) |
$randomIdentifier |
Definition at line 366 of file class.ilAssOrderingElementList.php.
References getElementByRandomIdentifier().
ilAssOrderingElementList::elementExistBySolutionIdentifier | ( | $solutionIdentifier | ) |
$solutionIdentifier |
Definition at line 391 of file class.ilAssOrderingElementList.php.
References getElementBySolutionIdentifier().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
Definition at line 459 of file class.ilAssOrderingElementList.php.
References buildIdentifier(), fetchIdentifier(), isValidIdentifier(), populateIdentifier(), and registerIdentifier().
Referenced by ensureValidIdentifiers().
|
protected |
ilAssOrderingElement | $element |
Definition at line 449 of file class.ilAssOrderingElementList.php.
References ensureValidIdentifier().
Referenced by loadFromDb().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 524 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 80 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::getDifferenceElementList | ( | self | $otherElementList | ) |
ilAssOrderingElementList | $otherElementList |
Definition at line 862 of file class.ilAssOrderingElementList.php.
References getDifferenceRandomIdentifierIndex(), getElementByRandomIdentifier(), and getQuestionId().
|
protected |
ilAssOrderingElementList | $other |
Definition at line 881 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndex().
Referenced by getDifferenceElementList().
ilAssOrderingElementList::getElementByPosition | ( | $position | ) |
$randomIdentifier |
Definition at line 327 of file class.ilAssOrderingElementList.php.
Referenced by assOrderingQuestion\calculateReachedPointsForSolution(), elementExistByPosition(), and moveElementByPositions().
ilAssOrderingElementList::getElementByRandomIdentifier | ( | $randomIdentifier | ) |
$randomIdentifier |
Definition at line 349 of file class.ilAssOrderingElementList.php.
Referenced by elementExistByRandomIdentifier(), and getDifferenceElementList().
ilAssOrderingElementList::getElementBySolutionIdentifier | ( | $solutionIdentifier | ) |
$randomIdentifier |
Definition at line 375 of file class.ilAssOrderingElementList.php.
Referenced by elementExistBySolutionIdentifier().
ilAssOrderingElementList::getElements | ( | ) |
Definition at line 260 of file class.ilAssOrderingElementList.php.
References $elements.
|
static |
Definition at line 952 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingDefaultElementFallback\manipulateFormInputValues().
ilAssOrderingElementList::getHash | ( | ) |
Definition at line 975 of file class.ilAssOrderingElementList.php.
|
protected |
Definition at line 300 of file class.ilAssOrderingElementList.php.
References $elements, and fetchIdentifier().
Referenced by getRandomIdentifierIndexedElements(), and getSolutionIdentifierIndexedElements().
|
protected |
Definition at line 631 of file class.ilAssOrderingElementList.php.
References getRegisteredSolutionIdentifiers().
Referenced by buildSolutionIdentifier().
ilAssOrderingElementList::getParityTrueElementList | ( | self | $otherList | ) |
Definition at line 788 of file class.ilAssOrderingElementList.php.
References getQuestionId(), and hasSameElementSetByRandomIdentifiers().
ilAssOrderingElementList::getQuestionId | ( | ) |
Definition at line 89 of file class.ilAssOrderingElementList.php.
References $questionId.
Referenced by getDifferenceElementList(), getParityTrueElementList(), getRegisteredIdentifiers(), isIdentifierRegistered(), loadFromDb(), moveElementByPositions(), registerIdentifier(), and removeElement().
ilAssOrderingElementList::getRandomIdentifierIndex | ( | ) |
Definition at line 276 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndexedElements().
Referenced by getDifferenceRandomIdentifierIndex(), and hasSameElementSetByRandomIdentifiers().
ilAssOrderingElementList::getRandomIdentifierIndexedElements | ( | ) |
Definition at line 268 of file class.ilAssOrderingElementList.php.
References getIndexedElements().
Referenced by getRandomIdentifierIndex(), ilAssOrderingTextsInputGUI\setElementList(), ilAssOrderingImagesInputGUI\setElementList(), and ilAssNestedOrderingElementsInputGUI\setElementList().
|
protected |
string | $identifierType |
Definition at line 416 of file class.ilAssOrderingElementList.php.
References getQuestionId().
Referenced by getRegisteredRandomIdentifiers(), and getRegisteredSolutionIdentifiers().
|
protected |
Definition at line 407 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
|
protected |
Definition at line 399 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
Referenced by getLastSolutionIdentifier().
ilAssOrderingElementList::getSolutionIdentifierIndex | ( | ) |
Definition at line 292 of file class.ilAssOrderingElementList.php.
References getSolutionIdentifierIndexedElements().
ilAssOrderingElementList::getSolutionIdentifierIndexedElements | ( | ) |
Definition at line 284 of file class.ilAssOrderingElementList.php.
References getIndexedElements().
Referenced by getSolutionIdentifierIndex().
ilAssOrderingElementList::hasElements | ( | ) |
Definition at line 177 of file class.ilAssOrderingElementList.php.
References countElements().
ilAssOrderingElementList::hasSameElementSetByRandomIdentifiers | ( | self | $otherList | ) |
ilAssOrderingElementList | $otherList |
Definition at line 750 of file class.ilAssOrderingElementList.php.
References countElements(), and getRandomIdentifierIndex().
Referenced by getParityTrueElementList().
|
protected |
ilAssOrderingElement | $element |
Definition at line 429 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and isValidIdentifier().
Referenced by addElement().
ilAssOrderingElementList::isFirstElementPosition | ( | $position | ) |
Definition at line 182 of file class.ilAssOrderingElementList.php.
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 503 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and getQuestionId().
Referenced by buildRandomIdentifier().
ilAssOrderingElementList::isLastElementPosition | ( | $position | ) |
Definition at line 187 of file class.ilAssOrderingElementList.php.
References countElements().
|
protected |
string | $identifierType | |
$identifier |
ilTestQuestionPoolException |
Definition at line 555 of file class.ilAssOrderingElementList.php.
References throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier(), and hasValidIdentifiers().
|
static |
Definition at line 731 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 726 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 705 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 688 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
ilAssOrderingElementList::key | ( | ) |
Definition at line 928 of file class.ilAssOrderingElementList.php.
Referenced by valid().
ilAssOrderingElementList::loadFromDb | ( | ) |
load elements from database
Definition at line 105 of file class.ilAssOrderingElementList.php.
References $DIC, $GLOBALS, $ilDB, $result, $row, addElement(), ensureValidIdentifiers(), getQuestionId(), and registerIdentifiers().
ilAssOrderingElementList::moveElementByPositions | ( | $currentPosition, | |
$targetPosition | |||
) |
Definition at line 192 of file class.ilAssOrderingElementList.php.
References getElementByPosition(), getQuestionId(), and setElements().
ilAssOrderingElementList::next | ( | ) |
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType | |
$identifier |
ilTestQuestionPoolException |
Definition at line 540 of file class.ilAssOrderingElementList.php.
References ilAssOrderingElement\setRandomIdentifier(), ilAssOrderingElement\setSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 484 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and getQuestionId().
Referenced by ensureValidIdentifier(), and registerIdentifiers().
|
protected |
ilAssOrderingElement | $element |
Definition at line 473 of file class.ilAssOrderingElementList.php.
References registerIdentifier().
Referenced by addElement(), and loadFromDb().
ilAssOrderingElementList::removeElement | ( | ilAssOrderingElement | $removeElement | ) |
Definition at line 220 of file class.ilAssOrderingElementList.php.
References getQuestionId().
ilAssOrderingElementList::reorderByRandomIdentifiers | ( | $randomIdentifiers | ) |
$randomIdentifiers |
ilTestQuestionPoolException |
Definition at line 821 of file class.ilAssOrderingElementList.php.
References setElements(), throwMissingReorderPositionException(), and throwUnknownRandomIdentifiersException().
ilAssOrderingElementList::resetElements | ( | ) |
resets elements
Definition at line 240 of file class.ilAssOrderingElementList.php.
Referenced by __construct(), and setElements().
ilAssOrderingElementList::resetElementsIndentations | ( | ) |
resets the indentation to level 0 for all elements in list
Definition at line 851 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::rewind | ( | ) |
Definition at line 944 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::setElements | ( | $elements | ) |
$elements |
Definition at line 248 of file class.ilAssOrderingElementList.php.
References $elements, addElement(), and resetElements().
Referenced by moveElementByPositions(), and reorderByRandomIdentifiers().
ilAssOrderingElementList::setQuestionId | ( | $questionId | ) |
integer | $questionId |
Definition at line 97 of file class.ilAssOrderingElementList.php.
References $questionId.
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 598 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
|
protected |
string | $randomIdentifier |
ilTestQuestionPoolException |
Definition at line 609 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 587 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), fetchIdentifier(), isValidIdentifier(), and populateIdentifier().
|
protected |
array | $randomIdentifiers |
ilTestQuestionPoolException |
Definition at line 620 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
ilAssOrderingElementList::valid | ( | ) |
Definition at line 936 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.