Property | Type | Description | |
---|---|---|---|
$config | |||
$search | string |
Method | Description | |
---|---|---|
__construct ( Doctrine\DBAL\Query\QueryBuilder $qb, |
Constructor. | |
getSearchWords ( ) : array | Gets the individual elements of the search query as an array | |
getWhereExpression ( ) : |
Creates a composite expression that adds all the attached filters individual expressions into a combined one. | |
setParameters ( array $params ) | Sets the overall parameters on the query. This may include others than the search query itself which gets set to the 'filter' param. | |
setSearch ( string $search ) | This method sets the search filter which then triggers the process method. |
Method | Description | |
---|---|---|
getSearchParameter ( ) : string | This is an internal helper method to get the search words prepared to be passed to the expression builder. | |
processFilters ( ) | This overrides the SelectQuery default to do some extra preparation for a search query. |
public __construct ( Doctrine\DBAL\Query\QueryBuilder $qb, |
||
$qb | Doctrine\DBAL\Query\QueryBuilder | |
$parser | ||
$config |
protected getSearchParameter ( ) : string | ||
return | string |
public getSearchWords ( ) : array | ||
return | array |
public getWhereExpression ( ) : |
||
return |
protected processFilters ( ) |
public setParameters ( array $params ) | ||
$params | array |