Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_user\table\participants_filterset Class Reference

Participants table filterset. More...

Inheritance diagram for core_user\table\participants_filterset:
core_table\local\filter\filterset

Public Member Functions

 add_filter (filter $filter)
 Add the specified filter.
 
 add_filter_from_params (string $filtername,... $args)
 Add the specified filter from the supplied params.
 
 check_validity ()
 Confirm whether the filter has been correctly specified.
 
 get_all_filtertypes ()
 Get all filter valid types in an array of filtername => filter class type.
 
 get_filter (string $filtername)
 Get the named filter.
 
 get_filters ()
 Return the current set of filters.
 
 get_join_type ()
 Return the currently specified join type.
 
 get_optional_filters ()
 Get the optional filters.
 
 get_required_filters ()
 Get the required filters.
 
 has_filter (string $filtername)
 Check whether the filter has been added or not.
 
 jsonSerialize ()
 Serialize filterset.
 
 set_join_type (int $jointype)
 Specify the type of join to employ for the filter.
 

Public Attributes

int const JOINTYPE_ALL = 2
 All of the following match.
 
int const JOINTYPE_ANY = 1
 Any of the following match.
 
int const JOINTYPE_DEFAULT = 2
 The default filter type (ALL)
 
int const JOINTYPE_NONE = 0
 None of the following match.
 

Protected Attributes

array $filters = []
 The list of active filters.
 
array $filtertypes = null
 The list of combined filter types.
 
int $jointype = null
 The join type currently in use.
 
int[] $jointypes
 valid join types
 

Detailed Description

Participants table filterset.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ add_filter()

core_table\local\filter\filterset::add_filter ( filter $filter)
inherited

Add the specified filter.

Parameters
filter$filter
Return values
self

◆ add_filter_from_params()

core_table\local\filter\filterset::add_filter_from_params ( string $filtername,
... )
inherited

Add the specified filter from the supplied params.

Parameters
string$filternameThe name of the filter to create
mixed[]...$args Additional arguments used to create this filter type
Return values
self

◆ check_validity()

core_table\local\filter\filterset::check_validity ( )
inherited

Confirm whether the filter has been correctly specified.

Exceptions
moodle_exception

◆ get_all_filtertypes()

core_table\local\filter\filterset::get_all_filtertypes ( )
inherited

Get all filter valid types in an array of filtername => filter class type.

Return values
array

◆ get_filter()

core_table\local\filter\filterset::get_filter ( string $filtername)
inherited

Get the named filter.

Parameters
string$filtername
Return values
filter

◆ get_filters()

core_table\local\filter\filterset::get_filters ( )
inherited

Return the current set of filters.

Return values
filter[]

◆ get_join_type()

core_table\local\filter\filterset::get_join_type ( )
inherited

Return the currently specified join type.

Return values
int

◆ get_optional_filters()

core_user\table\participants_filterset::get_optional_filters ( )

Get the optional filters.

These are:

  • accesssince;
  • enrolments;
  • groups;
  • keywords;
  • country;
  • roles; and
  • status.
Return values
array

Reimplemented from core_table\local\filter\filterset.

◆ get_required_filters()

core_user\table\participants_filterset::get_required_filters ( )

Get the required filters.

The only required filter is the courseid filter.

Return values
array.

Reimplemented from core_table\local\filter\filterset.

◆ has_filter()

core_table\local\filter\filterset::has_filter ( string $filtername)
inherited

Check whether the filter has been added or not.

Parameters
string$filtername
Return values
bool

◆ jsonSerialize()

core_table\local\filter\filterset::jsonSerialize ( )
inherited

Serialize filterset.

Return values
mixed|object

◆ set_join_type()

core_table\local\filter\filterset::set_join_type ( int $jointype)
inherited

Specify the type of join to employ for the filter.

Parameters
int$jointypeThe join type to use using one of the supplied constants
Return values
self

Member Data Documentation

◆ $jointypes

int [] core_table\local\filter\filterset::$jointypes
protectedinherited
Initial value:
= [
]
int const JOINTYPE_NONE
None of the following match.
Definition filterset.php:47
int const JOINTYPE_ALL
All of the following match.
Definition filterset.php:53
int const JOINTYPE_ANY
Any of the following match.
Definition filterset.php:50

valid join types


The documentation for this class was generated from the following file: