Свойство | Тип | Описание | |
---|---|---|---|
$_manager | Search Manager instance. |
Свойство | Тип | Описание | |
---|---|---|---|
$_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. |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
_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. | |
Результат | array | The extracted parameters. |
protected _flattenParams ( array $params ) : array | ||
$params | array | The parameters array to flatten. |
Результат | array | The flattened parameters array. |
protected _getAllFilters ( string | null $collection = 'default' ) : |
||
$collection | string | null | name of collection |
Результат | 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. | |
Результат | 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. |
Результат | array |
public findSearch ( |
||
$query | Query. | |
$options | array | The options for the find. - `search`: Array of search arguments. - `collection`: Filter collection name. |
Результат | The Query object used in pagination. |
public searchManager ( ) : |
||
Результат |
protected array $_defaultConfig | ||
Результат | array |
protected bool $_isSearch | ||
Результат | boolean |