ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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 = [] | |
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.
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 497 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier(), buildSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
|
static |
Definition at line 833 of file class.ilAssOrderingElementList.php.
References $elements, and setQuestionId().
Referenced by assOrderingQuestion\fetchSolutionListFromFormSubmissionData(), ilAssOrderingTextsInputGUI\getElementList(), ilAssOrderingImagesInputGUI\getElementList(), and ilAssNestedOrderingElementsInputGUI\getElementList().
|
protected |
ilTestQuestionPoolException |
Definition at line 593 of file class.ilAssOrderingElementList.php.
References isIdentifierRegistered(), and throwCouldNotBuildRandomIdentifierException().
Referenced by buildIdentifier(), and distributeNewRandomIdentifiers().
|
protected |
Definition at line 576 of file class.ilAssOrderingElementList.php.
References getLastSolutionIdentifier(), and null.
Referenced by buildIdentifier().
ilAssOrderingElementList::completeContentsFromElementList | ( | self | $otherList | ) |
ilAssOrderingElementList | $otherList |
Definition at line 769 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 643 of file class.ilAssOrderingElementList.php.
References buildRandomIdentifier().
ilAssOrderingElementList::elementExistByPosition | ( | int | $position | ) |
Definition at line 278 of file class.ilAssOrderingElementList.php.
References getElementByPosition(), and null.
ilAssOrderingElementList::elementExistByRandomIdentifier | ( | $randomIdentifier | ) |
$randomIdentifier |
Definition at line 298 of file class.ilAssOrderingElementList.php.
References getElementByRandomIdentifier(), and null.
ilAssOrderingElementList::elementExistBySolutionIdentifier | ( | $solutionIdentifier | ) |
$solutionIdentifier |
Definition at line 323 of file class.ilAssOrderingElementList.php.
References getElementBySolutionIdentifier(), and null.
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
Definition at line 393 of file class.ilAssOrderingElementList.php.
References buildIdentifier(), fetchIdentifier(), isValidIdentifier(), populateIdentifier(), and registerIdentifier().
Referenced by ensureValidIdentifiers().
ilAssOrderingElementList::ensureValidIdentifiers | ( | ilAssOrderingElement | $element | ) |
ilAssOrderingElement | $element |
Definition at line 381 of file class.ilAssOrderingElementList.php.
References ensureValidIdentifier().
Referenced by assOrderingQuestion\setOrderingElementList().
|
protected |
ilTestQuestionPoolException |
Definition at line 455 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 737 of file class.ilAssOrderingElementList.php.
References getDifferenceRandomIdentifierIndex(), getElementByRandomIdentifier(), and getQuestionId().
|
protected |
ilAssOrderingElementList | $other |
Definition at line 756 of file class.ilAssOrderingElementList.php.
References getRandomIdentifierIndex().
Referenced by getDifferenceElementList().
ilAssOrderingElementList::getElementByPosition | ( | int | $position | ) |
Definition at line 269 of file class.ilAssOrderingElementList.php.
References null.
Referenced by assOrderingQuestion\calculateReachedPointsForSolution(), elementExistByPosition(), and moveElementByPositions().
ilAssOrderingElementList::getElementByRandomIdentifier | ( | int | $random_identifier | ) |
Definition at line 283 of file class.ilAssOrderingElementList.php.
References null.
Referenced by elementExistByRandomIdentifier(), and getDifferenceElementList().
ilAssOrderingElementList::getElementBySolutionIdentifier | ( | $solutionIdentifier | ) |
$randomIdentifier |
Definition at line 307 of file class.ilAssOrderingElementList.php.
References null.
Referenced by elementExistBySolutionIdentifier().
ilAssOrderingElementList::getElements | ( | ) |
Definition at line 206 of file class.ilAssOrderingElementList.php.
References $elements.
Referenced by assOrderingQuestion\setOrderingElementList(), and ILIAS\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\updateOrderingList().
|
static |
Definition at line 824 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingDefaultElementFallback\manipulateFormInputValues().
ilAssOrderingElementList::getHash | ( | ) |
Definition at line 843 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 558 of file class.ilAssOrderingElementList.php.
References getRegisteredSolutionIdentifiers(), and null.
Referenced by buildSolutionIdentifier().
ilAssOrderingElementList::getParityTrueElementList | ( | self | $otherList | ) |
Definition at line 664 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\TestQuestionPool\Questions\Ordering\OrderingQuestionDatabaseRepository\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(), ilAssOrderingTextsInputGUI\setElementList(), ilAssOrderingImagesInputGUI\setElementList(), and ilAssNestedOrderingElementsInputGUI\setElementList().
|
protected |
string | $identifierType |
Definition at line 348 of file class.ilAssOrderingElementList.php.
References getQuestionId().
Referenced by getRegisteredRandomIdentifiers(), and getRegisteredSolutionIdentifiers().
|
protected |
Definition at line 339 of file class.ilAssOrderingElementList.php.
References getRegisteredIdentifiers().
|
protected |
Definition at line 331 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 653 of file class.ilAssOrderingElementList.php.
References countElements(), and getRandomIdentifierIndex().
Referenced by getParityTrueElementList().
|
protected |
ilAssOrderingElement | $element |
Definition at line 361 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 437 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 484 of file class.ilAssOrderingElementList.php.
References throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier(), and hasValidIdentifiers().
|
static |
Definition at line 635 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 630 of file class.ilAssOrderingElementList.php.
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 622 of file class.ilAssOrderingElementList.php.
References ILIAS\Repository\int().
Referenced by ilAssOrderingElement\isExportIdent().
|
static |
Definition at line 615 of file class.ilAssOrderingElementList.php.
References ILIAS\Repository\int().
Referenced by ilAssOrderingElement\isExportIdent().
ilAssOrderingElementList::key | ( | ) |
Definition at line 803 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 795 of file class.ilAssOrderingElementList.php.
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType | |
$identifier |
ilTestQuestionPoolException |
Definition at line 472 of file class.ilAssOrderingElementList.php.
References ilAssOrderingElement\setRandomIdentifier(), ilAssOrderingElement\setSolutionIdentifier(), and throwUnknownIdentifierTypeException().
Referenced by ensureValidIdentifier().
|
protected |
ilAssOrderingElement | $element | |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 418 of file class.ilAssOrderingElementList.php.
References fetchIdentifier(), and getQuestionId().
Referenced by ensureValidIdentifier(), and registerIdentifiers().
|
protected |
ilAssOrderingElement | $element |
Definition at line 407 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 696 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 726 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::rewind | ( | ) |
Definition at line 816 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 525 of file class.ilAssOrderingElementList.php.
Referenced by buildRandomIdentifier().
|
protected |
string | $randomIdentifier |
ilTestQuestionPoolException |
Definition at line 536 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
|
protected |
string | $identifierType |
ilTestQuestionPoolException |
Definition at line 514 of file class.ilAssOrderingElementList.php.
Referenced by buildIdentifier(), fetchIdentifier(), isValidIdentifier(), and populateIdentifier().
|
protected |
array | $randomIdentifiers |
ilTestQuestionPoolException |
Definition at line 547 of file class.ilAssOrderingElementList.php.
Referenced by reorderByRandomIdentifiers().
ilAssOrderingElementList::valid | ( | ) |
Definition at line 811 of file class.ilAssOrderingElementList.php.
ilAssOrderingElementList::withElements | ( | array | $elements | ) |
ilAssOrderingElement[]; |
Definition at line 861 of file class.ilAssOrderingElementList.php.
References $elements.
Referenced by assOrderingQuestion\setOrderingElementList(), and assOrderingQuestionTest\testOrderingElementListMutation().
ilAssOrderingElementList::withQuestionId | ( | int | $question_id | ) |
Definition at line 868 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.