|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Repository for suggested solutions. More...
Inheritance diagram for ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository:
Collaboration diagram for ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository:Public Member Functions | |
| __construct (\ilDBInterface $db) | |
| create (int $question_id, string $type) | |
| selectFor (int $question_id) | |
| return assQuestionSuggestedSolution[] More... | |
| update (array $suggested_solutions) | |
| delete (int $suggested_solution_id) | |
| deleteForQuestion (int $question_id) | |
| syncForQuestion (int $source_question_id, int $target_question_id) | |
Data Fields | |
| const | TABLE_SUGGESTED_SOLUTIONS = 'qpl_sol_sug' |
Protected Member Functions | |
| buildSuggestedSolution (int $id, int $question_id, string $internal_link, string $import_id, int $subquestion_index, string $type, string $value, \DateTimeImmutable $last_update) | |
| getNow () | |
| additionalOnDelete (int $question_id) | |
| additionalOnStore (assQuestionSuggestedSolution $solution) | |
Protected Attributes | |
| ilDBInterface | $db |
Repository for suggested solutions.
Definition at line 28 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
| ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository::__construct | ( | \ilDBInterface | $db | ) |
Definition at line 34 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\$db.
|
protected |
Definition at line 197 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ilInternalLink\_deleteAllLinksOfSource().
Referenced by ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\deleteForQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 202 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ilInternalLink\_saveLink(), ILIAS\TA\Questions\assQuestionSuggestedSolution\getQuestionId(), ILIAS\Repository\int(), and ILIAS\TA\Questions\assQuestionSuggestedSolution\isOfTypeLink().
Referenced by ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 155 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ILIAS\TA\Questions\assQuestionSuggestedSolution\TYPE_FILE, ILIAS\TA\Questions\assQuestionSuggestedSolution\TYPE_GLOSARY_TERM, ILIAS\TA\Questions\assQuestionSuggestedSolution\TYPE_LM, ILIAS\TA\Questions\assQuestionSuggestedSolution\TYPE_LM_CHAPTER, and ILIAS\TA\Questions\assQuestionSuggestedSolution\TYPE_LM_PAGE.
Referenced by ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\create(), assQuestionSuggestedSolutionRepoMock\getSolution(), and ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\selectFor().
Here is the caller graph for this function:| ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository::create | ( | int | $question_id, |
| string | $type | ||
| ) |
Definition at line 39 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\buildSuggestedSolution(), and ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\getNow().
Here is the call graph for this function:| ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository::delete | ( | int | $suggested_solution_id | ) |
Definition at line 127 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
| ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository::deleteForQuestion | ( | int | $question_id | ) |
Definition at line 134 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\additionalOnDelete().
Referenced by ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\syncForQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 191 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
Referenced by ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\create(), and ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\update().
Here is the caller graph for this function:| ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository::selectFor | ( | int | $question_id | ) |
return assQuestionSuggestedSolution[]
Definition at line 57 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\buildSuggestedSolution().
Referenced by ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\syncForQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository::syncForQuestion | ( | int | $source_question_id, |
| int | $target_question_id | ||
| ) |
Definition at line 142 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\deleteForQuestion(), ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\selectFor(), and ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\update().
Here is the call graph for this function:| ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository::update | ( | array | $suggested_solutions | ) |
Definition at line 90 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
References ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\additionalOnStore(), and ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\getNow().
Referenced by ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\syncForQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 32 of file assQuestionSuggestedSolutionsDatabaseRepository.php.
Referenced by ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository\__construct().
| const ILIAS\TA\Questions\assQuestionSuggestedSolutionsDatabaseRepository::TABLE_SUGGESTED_SOLUTIONS = 'qpl_sol_sug' |
Definition at line 30 of file assQuestionSuggestedSolutionsDatabaseRepository.php.