Class representing a set of filters.
More...
|
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.
|
|
|
| get_optional_filters () |
| Get the list of optional filters in an array of filtername => filter class type.
|
|
| get_required_filters () |
| Get the list of required filters in an array of filtername => filter class type.
|
|
|
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
|
|
Class representing a set of filters.
- Copyright
- 2020 Andrew Nicols andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ add_filter()
core_table\local\filter\filterset::add_filter |
( |
filter | $filter | ) |
|
Add the specified filter.
- Parameters
-
- Return values
-
◆ add_filter_from_params()
core_table\local\filter\filterset::add_filter_from_params |
( |
string | $filtername, |
|
|
| ... ) |
Add the specified filter from the supplied params.
- Parameters
-
string | $filtername | The name of the filter to create |
| mixed[] | ...$args Additional arguments used to create this filter type |
- Return values
-
◆ check_validity()
core_table\local\filter\filterset::check_validity |
( |
| ) |
|
Confirm whether the filter has been correctly specified.
- Exceptions
-
◆ get_all_filtertypes()
core_table\local\filter\filterset::get_all_filtertypes |
( |
| ) |
|
Get all filter valid types in an array of filtername => filter class type.
- Return values
-
◆ get_filter()
core_table\local\filter\filterset::get_filter |
( |
string | $filtername | ) |
|
Get the named filter.
- Parameters
-
- Return values
-
◆ get_filters()
core_table\local\filter\filterset::get_filters |
( |
| ) |
|
Return the current set of filters.
- Return values
-
◆ get_join_type()
core_table\local\filter\filterset::get_join_type |
( |
| ) |
|
Return the currently specified join type.
- Return values
-
◆ get_optional_filters()
core_table\local\filter\filterset::get_optional_filters |
( |
| ) |
|
|
protected |
◆ get_required_filters()
core_table\local\filter\filterset::get_required_filters |
( |
| ) |
|
|
protected |
◆ has_filter()
core_table\local\filter\filterset::has_filter |
( |
string | $filtername | ) |
|
Check whether the filter has been added or not.
- Parameters
-
- Return values
-
◆ jsonSerialize()
core_table\local\filter\filterset::jsonSerialize |
( |
| ) |
|
Serialize filterset.
- Return values
-
◆ set_join_type()
core_table\local\filter\filterset::set_join_type |
( |
int | $jointype | ) |
|
Specify the type of join to employ for the filter.
- Parameters
-
int | $jointype | The join type to use using one of the supplied constants |
- Return values
-
◆ $jointypes
int [] core_table\local\filter\filterset::$jointypes |
|
protected |
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:
- lib/table/classes/local/filter/filterset.php