user_filter_customcourserole extends user_filter_courserole
Table of Contents
Properties
- $_advanced : mixed
- $_label : mixed
- $_name : mixed
Methods
- check_data() : mixed
- Retrieves data from the form data.
- get_label() : string
- Returns a human friendly description of the filter used as label.
- get_sql_filter() : array<string|int, mixed>
- Returns the condition to be used with SQL where.
- setupForm() : void
- Adds controls specific to this filter in the form.
Properties
$_advanced
public
mixed
$_advanced
$_label
public
mixed
$_label
$_name
public
mixed
$_name
Methods
check_data()
Retrieves data from the form data.
public
check_data(stdClass $formdata) : mixed
Parameters
- $formdata : stdClass
-
data submited with the form
Return values
mixed —array filter data or false when filter not set
get_label()
Returns a human friendly description of the filter used as label.
public
get_label(array<string|int, mixed> $data) : string
Parameters
- $data : array<string|int, mixed>
-
filter settings
Return values
string —active filter label
get_sql_filter()
Returns the condition to be used with SQL where.
public
get_sql_filter(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
-
filter settings
Return values
array<string|int, mixed> —sql string and $params
setupForm()
Adds controls specific to this filter in the form.
public
setupForm(moodleform &$mform) : void
Parameters
- $mform : moodleform
-
a MoodleForm object to setup