ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
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, and $question_id.
ilAssOrderingElementList::__clone | ( | ) |
clone list by additionally cloning the element objects
Definition at line 80 of file class.ilAssOrderingElementList.php.
References $elements, and ILIAS\LTI\ToolProvider\$key.
ilAssOrderingElementList::addElement | ( | ilAssOrderingElement | $element | ) |
ilAssOrderingElement | $element |
Definition at line 260 of file class.ilAssOrderingElementList.php.
References hasValidIdentifiers(), and registerIdentifiers().
Referenced by setElements().
|
protected |
Definition at line 509 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier(), buildSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
|
static |
Definition at line 848 of file class.ilAssOrderingElementList.php.
References $elements, and setQuestionId().
Referenced by assOrderingQuestion\fetchSolutionListFromFormSubmissionData(), ilAssOrderingImagesInputGUI\getElementList(), ilAssOrderingTextsInputGUI\getElementList(), and ilAssNestedOrderingElementsInputGUI\getElementList().
|
protected |
ilTestQuestionPoolException |
Definition at line 605 of file class.ilAssOrderingElementList.php.
References isIdentifierRegistered(), and throwCouldNotBuildRandomIdentifierException().
Referenced by buildIdentifier(), and distributeNewRandomIdentifiers().
|
protected |
Definition at line 588 of file class.ilAssOrderingElementList.php.
References getLastSolutionIdentifier().
Referenced by buildIdentifier().
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().
ilAssOrderingElementList::current | ( | ) |
ilAssOrderingElementList::distributeNewRandomIdentifiers | ( | ) |
Definition at line 655 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier().
ilAssOrderingElementList::elementExistByPosition | ( | $position | ) |
$position |
Definition at line 286 of file class.ilAssOrderingElementList.php.
References getElementByPosition().
ilAssOrderingElementList::elementExistByRandomIdentifier | ( | $randomIdentifier | ) |
$randomIdentifier |
Definition at line 310 of file class.ilAssOrderingElementList.php.
References getElementByRandomIdentifier().
ilAssOrderingElementList::elementExistBySolutionIdentifier | ( | $solutionIdentifier | ) |
$solutionIdentifier |
Definition at line 335 of file class.ilAssOrderingElementList.php.
References getElementBySolutionIdentifier().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
Definition at line 405 of file class.ilAssOrderingElementList.php.
References buildIdentifier(), fetchIdentifier(), isValidIdentifier(), populateIdentifier(), and registerIdentifier().
Referenced by ensureValidIdentifiers().
ilAssOrderingElementList::ensureValidIdentifiers | ( | ilAssOrderingElement | $element | ) |
ilAssOrderingElement | $element |
Definition at line 393 of file class.ilAssOrderingElementList.php.
References ensureValidIdentifier().
Referenced by assOrderingQuestion\setOrderingElementList().
|
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().
ilAssOrderingElementList::getClone | ( | ) |
ilAssOrderingElementList::getDifferenceElementList | ( | self | $otherElementList | ) |
ilAssOrderingElementList | $otherElementList |
Definition at line 749 of file class.ilAssOrderingElementList.php.
References getDifferenceRandomIdentifierIndex(), getElementByRandomIdentifier(), and getQuestionId().
|
protected |
ilAssOrderingElementList | $other |
Definition at line 768 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndex().
Referenced by getDifferenceElementList().
ilAssOrderingElementList::getElementByPosition | ( | $position | ) |
$randomIdentifier |
Definition at line 273 of file class.ilAssOrderingElementList.php.
Referenced by assOrderingQuestion\calculateReachedPointsForSolution(), elementExistByPosition(), and moveElementByPositions().
ilAssOrderingElementList::getElementByRandomIdentifier | ( | $randomIdentifier | ) |
$randomIdentifier |
Definition at line 295 of file class.ilAssOrderingElementList.php.
Referenced by elementExistByRandomIdentifier(), and getDifferenceElementList().
ilAssOrderingElementList::getElementBySolutionIdentifier | ( | $solutionIdentifier | ) |
$randomIdentifier |
Definition at line 319 of file class.ilAssOrderingElementList.php.
Referenced by elementExistBySolutionIdentifier().
ilAssOrderingElementList::getElements | ( | ) |
Definition at line 206 of file class.ilAssOrderingElementList.php.
References $elements.
Referenced by assOrderingQuestion\setOrderingElementList(), and ILIAS\TA\Questions\Ordering\assOrderingQuestionDatabaseRepository\updateOrderingList().
|
static |
Definition at line 839 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingDefaultElementFallback\manipulateFormInputValues().
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().
|
protected |
Definition at line 570 of file class.ilAssOrderingElementList.php.
References getRegisteredSolutionIdentifiers().
Referenced by buildSolutionIdentifier().
ilAssOrderingElementList::getParityTrueElementList | ( | self | $otherList | ) |
Definition at line 676 of file class.ilAssOrderingElementList.php.
References getQuestionId(), and hasSameElementSetByRandomIdentifiers().
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().
ilAssOrderingElementList::getRandomIdentifierIndex | ( | ) |
Definition at line 222 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndexedElements().
Referenced by getDifferenceRandomIdentifierIndex(), and hasSameElementSetByRandomIdentifiers().
ilAssOrderingElementList::getRandomIdentifierIndexedElements | ( | ) |
Definition at line 214 of file class.ilAssOrderingElementList.php.
References getIndexedElements().
Referenced by getRandomIdentifierIndex(), ilAssOrderingImagesInputGUI\setElementList(), ilAssOrderingTextsInputGUI\setElementList(), and ilAssNestedOrderingElementsInputGUI\setElementList().
|
protected |
string | $identifierType |
Definition at line 360 of file class.ilAssOrderingElementList.php.
References getQuestionId().
Referenced by getRegisteredRandomIdentifiers(), and getRegisteredSolutionIdentifiers().
|
protected |
Definition at line 351 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
|
protected |
Definition at line 343 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
Referenced by getLastSolutionIdentifier().
ilAssOrderingElementList::getSolutionIdentifierIndex | ( | ) |
Definition at line 238 of file class.ilAssOrderingElementList.php.
References getSolutionIdentifierIndexedElements().
ilAssOrderingElementList::getSolutionIdentifierIndexedElements | ( | ) |
Definition at line 230 of file class.ilAssOrderingElementList.php.
References getIndexedElements().
Referenced by getSolutionIdentifierIndex().
ilAssOrderingElementList::hasElements | ( | ) |
Definition at line 123 of file class.ilAssOrderingElementList.php.
References countElements().
ilAssOrderingElementList::hasSameElementSetByRandomIdentifiers | ( | self | $otherList | ) |
ilAssOrderingElementList | $otherList |
Definition at line 665 of file class.ilAssOrderingElementList.php.
References countElements(), and getRandomIdentifierIndex().
Referenced by getParityTrueElementList().
|
protected |
ilAssOrderingElement | $element |
Definition at line 373 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and isValidIdentifier().
Referenced by addElement().
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().
ilAssOrderingElementList::isLastElementPosition | ( | $position | ) |
Definition at line 133 of file class.ilAssOrderingElementList.php.
References countElements().
|
protected |
PhpInconsistentReturnPointsInspection
Definition at line 496 of file class.ilAssOrderingElementList.php.
References throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier(), and hasValidIdentifiers().
|
static |
Definition at line 647 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 642 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 634 of file class.ilAssOrderingElementList.php.
References ILIAS\Repository\int().
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 627 of file class.ilAssOrderingElementList.php.
References ILIAS\Repository\int().
Referenced by ilAssOrderingElement\isExportIdent().
ilAssOrderingElementList::key | ( | ) |
Definition at line 815 of file class.ilAssOrderingElementList.php.
Referenced by valid().
ilAssOrderingElementList::moveElementByPositions | ( | $currentPosition, | |
$targetPosition | |||
) |
Definition at line 138 of file class.ilAssOrderingElementList.php.
References getElementByPosition(), getQuestionId(), and setElements().
ilAssOrderingElementList::next | ( | ) |
Definition at line 807 of file class.ilAssOrderingElementList.php.
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType | |
$identifier |
ilTestQuestionPoolException |
Definition at line 484 of file class.ilAssOrderingElementList.php.
References ilAssOrderingElement\setRandomIdentifier(), ilAssOrderingElement\setSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 430 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and getQuestionId().
Referenced by ensureValidIdentifier(), and registerIdentifiers().
|
protected |
ilAssOrderingElement | $element |
Definition at line 419 of file class.ilAssOrderingElementList.php.
References registerIdentifier().
Referenced by addElement().
ilAssOrderingElementList::removeElement | ( | ilAssOrderingElement | $removeElement | ) |
Definition at line 166 of file class.ilAssOrderingElementList.php.
References getQuestionId().
ilAssOrderingElementList::reorderByRandomIdentifiers | ( | $randomIdentifiers | ) |
$randomIdentifiers |
ilTestQuestionPoolException |
Definition at line 708 of file class.ilAssOrderingElementList.php.
References setElements(), throwMissingReorderPositionException(), and throwUnknownRandomIdentifiersException().
ilAssOrderingElementList::resetElements | ( | ) |
resets elements
Definition at line 186 of file class.ilAssOrderingElementList.php.
Referenced by setElements().
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().
ilAssOrderingElementList::setQuestionId | ( | $question_id | ) |
integer | $question_id |
Definition at line 113 of file class.ilAssOrderingElementList.php.
References $question_id.
Referenced by buildInstance().
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 537 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
|
protected |
string | $randomIdentifier |
ilTestQuestionPoolException |
Definition at line 548 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 526 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), fetchIdentifier(), isValidIdentifier(), and populateIdentifier().
|
protected |
array | $randomIdentifiers |
ilTestQuestionPoolException |
Definition at line 559 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
ilAssOrderingElementList::valid | ( | ) |
Definition at line 823 of file class.ilAssOrderingElementList.php.
References key().
ilAssOrderingElementList::withElements | ( | array | $elements | ) |
ilAssOrderingElement[]; |
Definition at line 876 of file class.ilAssOrderingElementList.php.
References $elements.
Referenced by assOrderingQuestion\setOrderingElementList(), and assOrderingQuestionTest\testOrderingElementListMutation().
ilAssOrderingElementList::withQuestionId | ( | int | $question_id | ) |
Definition at line 883 of file class.ilAssOrderingElementList.php.
References $question_id.
Referenced by assOrderingQuestion\setOrderingElementList().
|
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.
ilAssOrderingElementList::$objectInstanceId |
Definition at line 28 of file class.ilAssOrderingElementList.php.
|
protected |
Definition at line 56 of file class.ilAssOrderingElementList.php.
Referenced by __construct(), 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.
const ilAssOrderingElementList::IDENTIFIER_TYPE_SOLUTION = 'SolutionIds' |
Definition at line 42 of file class.ilAssOrderingElementList.php.
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.
const ilAssOrderingElementList::RANDOM_IDENTIFIER_RANGE_UPPER_BOUND = 100000 |
Definition at line 36 of file class.ilAssOrderingElementList.php.
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.