ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestRandomQuestionSetStagingPoolQuestion Class Reference
+ Collaboration diagram for ilTestRandomQuestionSetStagingPoolQuestion:

Public Member Functions

 __construct (ilDBInterface $db)
 
 getTestId ()
 
 setTestId (int $test_id)
 
 getPoolId ()
 
 setPoolId (int $pool_id)
 
 getQuestionId ()
 
 setQuestionId (int $question_id)
 
 saveQuestionStaging ()
 

Protected Attributes

 $db
 
 $test_id
 
 $pool_id
 
 $question_id
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTestRandomQuestionSetStagingPoolQuestion::__construct ( ilDBInterface  $db)

Member Function Documentation

◆ getPoolId()

ilTestRandomQuestionSetStagingPoolQuestion::getPoolId ( )

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

References $pool_id.

Referenced by saveQuestionStaging().

+ Here is the caller graph for this function:

◆ getQuestionId()

ilTestRandomQuestionSetStagingPoolQuestion::getQuestionId ( )

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

References $question_id.

Referenced by saveQuestionStaging().

+ Here is the caller graph for this function:

◆ getTestId()

ilTestRandomQuestionSetStagingPoolQuestion::getTestId ( )
Returns
int

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

References $test_id.

Referenced by saveQuestionStaging().

+ Here is the caller graph for this function:

◆ saveQuestionStaging()

ilTestRandomQuestionSetStagingPoolQuestion::saveQuestionStaging ( )

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

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

91  {
92  $next_id = $this->db->nextId('tst_rnd_cpy');
93 
94  $this->db->insert('tst_rnd_cpy', [
95  'copy_id' => ['integer', $next_id],
96  'tst_fi' => ['integer', $this->getTestId()],
97  'qst_fi' => ['integer', $this->getQuestionId()],
98  'qpl_fi' => ['integer', $this->getPoolId()]
99  ]);
100  }
+ Here is the call graph for this function:

◆ setPoolId()

ilTestRandomQuestionSetStagingPoolQuestion::setPoolId ( int  $pool_id)

◆ setQuestionId()

ilTestRandomQuestionSetStagingPoolQuestion::setQuestionId ( int  $question_id)

◆ setTestId()

ilTestRandomQuestionSetStagingPoolQuestion::setTestId ( int  $test_id)

Field Documentation

◆ $db

ilTestRandomQuestionSetStagingPoolQuestion::$db
protected

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

Referenced by __construct().

◆ $pool_id

ilTestRandomQuestionSetStagingPoolQuestion::$pool_id
protected

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

Referenced by getPoolId(), and setPoolId().

◆ $question_id

ilTestRandomQuestionSetStagingPoolQuestion::$question_id
protected

◆ $test_id

ilTestRandomQuestionSetStagingPoolQuestion::$test_id
protected

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

Referenced by getTestId(), and setTestId().


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