ILIAS  release_8 Revision v8.24
ilTestRandomQuestionSetStagingPoolQuestion Class Reference
+ Collaboration diagram for ilTestRandomQuestionSetStagingPoolQuestion:

Public Member Functions

 __construct (ilDBInterface $db)
 
 getTestId ()
 
 setTestId ($testId)
 
 getPoolId ()
 
 setPoolId ($poolId)
 
 getQuestionId ()
 
 setQuestionId ($questionId)
 
 saveQuestionStaging ()
 

Protected Attributes

 $db
 
 $testId
 
 $poolId
 
 $questionId
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTestRandomQuestionSetStagingPoolQuestion::__construct ( ilDBInterface  $db)

Member Function Documentation

◆ getPoolId()

ilTestRandomQuestionSetStagingPoolQuestion::getPoolId ( )
Returns
int

Definition at line 74 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

References $poolId.

Referenced by saveQuestionStaging().

+ Here is the caller graph for this function:

◆ getQuestionId()

ilTestRandomQuestionSetStagingPoolQuestion::getQuestionId ( )
Returns
int

Definition at line 90 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

References $questionId.

Referenced by saveQuestionStaging().

+ Here is the caller graph for this function:

◆ getTestId()

ilTestRandomQuestionSetStagingPoolQuestion::getTestId ( )
Returns
int

Definition at line 58 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

References $testId.

Referenced by saveQuestionStaging().

+ Here is the caller graph for this function:

◆ saveQuestionStaging()

ilTestRandomQuestionSetStagingPoolQuestion::saveQuestionStaging ( )

Definition at line 103 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

104 {
105 $nextId = $this->db->nextId('tst_rnd_cpy');
106
107 $this->db->insert('tst_rnd_cpy', array(
108 'copy_id' => array('integer', $nextId),
109 'tst_fi' => array('integer', $this->getTestId()),
110 'qst_fi' => array('integer', $this->getQuestionId()),
111 'qpl_fi' => array('integer', $this->getPoolId())
112 ));
113 }

References getPoolId(), getQuestionId(), and getTestId().

+ Here is the call graph for this function:

◆ setPoolId()

ilTestRandomQuestionSetStagingPoolQuestion::setPoolId (   $poolId)
Parameters
int$poolId

Definition at line 82 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

83 {
84 $this->poolId = $poolId;
85 }

References $poolId.

◆ setQuestionId()

ilTestRandomQuestionSetStagingPoolQuestion::setQuestionId (   $questionId)
Parameters
int$questionId

Definition at line 98 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

99 {
100 $this->questionId = $questionId;
101 }

References $questionId.

◆ setTestId()

ilTestRandomQuestionSetStagingPoolQuestion::setTestId (   $testId)
Parameters
int$testId

Definition at line 66 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

67 {
68 $this->testId = $testId;
69 }

References $testId.

Field Documentation

◆ $db

ilTestRandomQuestionSetStagingPoolQuestion::$db
protected

Definition at line 30 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

Referenced by __construct().

◆ $poolId

ilTestRandomQuestionSetStagingPoolQuestion::$poolId
protected

Definition at line 40 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

Referenced by getPoolId(), and setPoolId().

◆ $questionId

ilTestRandomQuestionSetStagingPoolQuestion::$questionId
protected

◆ $testId

ilTestRandomQuestionSetStagingPoolQuestion::$testId
protected

Definition at line 35 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

Referenced by getTestId(), and setTestId().


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