ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Protected Attributes | |
$db = null | |
$testOBJ = null | |
Private Member Functions | |
getOriginalTaxonomyFilterForDbValue () | |
get the original taxonomy filter for insert into the database More... | |
setOriginalTaxonomyFilterFromDbValue ($value) | |
get the original taxonomy filter from database value More... | |
getMappedTaxonomyFilterForDbValue () | |
get the original taxonomy filter for insert into the database More... | |
setMappedTaxonomyFilterFromDbValue ($value) | |
get the original taxonomy filter from database value More... | |
getTypeFilterForDbValue () | |
get the question type filter for insert into the database More... | |
setTypeFilterFromDbValue ($value) | |
get the question type filter from database value More... | |
updateDbRecord ($testId) | |
insertDbRecord ($testId) | |
Private Attributes | |
$id = null | |
$poolId = null | |
$poolRefId = null | |
$poolTitle = null | |
$poolPath = null | |
$poolQuestionCount = null | |
$originalTaxonomyFilter = array() | |
$mappedTaxonomyFilter = array() | |
$typeFilter = array() | |
$lifecycleFilter = array() | |
$questionAmount = null | |
$sequencePosition = null | |
Definition at line 10 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
ilTestRandomQuestionSetSourcePoolDefinition::__construct | ( | ilDBInterface | $db, |
ilObjTest | $testOBJ | ||
) |
Definition at line 74 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
ilTestRandomQuestionSetSourcePoolDefinition::cloneToDbForTestId | ( | $testId | ) |
Definition at line 416 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References insertDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::deleteFromDb | ( | ) |
Definition at line 421 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References getId().
ilTestRandomQuestionSetSourcePoolDefinition::getId | ( | ) |
Definition at line 85 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $id.
Referenced by ilTestRandomQuestionSetSourcePoolDefinitionList\addDefinition(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilTestRandomQuestionSetBuilder\buildSetQuestionCollection(), deleteFromDb(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\fetchOrderNumberParameter(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\fetchQuestionAmountParameter(), ilTestRandomQuestionsQuantitiesDistribution\getAvailableSharedQuestionAmount(), ilTestRandomQuestionsQuantitiesDistribution\getExclusiveQuestionAmount(), ilTestRandomQuestionsQuantitiesDistribution\getIntersectionQstCollectionByDefinitionMap(), ilTestRandomQuestionsQuantitiesDistribution\getIntersectionSharingDefinitionList(), ilTestRandomQuestionsQuantitiesDistribution\getRequiredSharedQuestionAmount(), ilTestRandomQuestionsQuantitiesDistribution\getSrcPoolDefRelatedQuestionAmount(), saveToDb(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getLifecycleFilter | ( | ) |
Definition at line 263 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $lifecycleFilter.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), and ilTestRandomQuestionSetBuilder\getQuestionIdsForSourcePoolDefinitionIds().
ilTestRandomQuestionSetSourcePoolDefinition::getLifecycleFilterForDbValue | ( | ) |
Definition at line 279 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getMappedTaxonomyFilter | ( | ) |
get the mapped taxonomy filter conditions
Definition at line 183 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $mappedTaxonomyFilter.
Referenced by ilLOUtils\buildQplTitleByDefinition(), ilTestRandomQuestionSetBuilder\getQuestionIdsForSourcePoolDefinitionIds(), and ilTestRandomQuestionSetBuilder\hasTaxonomyFilter().
|
private |
get the original taxonomy filter for insert into the database
Definition at line 201 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getOriginalTaxonomyFilter | ( | ) |
get the original taxonomy filter conditions
Definition at line 145 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $originalTaxonomyFilter.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build().
|
private |
get the original taxonomy filter for insert into the database
Definition at line 163 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolId | ( | ) |
Definition at line 95 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolId.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilTestRandomQuestionSetBuilder\getQuestionIdsForSourcePoolDefinitionIds(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolInfoLabel | ( | ilLanguage | $lng | ) |
Definition at line 497 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References ilObject\_lookupObjId(), getPoolPath(), getPoolQuestionCount(), getPoolRefId(), getPoolTitle(), and ilLanguage\txt().
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolPath | ( | ) |
Definition at line 125 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolPath.
Referenced by getPoolInfoLabel(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolQuestionCount | ( | ) |
Definition at line 135 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolQuestionCount.
Referenced by getPoolInfoLabel(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolRefId | ( | ) |
Definition at line 100 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolRefId.
Referenced by getPoolInfoLabel(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolTitle | ( | ) |
Definition at line 115 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolTitle.
Referenced by ilLOUtils\buildQplTitleByDefinition(), getPoolInfoLabel(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getQuestionAmount | ( | ) |
Definition at line 340 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $questionAmount.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilTestRandomQuestionsQuantitiesDistribution\getRequiredSharedQuestionAmount(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getSequencePosition | ( | ) |
Definition at line 350 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $sequencePosition.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getTypeFilter | ( | ) |
Definition at line 237 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $typeFilter.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilLOUtils\buildQplTitleByDefinition(), ilTestRandomQuestionSetBuilder\getQuestionIdsForSourcePoolDefinitionIds(), and ilTestRandomQuestionSetBuilder\hasTypeFilter().
|
private |
get the question type filter for insert into the database
Definition at line 246 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::initFromArray | ( | $dataArray | ) |
array | $dataArray |
Definition at line 360 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References setId(), setLifecycleFilterFromDbValue(), setMappedTaxonomyFilterFromDbValue(), setOriginalTaxonomyFilterFromDbValue(), setPoolId(), setPoolPath(), setPoolQuestionCount(), setPoolRefId(), setPoolTitle(), setQuestionAmount(), setSequencePosition(), and setTypeFilterFromDbValue().
Referenced by loadFromDb().
|
private |
$testId |
Definition at line 466 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References getLifecycleFilterForDbValue(), getMappedTaxonomyFilterForDbValue(), getOriginalTaxonomyFilterForDbValue(), getPoolId(), getPoolPath(), getPoolQuestionCount(), getPoolRefId(), getPoolTitle(), getQuestionAmount(), getSequencePosition(), getTypeFilterForDbValue(), and setId().
Referenced by cloneToDbForTestId(), and saveToDb().
ilTestRandomQuestionSetSourcePoolDefinition::loadFromDb | ( | $id | ) |
integer | $poolId |
Definition at line 390 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $id, $res, and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::mapTaxonomyFilter | ( | ilQuestionPoolDuplicatedTaxonomiesKeysMap | $taxonomiesKeysMap | ) |
set the mapped taxonomy filter from original by applying a keys map
ilQuestionPoolDuplicatedTaxonomiesKeysMap | $taxonomiesKeysMap |
Definition at line 220 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References ilQuestionPoolDuplicatedTaxonomiesKeysMap\getMappedTaxNodeId(), and ilQuestionPoolDuplicatedTaxonomiesKeysMap\getMappedTaxonomyId().
ilTestRandomQuestionSetSourcePoolDefinition::saveToDb | ( | ) |
Definition at line 407 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References getId(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::setId | ( | $id | ) |
Definition at line 80 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $id.
Referenced by initFromArray(), and insertDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::setLifecycleFilter | ( | $lifecycleFilter | ) |
array | $lifecycleFilter |
Definition at line 271 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $lifecycleFilter.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit().
ilTestRandomQuestionSetSourcePoolDefinition::setLifecycleFilterFromDbValue | ( | $dbValue | ) |
null|string | serialized lifecycle filter |
Definition at line 287 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setMappedTaxonomyFilter | ( | $filter = array() | ) |
set the original taxonomy filter condition
array | taxId => [nodeId, ...] |
Definition at line 192 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition().
|
private |
get the original taxonomy filter from database value
null|string | serialized taxonomy filter |
Definition at line 210 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setOriginalTaxonomyFilter | ( | $filter = array() | ) |
set the original taxonomy filter condition
array | taxId => [nodeId, ...] |
Definition at line 154 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit().
|
private |
get the original taxonomy filter from database value
null|string | serialized taxonomy filter |
Definition at line 173 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolId | ( | $poolId | ) |
Definition at line 90 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolId.
Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolPath | ( | $poolPath | ) |
Definition at line 120 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolPath.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolQuestionCount | ( | $poolQuestionCount | ) |
Definition at line 130 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolQuestionCount.
Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolRefId | ( | ?int | $poolRefId | ) |
Definition at line 105 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolRefId.
Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolTitle | ( | $poolTitle | ) |
Definition at line 110 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolTitle.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setQuestionAmount | ( | $questionAmount | ) |
Definition at line 335 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $questionAmount.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit(), ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setSequencePosition | ( | $sequencePosition | ) |
Definition at line 345 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $sequencePosition.
Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setTypeFilter | ( | $typeFilter = array() | ) |
Definition at line 232 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $typeFilter.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit().
|
private |
get the question type filter from database value
null|string | serialized type filter |
Definition at line 255 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by initFromArray().
|
private |
$testId |
Definition at line 433 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References getId(), getLifecycleFilterForDbValue(), getMappedTaxonomyFilterForDbValue(), getOriginalTaxonomyFilterForDbValue(), getPoolId(), getPoolPath(), getPoolQuestionCount(), getPoolRefId(), getPoolTitle(), getQuestionAmount(), getSequencePosition(), and getTypeFilterForDbValue().
Referenced by saveToDb().
|
protected |
Definition at line 17 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by __construct().
|
private |
Definition at line 26 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getId(), loadFromDb(), and setId().
|
private |
Definition at line 68 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getLifecycleFilter(), and setLifecycleFilter().
|
private |
Definition at line 56 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getMappedTaxonomyFilter().
|
private |
Definition at line 51 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getOriginalTaxonomyFilter().
|
private |
Definition at line 28 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getPoolId(), and setPoolId().
|
private |
Definition at line 35 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getPoolPath(), and setPoolPath().
|
private |
Definition at line 37 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getPoolQuestionCount(), and setPoolQuestionCount().
|
private |
Definition at line 31 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getPoolRefId(), and setPoolRefId().
|
private |
Definition at line 33 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getPoolTitle(), and setPoolTitle().
|
private |
Definition at line 70 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getQuestionAmount(), and setQuestionAmount().
|
private |
Definition at line 72 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getSequencePosition(), and setSequencePosition().
|
protected |
Definition at line 24 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by __construct().
|
private |
Definition at line 61 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getTypeFilter(), and setTypeFilter().