Property | Type | Description | |
---|---|---|---|
$_manager | Search Manager instance. |
Property | Type | Description | |
---|---|---|---|
$_defaultConfig | array | ### Options - searchConfigMethod Method name of the method that returns the filters. | |
$_isSearch | boolean | Internal flag to check whether the behavior modified the query. |
Method | Description | |
---|---|---|
filterParams ( array $params ) : array | Returns search params nested in array with key _search for passing as options to find method. | |
findSearch ( |
Callback fired from the controller. | |
isSearch ( ) : boolean | Returns true if the findSearch call modified the query in a way that at least one search filter has been applied. | |
searchManager ( ) : |
Returns the search filter manager. |
Method | Description | |
---|---|---|
_extractParams ( array $params, |
Extracts all parameters for wich a filter with a matching field name exists. | |
_flattenParams ( array $params ) : array | Flattens a parameters array, so that possible aliased parameter keys that are provided in a nested fashion, are being grouped using flat keys. | |
_getAllFilters ( string | null $collection = 'default' ) : |
Gets all filters by the default or given collection from the search manager | |
_processFilters ( |
Processes the given filters. |
protected _extractParams ( array $params, |
||
$params | array | The parameters array to extract from. |
$filters | The filters to match against. | |
return | array | The extracted parameters. |
protected _flattenParams ( array $params ) : array | ||
$params | array | The parameters array to flatten. |
return | array | The flattened parameters array. |
protected _getAllFilters ( string | null $collection = 'default' ) : |
||
$collection | string | null | name of collection |
return | An array of filters for the defined fields. |
protected _processFilters ( |
||
$filters | The filters to process. | |
$params | array | The parameters to pass to the filters. |
$query | The query to pass to the filters. | |
return | The query processed by the filters. |
public filterParams ( array $params ) : array | ||
$params | array | A key value list of search parameters to use for a search. |
return | array |
public findSearch ( |
||
$query | Query. | |
$options | array | The options for the find. - `search`: Array of search arguments. - `collection`: Filter collection name. |
return | The Query object used in pagination. |
public searchManager ( ) : |
||
return |
protected array $_defaultConfig | ||
return | array |
protected bool $_isSearch | ||
return | boolean |