MDL-78025 questions: questions_in_use should check question_references
commit25596a50e568c8364272819bd39c8fa4bad9e6d2
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 25 Apr 2023 17:04:11 +0000 (25 18:04 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 26 Apr 2023 14:29:38 +0000 (26 15:29 +0100)
treec76dae1bd2051d02b95e5ba515872874cf459e8c
parent9775be13e9351a4f02a458a93dc2e300f73c7a5c
MDL-78025 questions: questions_in_use should check question_references

This avoids the needs for plugins to do separate queries, which is
easier for them, and better performing.
lib/questionlib.php
question/classes/question_reference_manager.php [new file with mode: 0644]
question/engine/tests/question_reference_manager_test.php [new file with mode: 0644]