Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 403]

(no description)

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

Defines 1 class

datafilter:: (2 methods):
  __construct()
  get_filter_object()


Class: datafilter  - X-Ref

The filter renderable class.

__construct(context $context, ?string $tableregionid = null)   X-Ref
Filter constructor.

param: context $context The context where the filters are being rendered
param: string|null $tableregionid Container of the table which will be updated by this filter

get_filter_object(string $name,string $title,bool $custom,bool $multiple,?string $filterclass,array $values,bool $allowempty = false)   X-Ref
Get a standardised filter object.

param: string $name
param: string $title
param: bool $custom
param: bool $multiple
param: string|null $filterclass
param: array $values
param: bool $allowempty
return: stdClass|null