ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 
 getLifecycleFilter ()
 
 setLifecycleFilter ($lifecycleFilter)
 
 getLifecycleFilterForDbValue ()
 
 setLifecycleFilterFromDbValue ($dbValue)
 
 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()
 
 $lifecycleFilter = 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 416 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

References insertDbRecord().

+ Here is the call graph for this function:

◆ deleteFromDb()

ilTestRandomQuestionSetSourcePoolDefinition::deleteFromDb ( )

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

References getId().

422  {
423  $this->db->manipulateF(
424  "DELETE FROM tst_rnd_quest_set_qpls WHERE def_id = %s",
425  array('integer'),
426  array($this->getId())
427  );
428  }
+ Here is the call graph for this function:

◆ getId()

◆ getLifecycleFilter()

ilTestRandomQuestionSetSourcePoolDefinition::getLifecycleFilter ( )

◆ getLifecycleFilterForDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::getLifecycleFilterForDbValue ( )
Returns
null|string serialized lifecycle filter

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

Referenced by insertDbRecord(), and updateDbRecord().

280  {
281  return empty($this->lifecycleFilter) ? null : serialize($this->lifecycleFilter);
282  }
+ Here is the caller graph for this function:

◆ getMappedTaxonomyFilter()

ilTestRandomQuestionSetSourcePoolDefinition::getMappedTaxonomyFilter ( )

◆ getMappedTaxonomyFilterForDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::getMappedTaxonomyFilterForDbValue ( )
private

get the original taxonomy filter for insert into the database

Returns
null|string serialized taxonomy filter

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

Referenced by insertDbRecord(), and updateDbRecord().

202  {
203  return empty($this->mappedTaxonomyFilter) ? null : serialize($this->mappedTaxonomyFilter);
204  }
+ Here is the caller graph for this function:

◆ getOriginalTaxonomyFilter()

ilTestRandomQuestionSetSourcePoolDefinition::getOriginalTaxonomyFilter ( )

get the original taxonomy filter conditions

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

Definition at line 145 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 163 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by insertDbRecord(), and updateDbRecord().

164  {
165  // TODO-RND2017: migrate to separate table for common selections by e.g. statistics
166  return empty($this->originalTaxonomyFilter) ? null : serialize($this->originalTaxonomyFilter);
167  }
+ Here is the caller graph for this function:

◆ getPoolId()

◆ getPoolInfoLabel()

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().

498  {
499  $pool_path = $this->getPoolPath();
500  if (is_int($this->getPoolRefId()) && ilObject::_lookupObjId($this->getPoolRefId())) {
501  $path = new ilPathGUI();
502  $path->enableTextOnly(true);
503  $pool_path = $path->getPath(ROOT_FOLDER_ID, $this->getPoolRefId());
504  }
505 
506  $poolInfoLabel = sprintf(
507  $lng->txt('tst_dynamic_question_set_source_questionpool_summary_string'),
508  $this->getPoolTitle(),
509  $pool_path,
510  $this->getPoolQuestionCount()
511  );
512 
513  return $poolInfoLabel;
514  }
Creates a path for a start and endnode.
static _lookupObjId($a_id)
txt($a_topic, $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPoolPath()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolPath ( )

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

References $poolPath.

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

+ Here is the caller graph for this function:

◆ getPoolQuestionCount()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolQuestionCount ( )

◆ getPoolRefId()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolRefId ( )

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

References $poolRefId.

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

+ Here is the caller graph for this function:

◆ getPoolTitle()

ilTestRandomQuestionSetSourcePoolDefinition::getPoolTitle ( )

◆ getQuestionAmount()

◆ getSequencePosition()

ilTestRandomQuestionSetSourcePoolDefinition::getSequencePosition ( )

Definition at line 350 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 246 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by insertDbRecord(), and updateDbRecord().

247  {
248  return empty($this->typeFilter) ? null : serialize($this->typeFilter);
249  }
+ Here is the caller graph for this function:

◆ initFromArray()

ilTestRandomQuestionSetSourcePoolDefinition::initFromArray (   $dataArray)
Parameters
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().

361  {
362  foreach ($dataArray as $field => $value) {
363  switch ($field) {
364  case 'def_id': $this->setId($value); break;
365  case 'pool_fi': $this->setPoolId($value); break;
366  case 'pool_ref_id': $this->setPoolRefId($value ? (int) $value : null); break;
367  case 'pool_title': $this->setPoolTitle($value); break;
368  case 'pool_path': $this->setPoolPath($value); break;
369  case 'pool_quest_count': $this->setPoolQuestionCount($value); break;
370  // fau: taxFilter - use new db fields
371  #case 'origin_tax_fi': $this->setOriginalFilterTaxId($value); break;
372  #case 'origin_node_fi': $this->setOriginalFilterTaxNodeId($value); break;
373  #case 'mapped_tax_fi': $this->setMappedFilterTaxId($value); break;
374  #case 'mapped_node_fi': $this->setMappedFilterTaxNodeId($value); break;
375  case 'origin_tax_filter': $this->setOriginalTaxonomyFilterFromDbValue($value); break;
376  case 'mapped_tax_filter': $this->setMappedTaxonomyFilterFromDbValue($value); break;
377  case 'type_filter': $this->setTypeFilterFromDbValue($value); break;
378  case 'lifecycle_filter': $this->setLifecycleFilterFromDbValue($value); break;
379  // fau.
380  case 'quest_amount': $this->setQuestionAmount($value); break;
381  case 'sequence_pos': $this->setSequencePosition($value); break;
382  }
383  }
384  }
setOriginalTaxonomyFilterFromDbValue($value)
get the original taxonomy filter from database value
setMappedTaxonomyFilterFromDbValue($value)
get the original taxonomy filter from database value
setTypeFilterFromDbValue($value)
get the question type filter from database value
+ 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 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().

467  {
468  $nextId = $this->db->nextId('tst_rnd_quest_set_qpls');
469 
470  $this->db->insert('tst_rnd_quest_set_qpls', array(
471  'def_id' => array('integer', $nextId),
472  'test_fi' => array('integer', $testId),
473  'pool_fi' => array('integer', $this->getPoolId()),
474  'pool_ref_id' => array('integer', $this->getPoolRefId()),
475  'pool_title' => array('text', $this->getPoolTitle()),
476  'pool_path' => array('text', $this->getPoolPath()),
477  'pool_quest_count' => array('integer', $this->getPoolQuestionCount()),
478  // fau: taxFilter/typeFilter - use new db fields
479  #'origin_tax_fi' => array('integer', $this->getOriginalFilterTaxId()),
480  #'origin_node_fi' => array('integer', $this->getOriginalFilterTaxNodeId()),
481  #'mapped_tax_fi' => array('integer', $this->getMappedFilterTaxId()),
482  #'mapped_node_fi' => array('integer', $this->getMappedFilterTaxNodeId()),
483  'origin_tax_filter' => array('text', $this->getOriginalTaxonomyFilterForDbValue()),
484  'mapped_tax_filter' => array('text', $this->getMappedTaxonomyFilterForDbValue()),
485  'type_filter' => array('text', $this->getTypeFilterForDbValue()),
486  'lifecycle_filter' => array('text', $this->getLifecycleFilterForDbValue()),
487  // fau.
488  'quest_amount' => array('integer', $this->getQuestionAmount()),
489  'sequence_pos' => array('integer', $this->getSequencePosition())
490  ));
491 
492  $this->setId($nextId);
493  }
getOriginalTaxonomyFilterForDbValue()
get the original taxonomy filter for insert into the database
getTypeFilterForDbValue()
get the question type filter for insert into the database
getMappedTaxonomyFilterForDbValue()
get the original taxonomy filter for insert into the database
+ 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 390 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

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

391  {
392  $res = $this->db->queryF(
393  "SELECT * FROM tst_rnd_quest_set_qpls WHERE def_id = %s",
394  array('integer'),
395  array($id)
396  );
397 
398  while ($row = $this->db->fetchAssoc($res)) {
399  $this->initFromArray($row);
400 
401  return true;
402  }
403 
404  return false;
405  }
foreach($_POST as $key=> $value) $res
+ 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 220 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

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

221  {
222  $this->mappedTaxonomyFilter = array();
223  foreach ($this->originalTaxonomyFilter as $taxId => $nodeIds) {
224  $mappedNodeIds = array();
225  foreach ($nodeIds as $nodeId) {
226  $mappedNodeIds[] = $taxonomiesKeysMap->getMappedTaxNodeId($nodeId);
227  }
228  $this->mappedTaxonomyFilter[$taxonomiesKeysMap->getMappedTaxonomyId($taxId)] = $mappedNodeIds;
229  }
230  }
+ Here is the call graph for this function:

◆ saveToDb()

ilTestRandomQuestionSetSourcePoolDefinition::saveToDb ( )

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

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

+ Here is the call graph for this function:

◆ setId()

ilTestRandomQuestionSetSourcePoolDefinition::setId (   $id)

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

References $id.

Referenced by initFromArray(), and insertDbRecord().

+ Here is the caller graph for this function:

◆ setLifecycleFilter()

ilTestRandomQuestionSetSourcePoolDefinition::setLifecycleFilter (   $lifecycleFilter)
Parameters
array$lifecycleFilter

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

References $lifecycleFilter.

Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit().

+ Here is the caller graph for this function:

◆ setLifecycleFilterFromDbValue()

ilTestRandomQuestionSetSourcePoolDefinition::setLifecycleFilterFromDbValue (   $dbValue)
Parameters
null|stringserialized lifecycle filter

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

Referenced by initFromArray().

288  {
289  $this->lifecycleFilter = empty($dbValue) ? array() : unserialize($dbValue);
290  }
+ 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 192 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition().

193  {
194  $this->mappedTaxonomyFilter = $filter;
195  }
+ 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 210 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by initFromArray().

211  {
212  $this->mappedTaxonomyFilter = empty($value) ? array() : unserialize($value);
213  }
+ 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 154 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by ilTestRandomQuestionSetPoolDefinitionFormGUI\applySubmit().

155  {
156  $this->originalTaxonomyFilter = $filter;
157  }
+ 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 173 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by initFromArray().

174  {
175  // TODO-RND2017: migrate to separate table for common selections by e.g. statistics
176  $this->originalTaxonomyFilter = empty($value) ? array() : unserialize($value);
177  }
+ Here is the caller graph for this function:

◆ setPoolId()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolId (   $poolId)

◆ setPoolPath()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolPath (   $poolPath)

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

References $poolPath.

Referenced by initFromArray().

+ Here is the caller graph for this function:

◆ setPoolQuestionCount()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolQuestionCount (   $poolQuestionCount)

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

References $poolQuestionCount.

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

+ Here is the caller graph for this function:

◆ setPoolRefId()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolRefId ( ?int  $poolRefId)

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

References $poolRefId.

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

+ Here is the caller graph for this function:

◆ setPoolTitle()

ilTestRandomQuestionSetSourcePoolDefinition::setPoolTitle (   $poolTitle)

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

References $poolTitle.

Referenced by initFromArray().

+ Here is the caller graph for this function:

◆ setQuestionAmount()

ilTestRandomQuestionSetSourcePoolDefinition::setQuestionAmount (   $questionAmount)

◆ setSequencePosition()

ilTestRandomQuestionSetSourcePoolDefinition::setSequencePosition (   $sequencePosition)

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

References $sequencePosition.

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

+ Here is the caller graph for this function:

◆ setTypeFilter()

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

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

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 255 of file class.ilTestRandomQuestionSetSourcePoolDefinition.php.

Referenced by initFromArray().

256  {
257  $this->typeFilter = empty($value) ? array() : unserialize($value);
258  }
+ Here is the caller graph for this function:

◆ updateDbRecord()

ilTestRandomQuestionSetSourcePoolDefinition::updateDbRecord (   $testId)
private
Parameters
$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().

434  {
435  $this->db->update(
436  'tst_rnd_quest_set_qpls',
437  array(
438  'test_fi' => array('integer', $testId),
439  'pool_fi' => array('integer', $this->getPoolId()),
440  'pool_ref_id' => array('integer', $this->getPoolRefId()),
441  'pool_title' => array('text', $this->getPoolTitle()),
442  'pool_path' => array('text', $this->getPoolPath()),
443  'pool_quest_count' => array('integer', $this->getPoolQuestionCount()),
444  // fau: taxFilter/typeFilter - use new db fields
445  #'origin_tax_fi' => array('integer', $this->getOriginalFilterTaxId()),
446  #'origin_node_fi' => array('integer', $this->getOriginalFilterTaxNodeId()),
447  #'mapped_tax_fi' => array('integer', $this->getMappedFilterTaxId()),
448  #'mapped_node_fi' => array('integer', $this->getMappedFilterTaxNodeId()),
449  'origin_tax_filter' => array('text', $this->getOriginalTaxonomyFilterForDbValue()),
450  'mapped_tax_filter' => array('text', $this->getMappedTaxonomyFilterForDbValue()),
451  'type_filter' => array('text', $this->getTypeFilterForDbValue()),
452  'lifecycle_filter' => array('text', $this->getLifecycleFilterForDbValue()),
453  // fau.
454  'quest_amount' => array('integer', $this->getQuestionAmount()),
455  'sequence_pos' => array('integer', $this->getSequencePosition())
456  ),
457  array(
458  'def_id' => array('integer', $this->getId())
459  )
460  );
461  }
getOriginalTaxonomyFilterForDbValue()
get the original taxonomy filter for insert into the database
getTypeFilterForDbValue()
get the question type filter for insert into the database
getMappedTaxonomyFilterForDbValue()
get the original taxonomy filter for insert into the database
+ 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().

◆ $lifecycleFilter

ilTestRandomQuestionSetSourcePoolDefinition::$lifecycleFilter = array()
private

◆ $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: