ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (ilDBInterface $db, ilObjTest $testOBJ) | |
setId ($id) | |
getId () | |
setPoolId ($poolId) | |
getPoolId () | |
setPoolTitle ($poolTitle) | |
getPoolTitle () | |
setPoolPath ($poolPath) | |
getPoolPath () | |
setPoolQuestionCount ($poolQuestionCount) | |
getPoolQuestionCount () | |
getOriginalTaxonomyFilter () | |
get the original taxonomy filter conditions More... | |
setOriginalTaxonomyFilter ($filter=array()) | |
set the original taxonomy filter condition More... | |
getMappedTaxonomyFilter () | |
get the mapped taxonomy filter conditions More... | |
setMappedTaxonomyFilter ($filter=array()) | |
set the original taxonomy filter condition More... | |
mapTaxonomyFilter (ilQuestionPoolDuplicatedTaxonomiesKeysMap $taxonomiesKeysMap) | |
set the mapped taxonomy filter from original by applying a keys map More... | |
setTypeFilter ($typeFilter=array()) | |
getTypeFilter () | |
setQuestionAmount ($questionAmount) | |
getQuestionAmount () | |
setSequencePosition ($sequencePosition) | |
getSequencePosition () | |
initFromArray ($dataArray) | |
loadFromDb ($id) | |
saveToDb () | |
cloneToDbForTestId ($testId) | |
deleteFromDb () | |
getPoolInfoLabel (ilLanguage $lng) | |
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 | |
$poolTitle = null | |
$poolPath = null | |
$poolQuestionCount = null | |
$originalTaxonomyFilter = array() | |
$mappedTaxonomyFilter = array() | |
$typeFilter = array() | |
$questionAmount = null | |
$sequencePosition = null | |
Definition at line 10 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
ilTestRandomQuestionSetSourcePoolDefinition::__construct | ( | ilDBInterface | $db, |
ilObjTest | $testOBJ | ||
) |
Definition at line 66 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
ilTestRandomQuestionSetSourcePoolDefinition::cloneToDbForTestId | ( | $testId | ) |
Definition at line 363 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References insertDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::deleteFromDb | ( | ) |
Definition at line 368 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References array, and getId().
ilTestRandomQuestionSetSourcePoolDefinition::getId | ( | ) |
Definition at line 77 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::getMappedTaxonomyFilter | ( | ) |
get the mapped taxonomy filter conditions
Definition at line 165 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 183 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getOriginalTaxonomyFilter | ( | ) |
get the original taxonomy filter conditions
Definition at line 127 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 145 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolId | ( | ) |
Definition at line 87 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolId.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilTestRandomQuestionSetBuilder\getQuestionIdsForSourcePoolDefinitionIds(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolInfoLabel | ( | ilLanguage | $lng | ) |
Definition at line 440 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References getPoolPath(), getPoolQuestionCount(), getPoolTitle(), and ilLanguage\txt().
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolPath | ( | ) |
Definition at line 107 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolPath.
Referenced by getPoolInfoLabel(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolQuestionCount | ( | ) |
Definition at line 117 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolQuestionCount.
Referenced by getPoolInfoLabel(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getPoolTitle | ( | ) |
Definition at line 97 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolTitle.
Referenced by ilLOUtils\buildQplTitleByDefinition(), getPoolInfoLabel(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getQuestionAmount | ( | ) |
Definition at line 289 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $questionAmount.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilTestRandomQuestionsQuantitiesDistribution\getRequiredSharedQuestionAmount(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getSequencePosition | ( | ) |
Definition at line 299 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $sequencePosition.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::getTypeFilter | ( | ) |
Definition at line 219 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 228 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::initFromArray | ( | $dataArray | ) |
array | $dataArray |
Definition at line 309 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $dataArray, setId(), setMappedTaxonomyFilterFromDbValue(), setOriginalTaxonomyFilterFromDbValue(), setPoolId(), setPoolPath(), setPoolQuestionCount(), setPoolTitle(), setQuestionAmount(), setSequencePosition(), and setTypeFilterFromDbValue().
Referenced by loadFromDb().
|
private |
$testId |
Definition at line 411 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References array, getMappedTaxonomyFilterForDbValue(), getOriginalTaxonomyFilterForDbValue(), getPoolId(), getPoolPath(), getPoolQuestionCount(), getPoolTitle(), getQuestionAmount(), getSequencePosition(), getTypeFilterForDbValue(), and setId().
Referenced by cloneToDbForTestId(), and saveToDb().
ilTestRandomQuestionSetSourcePoolDefinition::loadFromDb | ( | $id | ) |
integer | $poolId |
Definition at line 337 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $id, $res, $row, array, and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::mapTaxonomyFilter | ( | ilQuestionPoolDuplicatedTaxonomiesKeysMap | $taxonomiesKeysMap | ) |
set the mapped taxonomy filter from original by applying a keys map
ilQuestionPoolDuplicatedTaxonomiesKeysMap | $taxonomiesKeysMap |
Definition at line 202 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References array, ilQuestionPoolDuplicatedTaxonomiesKeysMap\getMappedTaxNodeId(), and ilQuestionPoolDuplicatedTaxonomiesKeysMap\getMappedTaxonomyId().
ilTestRandomQuestionSetSourcePoolDefinition::saveToDb | ( | ) |
Definition at line 354 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References getId(), insertDbRecord(), and updateDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::setId | ( | $id | ) |
Definition at line 72 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $id.
Referenced by initFromArray(), and insertDbRecord().
ilTestRandomQuestionSetSourcePoolDefinition::setMappedTaxonomyFilter | ( | $filter = array() | ) |
set the original taxonomy filter condition
array | taxId => [nodeId, ...] |
Definition at line 174 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 192 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References array.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setOriginalTaxonomyFilter | ( | $filter = array() | ) |
set the original taxonomy filter condition
array | taxId => [nodeId, ...] |
Definition at line 136 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 155 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References array.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolId | ( | $poolId | ) |
Definition at line 82 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolId.
Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolPath | ( | $poolPath | ) |
Definition at line 102 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolPath.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolQuestionCount | ( | $poolQuestionCount | ) |
Definition at line 112 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolQuestionCount.
Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setPoolTitle | ( | $poolTitle | ) |
Definition at line 92 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $poolTitle.
Referenced by initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setQuestionAmount | ( | $questionAmount | ) |
Definition at line 284 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $questionAmount.
Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit(), ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setSequencePosition | ( | $sequencePosition | ) |
Definition at line 294 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References $sequencePosition.
Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().
ilTestRandomQuestionSetSourcePoolDefinition::setTypeFilter | ( | $typeFilter = array() | ) |
Definition at line 214 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 237 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References array.
Referenced by initFromArray().
|
private |
$testId |
Definition at line 380 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
References array, getId(), getMappedTaxonomyFilterForDbValue(), getOriginalTaxonomyFilterForDbValue(), getPoolId(), getPoolPath(), getPoolQuestionCount(), 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 53 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getMappedTaxonomyFilter().
|
private |
Definition at line 48 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 32 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getPoolPath(), and setPoolPath().
|
private |
Definition at line 34 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getPoolQuestionCount(), and setPoolQuestionCount().
|
private |
Definition at line 30 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getPoolTitle(), and setPoolTitle().
|
private |
Definition at line 62 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getQuestionAmount(), and setQuestionAmount().
|
private |
Definition at line 64 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 58 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.
Referenced by getTypeFilter(), and setTypeFilter().