Sorter extends Type
Represents a filter type.
Tags
Table of Contents
- $filter : Filter
- The filter object.
- __construct() : mixed
- Initialize the type.
- get_filter() : Filter
- Get the filter object.
- get_ids_from_results() : array<string|int, mixed>
- Get the post IDs from the results.
Properties
$filter
The filter object.
protected
Filter
$filter
Methods
__construct()
Initialize the type.
public
__construct(Filter $filter) : mixed
Parameters
- $filter : Filter
-
The filter object.
Return values
mixed —get_filter()
Get the filter object.
public
get_filter() : Filter
Return values
Filter —get_ids_from_results()
Get the post IDs from the results.
public
get_ids_from_results(array<string|int, mixed> $results) : array<string|int, mixed>
Parameters
- $results : array<string|int, mixed>
-
The results from the database.