Method |
Description |
|
__construct ( Doctrine\DBAL\Query\Expression\ExpressionBuilder $expr = null ) |
Constructor. |
|
addFilterHandler ( callable $handler ) |
The goal of this class is to turn any key:value into a Filter class. |
|
addValueMatcher ( string $token, array $params = [], boolean $priority = null ) |
Adds an additional token to parse for value parameters. |
|
defaultFilterHandler ( string $key, string $value, Doctrine\DBAL\Query\Expression\ExpressionBuilder $expr ) : Filter |
The default handler is the last to be run and handler simple value parsing. |
|
getFilter ( string $key, mixed $value = null ) : Filter | null |
Runs the keys/values through the relevant parsers. |
|
incorrectQueryHandler ( string $key, string $value, Doctrine\DBAL\Query\Expression\ExpressionBuilder $expr ) |
Handles some errors in key/value string formatting. |
|
multipleKeyAndValueHandler ( string $key, string $value, Doctrine\DBAL\Query\Expression\ExpressionBuilder $expr ) : Filter | null |
This handler processes 'triple pipe' queries as implemented in Bolt
It looks for three pipes in the key and value and creates an OR composite
expression for example: 'username|||email':'fred|||pete'. |
|
multipleValueHandler ( string $key, string $value, Doctrine\DBAL\Query\Expression\ExpressionBuilder $expr ) : Filter | null |
This handler processes multiple value queries as defined in the Bolt 'Fetching Content'
documentation. It allows a value to be parsed to and AND/OR expression. |
|
parseValue ( string $value ) : array |
This method uses the defined value matchers to parse a passed in value to the following
component parts:
[
'value' =>
'operator' =>
'matched' =>
] |
|
setAlias ( string $alias ) |
Sets the select alias to be used in sql queries. |
|
setupDefaults ( ) |
|
|