ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 60 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 76 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 44 of file class.ilTestRandomQuestionSetStagingPoolQuestion.php.

References $testId.

Referenced by saveQuestionStaging().

+ Here is the caller graph for this function:

◆ saveQuestionStaging()

ilTestRandomQuestionSetStagingPoolQuestion::saveQuestionStaging ( )

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

90 {
91 $nextId = $this->db->nextId('tst_rnd_cpy');
92
93 $this->db->insert('tst_rnd_cpy', array(
94 'copy_id' => array('integer', $nextId),
95 'tst_fi' => array('integer', $this->getTestId()),
96 'qst_fi' => array('integer', $this->getQuestionId()),
97 'qpl_fi' => array('integer', $this->getPoolId())
98 ));
99 }

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

+ Here is the call graph for this function:

◆ setPoolId()

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

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

69 {
70 $this->poolId = $poolId;
71 }

References $poolId.

◆ setQuestionId()

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

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

85 {
86 $this->questionId = $questionId;
87 }

References $questionId.

◆ setTestId()

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

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

53 {
54 $this->testId = $testId;
55 }

References $testId.

Field Documentation

◆ $db

ilTestRandomQuestionSetStagingPoolQuestion::$db
protected

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

Referenced by __construct().

◆ $poolId

ilTestRandomQuestionSetStagingPoolQuestion::$poolId
protected

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

Referenced by getPoolId(), and setPoolId().

◆ $questionId

ilTestRandomQuestionSetStagingPoolQuestion::$questionId
protected

◆ $testId

ilTestRandomQuestionSetStagingPoolQuestion::$testId
protected

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

Referenced by getTestId(), and setTestId().


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