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.

(no description)

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

Defines 1 class

question_bank_filter_ui:: (3 methods):
  __construct()
  get_filtertypes()
  export_for_template()


Class: question_bank_filter_ui  - X-Ref

Class for rendering filters on the base view.

__construct(\context $context,protected array $searchconditions,protected array $additionalparams,protected string $component,protected string $callback,protected string $view,?string $tableregionid = null,protected ?int $cmid = null,array $pagevars = [],protected array $extraparams = [])   X-Ref
Create a new datafilter

param: \context $context The context of the course being displayed
param: array $searchconditions Array of condition objects for the current filters
param: array $additionalparams Additional display parameters
param: string $component the component for the fragment
param: string $callback the callback for the fragment
param: string $view the view class
param: ?string $tableregionid The ID of the region to update with the fragment
param: ?int $cmid if in an activity, the cmid.
param: array $pagevars current filter parameters
param: array $extraparams additional parameters required for a particular view class.

get_filtertypes()   X-Ref
Get data for all filter types.

return: array

export_for_template(renderer_base $output)   X-Ref
Export the renderer data in a mustache template friendly format.

param: renderer_base $output Unused.
return: stdClass Data in a format compatible with a mustache template.