|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository:Public Member Functions | |
| __construct (private \ilDBInterface $db, private \ilComponentFactory $component_factory, private \ilComponentRepository $component_repository) | |
| getForQuestionId (int $question_id) | |
| getForParentObjectId (int $obj_id) | |
| getForQuestionIds (array $question_ids) | |
| getFractionOfReachedToReachablePointsTotal (int $question_id) | |
| areQuestionsAnsweredByUser (int $user_id, array $question_ids) | |
| Checks if an array of question ids is answered by a user or not. More... | |
| lookupResultRecordExist (int $active_id, int $question_id, int $pass) | |
| isInUse (int $question_id=0) | |
| usageCount (int $question_id=0) | |
| Returns the number of place the question is in use in pools or tests. More... | |
| searchQuestionIdsByTitle (string $title) | |
| questionExists (int $question_id) | |
| questionExistsInPool (int $question_id) | |
| isUsedInRandomTest (int $question_id) | |
| originalQuestionExists (int $question_id) | |
| getQuestionsMissingResultRecord (int $active_id, int $pass, array $question_ids) | |
| isInActiveTest (int $obj_id) | |
Private Member Functions | |
| buildGeneralQuestionPropertyFromDBRecords (\stdClass $db_record) | |
| getForWhereClause (string $where) | |
| isQuestionTypeAvailable (bool $is_plugin, string $question_type) | |
Private Attributes | |
| const | MAIN_QUESTION_TABLE = 'qpl_questions' |
| const | QUESTION_TYPES_TABLE = 'qpl_qst_type' |
| const | TEST_FIXED_QUESTION_TABLE = 'tst_test_question' |
| const | TEST_RANDOM_QUESTION_TABLE = 'tst_test_rnd_qst' |
| const | TEST_RESULTS_TABLE = 'tst_test_result' |
| const | TEST_TO_ACTIVE_USER_TABLE = 'tst_active' |
| const | DATA_TABLE = 'object_data' |
Definition at line 23 of file GeneralQuestionPropertiesRepository.php.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::__construct | ( | private \ilDBInterface | $db, |
| private \ilComponentFactory | $component_factory, | ||
| private \ilComponentRepository | $component_repository | ||
| ) |
Definition at line 33 of file GeneralQuestionPropertiesRepository.php.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::areQuestionsAnsweredByUser | ( | int | $user_id, |
| array | $question_ids | ||
| ) |
Checks if an array of question ids is answered by a user or not.
| int | user_id |
| array<int> | $question_ids |
Definition at line 122 of file GeneralQuestionPropertiesRepository.php.
References $user_id, and ilDBConstants\T_INTEGER.
|
private |
Definition at line 323 of file GeneralQuestionPropertiesRepository.php.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::getForParentObjectId | ( | int | $obj_id | ) |
Definition at line 53 of file GeneralQuestionPropertiesRepository.php.
References ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForWhereClause().
Here is the call graph for this function:| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::getForQuestionId | ( | int | $question_id | ) |
Definition at line 40 of file GeneralQuestionPropertiesRepository.php.
References ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForWhereClause().
Referenced by assQuestion\instantiateQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::getForQuestionIds | ( | array | $question_ids | ) |
| array<int> | $question_ids |
Definition at line 63 of file GeneralQuestionPropertiesRepository.php.
References ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForWhereClause(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:
|
private |
Definition at line 352 of file GeneralQuestionPropertiesRepository.php.
Referenced by ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForParentObjectId(), ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForQuestionId(), and ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForQuestionIds().
Here is the caller graph for this function:| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::getFractionOfReachedToReachablePointsTotal | ( | int | $question_id | ) |
Definition at line 75 of file GeneralQuestionPropertiesRepository.php.
References ilDBConstants\T_INTEGER.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::getQuestionsMissingResultRecord | ( | int | $active_id, |
| int | $pass, | ||
| array | $question_ids | ||
| ) |
Definition at line 277 of file GeneralQuestionPropertiesRepository.php.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::isInActiveTest | ( | int | $obj_id | ) |
Definition at line 308 of file GeneralQuestionPropertiesRepository.php.
References ilDBConstants\T_INTEGER.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::isInUse | ( | int | $question_id = 0 | ) |
Definition at line 153 of file GeneralQuestionPropertiesRepository.php.
References ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\usageCount().
Here is the call graph for this function:
|
private |
Definition at line 375 of file GeneralQuestionPropertiesRepository.php.
References ilComponentInfo\TYPE_COMPONENT.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::isUsedInRandomTest | ( | int | $question_id | ) |
Definition at line 247 of file GeneralQuestionPropertiesRepository.php.
References ilDBConstants\T_INTEGER.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::lookupResultRecordExist | ( | int | $active_id, |
| int | $question_id, | ||
| int | $pass | ||
| ) |
Definition at line 137 of file GeneralQuestionPropertiesRepository.php.
References ilDBConstants\T_INTEGER.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::originalQuestionExists | ( | int | $question_id | ) |
Definition at line 261 of file GeneralQuestionPropertiesRepository.php.
References $res, and ilDBConstants\T_INTEGER.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::questionExists | ( | int | $question_id | ) |
Definition at line 214 of file GeneralQuestionPropertiesRepository.php.
References ilDBConstants\T_INTEGER.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::questionExistsInPool | ( | int | $question_id | ) |
Definition at line 230 of file GeneralQuestionPropertiesRepository.php.
References ILIAS\components\ResourceStorage\Container\View\DATA_TABLE, and ilDBConstants\T_INTEGER.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::searchQuestionIdsByTitle | ( | string | $title | ) |
Definition at line 197 of file GeneralQuestionPropertiesRepository.php.
References $q, ilDBConstants\FETCHMODE_OBJECT, and ilDBConstants\T_TEXT.
| ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::usageCount | ( | int | $question_id = 0 | ) |
Returns the number of place the question is in use in pools or tests.
Definition at line 161 of file GeneralQuestionPropertiesRepository.php.
References ilDBConstants\T_INTEGER.
Referenced by ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\isInUse().
Here is the caller graph for this function:
|
private |
Definition at line 31 of file GeneralQuestionPropertiesRepository.php.
|
private |
Definition at line 25 of file GeneralQuestionPropertiesRepository.php.
|
private |
Definition at line 26 of file GeneralQuestionPropertiesRepository.php.
|
private |
Definition at line 27 of file GeneralQuestionPropertiesRepository.php.
|
private |
Definition at line 28 of file GeneralQuestionPropertiesRepository.php.
|
private |
Definition at line 29 of file GeneralQuestionPropertiesRepository.php.
|
private |
Definition at line 30 of file GeneralQuestionPropertiesRepository.php.