Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

(no description)

File Size: 191 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: question_history_view  - X-Ref

Custom view class for the history page.

__construct(question_edit_contexts $contexts,moodle_url $pageurl,stdClass $course,stdClass $cm = null,array $params = [],array $extraparams = [],)   X-Ref
Constructor for the history.

param: question_edit_contexts $contexts the contexts of api call
param: moodle_url $pageurl url of the page
param: stdClass $course course settings
param: stdClass|null $cm (optional) activity settings.
param: array $params the parameters required to initialize the api.
param: array $extraparams any extra parameters need to initialized if the api is extended, it will be passed to js.

init_question_actions()   X-Ref
No description

wanted_columns()   X-Ref
No description

display_advanced_search_form($advancedsearch)   X-Ref
No description

allow_add_questions()   X-Ref
No description

default_sort()   X-Ref
Default sort for question data.

return: array

build_query()   X-Ref
No description

display_question_bank_header()   X-Ref
Display the header for the question bank in the history page to include question name and type.


is_listing_specific_versions()   X-Ref
No description

wanted_filters()   X-Ref
Override wanted_filters so that we apply the filters provided by the URL, but don't display the filter UI.

return: void