MDL-85069 question: Services for question bank and category search
This updates the core_question_search_shared_banks external function with additional parameters to make it applicable outside of the "Switch bank" dialogue in the quiz, with the corresponding changes to the question_banks_datasource Javascript module, and unit test coverage. It also adds a new \core_question\output\question_category_selector class for rendering a select list of question categories, migrating the logic used in qbank_managecategories to a core namespace. There is a fragment callback for rendering this via AJAX.
This commit is contained in:
+1
-1
@@ -1276,7 +1276,7 @@ function question_default_export_filename($course, $category): string {
|
||||
*
|
||||
* @param int|stdClass|question_definition $questionorid object or id.
|
||||
* If an object is passed, it should include ->contextid and ->createdby.
|
||||
* @param string $cap 'add', 'edit', 'view', 'use', 'move' or 'tag'.
|
||||
* @param string $cap 'add', 'edit', 'view', 'use', 'move', or 'tag'.
|
||||
* @param int $notused no longer used.
|
||||
* @return bool this user has the capability $cap for this question $question?
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user