ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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

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  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ setPoolId()

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

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

References $poolId.

◆ setQuestionId()

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

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

References $questionId.

◆ setTestId()

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

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

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: