ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTestRandomQuestionSetSourcePoolDefinition Class Reference
+ Collaboration diagram for ilTestRandomQuestionSetSourcePoolDefinition:

Public Member Functions

 __construct (ilDBInterface $db, ilObjTest $testOBJ)
 
 setId ($id)
 
 getId ()
 
 setPoolId ($poolId)
 
 getPoolId ()
 
 getPoolRefId ()
 
 setPoolRefId (?int $poolRefId)
 
 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
 
 $poolRefId = null
 
 $poolTitle = null
 
 $poolPath = null
 
 $poolQuestionCount = null
 
 $originalTaxonomyFilter = array()
 
 $mappedTaxonomyFilter = array()
 
 $typeFilter = array()
 
 $questionAmount = null
 
 $sequencePosition = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTestRandomQuestionSetSourcePoolDefinition::__construct ( ilDBInterface  $db,
ilObjTest  $testOBJ 
)

Member Function Documentation

◆ cloneToDbForTestId()

ilTestRandomQuestionSetSourcePoolDefinition::cloneToDbForTestId (   $testId)

Definition at line 377 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

References insertDbRecord().

+ Here is the call graph for this function:

◆ deleteFromDb()

ilTestRandomQuestionSetSourcePoolDefinition::deleteFromDb ( )

Definition at line 382 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

383 {
384 $this->db->manipulateF(
385 "DELETE FROM tst_rnd_quest_set_qpls WHERE def_id = %s",
386 array('integer'),
387 array($this->getId())
388 );
389 }

References getId().

+ Here is the call graph for this function:

◆ getId()

◆ getMappedTaxonomyFilter()

ilTestRandomQuestionSetSourcePoolDefinition::getMappedTaxonomyFilter ( )

get the mapped taxonomy filter conditions

Returns
array taxId => [nodeId, ...]

Definition at line 178 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

References $mappedTaxonomyFilter.

Referenced by ilTestRandomQuestionSetBuilder\getQuestionIdsForSourcePoolDefinitionIds(), and ilTestRandomQuestionSetBuilder\hasTaxonomyFilter().

+ Here is the caller graph for this function:

◆ getMappedTaxonomyFilterForDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::getMappedTaxonomyFilterForDbValue ( )
private

get the original taxonomy filter for insert into the database

Returns
null|string serialized taxonomy filter

Definition at line 196 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

197 {
198 return empty($this->mappedTaxonomyFilter) ? null : serialize($this->mappedTaxonomyFilter);
199 }

Referenced by insertDbRecord(), and updateDbRecord().

+ Here is the caller graph for this function:

◆ getOriginalTaxonomyFilter()

ilTestRandomQuestionSetSourcePoolDefinition::getOriginalTaxonomyFilter ( )

get the original taxonomy filter conditions

Returns
array taxId => [nodeId, ...]

Definition at line 140 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

References $originalTaxonomyFilter.

Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build().

+ Here is the caller graph for this function:

◆ getOriginalTaxonomyFilterForDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::getOriginalTaxonomyFilterForDbValue ( )
private

get the original taxonomy filter for insert into the database

Returns
null|string serialized taxonomy filter

Definition at line 158 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

159 {
160 // TODO-RND2017: migrate to separate table for common selections by e.g. statistics
161 return empty($this->originalTaxonomyFilter) ? null : serialize($this->originalTaxonomyFilter);
162 }

Referenced by insertDbRecord(), and updateDbRecord().

+ Here is the caller graph for this function:

◆ getPoolId()

◆ getPoolInfoLabel()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolInfoLabel ( ilLanguage  $lng)

Definition at line 456 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

457 {
458 $pool_path = $this->getPoolPath();
459 if (is_int($this->getPoolRefId()) && ilObject::_lookupObjId($this->getPoolRefId())) {
460 $path = new ilPathGUI();
461 $path->enableTextOnly(true);
462 $pool_path = $path->getPath(ROOT_FOLDER_ID, $this->getPoolRefId());
463 }
464
465 $poolInfoLabel = sprintf(
466 $lng->txt('tst_dynamic_question_set_source_questionpool_summary_string'),
467 $this->getPoolTitle(),
468 $pool_path,
469 $this->getPoolQuestionCount()
470 );
471
472 return $poolInfoLabel;
473 }
$path
Definition: aliased.php:25
static _lookupObjId($a_id)
Creates a path for a start and endnode.
$lng

References $lng, $path, ilObject\_lookupObjId(), getPoolPath(), and getPoolRefId().

Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\build().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPoolPath()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolPath ( )

◆ getPoolQuestionCount()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolQuestionCount ( )

Definition at line 130 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

References $poolQuestionCount.

Referenced by insertDbRecord(), and updateDbRecord().

+ Here is the caller graph for this function:

◆ getPoolRefId()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolRefId ( )

Definition at line 95 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

References $poolRefId.

Referenced by getPoolInfoLabel(), insertDbRecord(), and updateDbRecord().

+ Here is the caller graph for this function:

◆ getPoolTitle()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolTitle ( )

Definition at line 110 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

References $poolTitle.

Referenced by insertDbRecord(), and updateDbRecord().

+ Here is the caller graph for this function:

◆ getQuestionAmount()

◆ getSequencePosition()

ilTestRandomQuestionSetSourcePoolDefinition::getSequencePosition ( )

Definition at line 312 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

References $sequencePosition.

Referenced by insertDbRecord(), and updateDbRecord().

+ Here is the caller graph for this function:

◆ getTypeFilter()

◆ getTypeFilterForDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::getTypeFilterForDbValue ( )
private

get the question type filter for insert into the database

Returns
null|string serialized type filter

Definition at line 241 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

242 {
243 return empty($this->typeFilter) ? null : serialize($this->typeFilter);
244 }

Referenced by insertDbRecord(), and updateDbRecord().

+ Here is the caller graph for this function:

◆ initFromArray()

ilTestRandomQuestionSetSourcePoolDefinition::initFromArray (   $dataArray)
Parameters
array$dataArray

Definition at line 322 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

323 {
324 foreach ($dataArray as $field => $value) {
325 switch ($field) {
326 case 'def_id': $this->setId($value); break;
327 case 'pool_fi': $this->setPoolId($value); break;
328 case 'pool_ref_id': $this->setPoolRefId($value ? (int) $value : null); break;
329 case 'pool_title': $this->setPoolTitle($value); break;
330 case 'pool_path': $this->setPoolPath($value); break;
331 case 'pool_quest_count': $this->setPoolQuestionCount($value); break;
332 // fau: taxFilter - use new db fields
333 #case 'origin_tax_fi': $this->setOriginalFilterTaxId($value); break;
334 #case 'origin_node_fi': $this->setOriginalFilterTaxNodeId($value); break;
335 #case 'mapped_tax_fi': $this->setMappedFilterTaxId($value); break;
336 #case 'mapped_node_fi': $this->setMappedFilterTaxNodeId($value); break;
337 case 'origin_tax_filter': $this->setOriginalTaxonomyFilterFromDbValue($value); break;
338 case 'mapped_tax_filter': $this->setMappedTaxonomyFilterFromDbValue($value); break;
339 case 'type_filter': $this->setTypeFilterFromDbValue($value); break;
340 // fau.
341 case 'quest_amount': $this->setQuestionAmount($value); break;
342 case 'sequence_pos': $this->setSequencePosition($value); break;
343 }
344 }
345 }
setTypeFilterFromDbValue($value)
get the question type filter from database value
setOriginalTaxonomyFilterFromDbValue($value)
get the original taxonomy filter from database value
setMappedTaxonomyFilterFromDbValue($value)
get the original taxonomy filter from database value

References setId(), setMappedTaxonomyFilterFromDbValue(), setOriginalTaxonomyFilterFromDbValue(), setPoolId(), setPoolPath(), setPoolQuestionCount(), setPoolRefId(), setPoolTitle(), setQuestionAmount(), setSequencePosition(), and setTypeFilterFromDbValue().

Referenced by loadFromDb().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertDbRecord()

ilTestRandomQuestionSetSourcePoolDefinition::insertDbRecord (   $testId)
private
Parameters
$testId

Definition at line 426 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

427 {
428 $nextId = $this->db->nextId('tst_rnd_quest_set_qpls');
429
430 $this->db->insert('tst_rnd_quest_set_qpls', array(
431 'def_id' => array('integer', $nextId),
432 'test_fi' => array('integer', $testId),
433 'pool_fi' => array('integer', $this->getPoolId()),
434 'pool_ref_id' => array('integer', $this->getPoolRefId()),
435 'pool_title' => array('text', $this->getPoolTitle()),
436 'pool_path' => array('text', $this->getPoolPath()),
437 'pool_quest_count' => array('integer', $this->getPoolQuestionCount()),
438 // fau: taxFilter/typeFilter - use new db fields
439 #'origin_tax_fi' => array('integer', $this->getOriginalFilterTaxId()),
440 #'origin_node_fi' => array('integer', $this->getOriginalFilterTaxNodeId()),
441 #'mapped_tax_fi' => array('integer', $this->getMappedFilterTaxId()),
442 #'mapped_node_fi' => array('integer', $this->getMappedFilterTaxNodeId()),
443 'origin_tax_filter' => array('text', $this->getOriginalTaxonomyFilterForDbValue()),
444 'mapped_tax_filter' => array('text', $this->getMappedTaxonomyFilterForDbValue()),
445 'type_filter' => array('text', $this->getTypeFilterForDbValue()),
446 // fau.
447 'quest_amount' => array('integer', $this->getQuestionAmount()),
448 'sequence_pos' => array('integer', $this->getSequencePosition())
449 ));
450
451 $this->setId($nextId);
452 }
getOriginalTaxonomyFilterForDbValue()
get the original taxonomy filter for insert into the database
getMappedTaxonomyFilterForDbValue()
get the original taxonomy filter for insert into the database
getTypeFilterForDbValue()
get the question type filter for insert into the database

References getMappedTaxonomyFilterForDbValue(), getOriginalTaxonomyFilterForDbValue(), getPoolId(), getPoolPath(), getPoolQuestionCount(), getPoolRefId(), getPoolTitle(), getQuestionAmount(), getSequencePosition(), getTypeFilterForDbValue(), and setId().

Referenced by cloneToDbForTestId(), and saveToDb().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadFromDb()

ilTestRandomQuestionSetSourcePoolDefinition::loadFromDb (   $id)
Parameters
integer$poolId
Returns
boolean

Definition at line 351 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

352 {
353 $res = $this->db->queryF(
354 "SELECT * FROM tst_rnd_quest_set_qpls WHERE def_id = %s",
355 array('integer'),
356 array($id)
357 );
358
359 while ($row = $this->db->fetchAssoc($res)) {
360 $this->initFromArray($row);
361
362 return true;
363 }
364
365 return false;
366 }
$row
foreach($_POST as $key=> $value) $res

References $id, $res, $row, and initFromArray().

+ Here is the call graph for this function:

◆ mapTaxonomyFilter()

ilTestRandomQuestionSetSourcePoolDefinition::mapTaxonomyFilter ( ilQuestionPoolDuplicatedTaxonomiesKeysMap  $taxonomiesKeysMap)

set the mapped taxonomy filter from original by applying a keys map

Parameters
ilQuestionPoolDuplicatedTaxonomiesKeysMap$taxonomiesKeysMap

Definition at line 215 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

216 {
217 $this->mappedTaxonomyFilter = array();
218 foreach ($this->originalTaxonomyFilter as $taxId => $nodeIds) {
219 $mappedNodeIds = array();
220 foreach ($nodeIds as $nodeId) {
221 $mappedNodeIds[] = $taxonomiesKeysMap->getMappedTaxNodeId($nodeId);
222 }
223 $this->mappedTaxonomyFilter[$taxonomiesKeysMap->getMappedTaxonomyId($taxId)] = $mappedNodeIds;
224 }
225 }

References ilQuestionPoolDuplicatedTaxonomiesKeysMap\getMappedTaxNodeId(), and ilQuestionPoolDuplicatedTaxonomiesKeysMap\getMappedTaxonomyId().

+ Here is the call graph for this function:

◆ saveToDb()

ilTestRandomQuestionSetSourcePoolDefinition::saveToDb ( )

Definition at line 368 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

369 {
370 if ($this->getId()) {
371 $this->updateDbRecord($this->testOBJ->getTestId());
372 } else {
373 $this->insertDbRecord($this->testOBJ->getTestId());
374 }
375 }

References getId(), insertDbRecord(), and updateDbRecord().

+ Here is the call graph for this function:

◆ setId()

ilTestRandomQuestionSetSourcePoolDefinition::setId (   $id)

Definition at line 75 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

76 {
77 $this->id = $id;
78 }

References $id.

Referenced by initFromArray(), and insertDbRecord().

+ Here is the caller graph for this function:

◆ setMappedTaxonomyFilter()

ilTestRandomQuestionSetSourcePoolDefinition::setMappedTaxonomyFilter (   $filter = array())

set the original taxonomy filter condition

Parameters
arraytaxId => [nodeId, ...]

Definition at line 187 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

188 {
189 $this->mappedTaxonomyFilter = $filter;
190 }

Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition().

+ Here is the caller graph for this function:

◆ setMappedTaxonomyFilterFromDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::setMappedTaxonomyFilterFromDbValue (   $value)
private

get the original taxonomy filter from database value

Parameters
null|stringserialized taxonomy filter

Definition at line 205 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

206 {
207 $this->mappedTaxonomyFilter = empty($value) ? array() : unserialize($value);
208 }

Referenced by initFromArray().

+ Here is the caller graph for this function:

◆ setOriginalTaxonomyFilter()

ilTestRandomQuestionSetSourcePoolDefinition::setOriginalTaxonomyFilter (   $filter = array())

set the original taxonomy filter condition

Parameters
arraytaxId => [nodeId, ...]

Definition at line 149 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

150 {
151 $this->originalTaxonomyFilter = $filter;
152 }

Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit().

+ Here is the caller graph for this function:

◆ setOriginalTaxonomyFilterFromDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::setOriginalTaxonomyFilterFromDbValue (   $value)
private

get the original taxonomy filter from database value

Parameters
null|stringserialized taxonomy filter

Definition at line 168 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

169 {
170 // TODO-RND2017: migrate to separate table for common selections by e.g. statistics
171 $this->originalTaxonomyFilter = empty($value) ? array() : unserialize($value);
172 }

Referenced by initFromArray().

+ Here is the caller graph for this function:

◆ setPoolId()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolId (   $poolId)

Definition at line 85 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

86 {
87 $this->poolId = $poolId;
88 }

References $poolId.

Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().

+ Here is the caller graph for this function:

◆ setPoolPath()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolPath (   $poolPath)

Definition at line 115 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

116 {
117 $this->poolPath = $poolPath;
118 }

References $poolPath.

Referenced by initFromArray().

+ Here is the caller graph for this function:

◆ setPoolQuestionCount()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolQuestionCount (   $poolQuestionCount)

Definition at line 125 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

126 {
127 $this->poolQuestionCount = $poolQuestionCount;
128 }

References $poolQuestionCount.

Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().

+ Here is the caller graph for this function:

◆ setPoolRefId()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolRefId ( ?int  $poolRefId)

Definition at line 100 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

100 : void
101 {
102 $this->poolRefId = $poolRefId;
103 }

References $poolRefId.

Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().

+ Here is the caller graph for this function:

◆ setPoolTitle()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolTitle (   $poolTitle)

Definition at line 105 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

106 {
107 $this->poolTitle = $poolTitle;
108 }

References $poolTitle.

Referenced by initFromArray().

+ Here is the caller graph for this function:

◆ setQuestionAmount()

ilTestRandomQuestionSetSourcePoolDefinition::setQuestionAmount (   $questionAmount)

Definition at line 297 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

298 {
299 $this->questionAmount = $questionAmount;
300 }

References $questionAmount.

Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit(), ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().

+ Here is the caller graph for this function:

◆ setSequencePosition()

ilTestRandomQuestionSetSourcePoolDefinition::setSequencePosition (   $sequencePosition)

Definition at line 307 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

308 {
309 $this->sequencePosition = $sequencePosition;
310 }

References $sequencePosition.

Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), and initFromArray().

+ Here is the caller graph for this function:

◆ setTypeFilter()

ilTestRandomQuestionSetSourcePoolDefinition::setTypeFilter (   $typeFilter = array())

Definition at line 227 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

228 {
229 $this->typeFilter = $typeFilter;
230 }

References $typeFilter.

Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit().

+ Here is the caller graph for this function:

◆ setTypeFilterFromDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::setTypeFilterFromDbValue (   $value)
private

get the question type filter from database value

Parameters
null|stringserialized type filter

Definition at line 250 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

251 {
252 $this->typeFilter = empty($value) ? array() : unserialize($value);
253 }

Referenced by initFromArray().

+ Here is the caller graph for this function:

◆ updateDbRecord()

ilTestRandomQuestionSetSourcePoolDefinition::updateDbRecord (   $testId)
private
Parameters
$testId

Definition at line 394 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

395 {
396 $this->db->update(
397 'tst_rnd_quest_set_qpls',
398 array(
399 'test_fi' => array('integer', $testId),
400 'pool_fi' => array('integer', $this->getPoolId()),
401 'pool_ref_id' => array('integer', $this->getPoolRefId()),
402 'pool_title' => array('text', $this->getPoolTitle()),
403 'pool_path' => array('text', $this->getPoolPath()),
404 'pool_quest_count' => array('integer', $this->getPoolQuestionCount()),
405 // fau: taxFilter/typeFilter - use new db fields
406 #'origin_tax_fi' => array('integer', $this->getOriginalFilterTaxId()),
407 #'origin_node_fi' => array('integer', $this->getOriginalFilterTaxNodeId()),
408 #'mapped_tax_fi' => array('integer', $this->getMappedFilterTaxId()),
409 #'mapped_node_fi' => array('integer', $this->getMappedFilterTaxNodeId()),
410 'origin_tax_filter' => array('text', $this->getOriginalTaxonomyFilterForDbValue()),
411 'mapped_tax_filter' => array('text', $this->getMappedTaxonomyFilterForDbValue()),
412 'type_filter' => array('text', $this->getTypeFilterForDbValue()),
413 // fau.
414 'quest_amount' => array('integer', $this->getQuestionAmount()),
415 'sequence_pos' => array('integer', $this->getSequencePosition())
416 ),
417 array(
418 'def_id' => array('integer', $this->getId())
419 )
420 );
421 }

References getId(), getMappedTaxonomyFilterForDbValue(), getOriginalTaxonomyFilterForDbValue(), getPoolId(), getPoolPath(), getPoolQuestionCount(), getPoolRefId(), getPoolTitle(), getQuestionAmount(), getSequencePosition(), and getTypeFilterForDbValue().

Referenced by saveToDb().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $db

ilTestRandomQuestionSetSourcePoolDefinition::$db = null
protected

Definition at line 17 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by __construct().

◆ $id

ilTestRandomQuestionSetSourcePoolDefinition::$id = null
private

Definition at line 26 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by getId(), loadFromDb(), and setId().

◆ $mappedTaxonomyFilter

ilTestRandomQuestionSetSourcePoolDefinition::$mappedTaxonomyFilter = array()
private

◆ $originalTaxonomyFilter

ilTestRandomQuestionSetSourcePoolDefinition::$originalTaxonomyFilter = array()
private

◆ $poolId

ilTestRandomQuestionSetSourcePoolDefinition::$poolId = null
private

Definition at line 28 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by getPoolId(), and setPoolId().

◆ $poolPath

ilTestRandomQuestionSetSourcePoolDefinition::$poolPath = null
private

◆ $poolQuestionCount

ilTestRandomQuestionSetSourcePoolDefinition::$poolQuestionCount = null
private

◆ $poolRefId

ilTestRandomQuestionSetSourcePoolDefinition::$poolRefId = null
private

◆ $poolTitle

ilTestRandomQuestionSetSourcePoolDefinition::$poolTitle = null
private

◆ $questionAmount

ilTestRandomQuestionSetSourcePoolDefinition::$questionAmount = null
private

◆ $sequencePosition

ilTestRandomQuestionSetSourcePoolDefinition::$sequencePosition = null
private

◆ $testOBJ

ilTestRandomQuestionSetSourcePoolDefinition::$testOBJ = null
protected

Definition at line 24 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by __construct().

◆ $typeFilter

ilTestRandomQuestionSetSourcePoolDefinition::$typeFilter = array()
private

The documentation for this class was generated from the following file: