Свойство | Type | Description | |
---|---|---|---|
$contentType | string | ||
$filters | |||
$params | array | ||
$parser | |||
$qb | Doctrine\DBAL\Query\QueryBuilder | ||
$replacements | |||
$singleFetchMode | boolean |
Méthode | Description | |
---|---|---|
__construct ( Doctrine\DBAL\Query\QueryBuilder $qb, |
Constructor. | |
__toString ( ) : string | ||
addFilter ( |
||
build ( ) : Doctrine\DBAL\Query\QueryBuilder | Part of the QueryInterface this turns all the input into a Doctrine QueryBuilder object and is usually run just before query execution. | |
getContentType ( ) : string | Gets the ContentType that this query will run against. | |
getFilters ( ) : |
Returns all the filters attached to the query | |
getQueryBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | Allows public access to the QueryBuilder object | |
getSingleFetchMode ( ) : boolean | Returns whether the query is in single fetch mode. | |
getWhereExpression ( ) : |
Creates a composite expression that adds all the attached filters individual expressions into a combined one. | |
getWhereParameters ( ) : array | Returns all the parameters for the query. | |
getWhereParametersFor ( string $fieldName ) : array | Gets all the parameters for a specific field name. | |
setContentType ( string $contentType ) | Sets the ContentType that this query will run against. | |
setParameters ( array $params ) | Sets the parameters that will filter / alter the query | |
setQueryBuilder ( Doctrine\DBAL\Query\QueryBuilder $qb ) | Allows replacing the default QueryBuilder. | |
setSingleFetchMode ( boolean $value ) | Turns single fetch mode on or off. | |
setWhereParameter ( string $key, mixed $value ) | Sets all the parameters for a specific field name. |
Méthode | Description | |
---|---|---|
processFilters ( ) | Internal method that runs the individual key/value input through the QueryParameterParser. This allows complicated expressions to be turned into simple sql expressions |
public __construct ( Doctrine\DBAL\Query\QueryBuilder $qb, |
||
$qb | Doctrine\DBAL\Query\QueryBuilder | |
$parser |
public __toString ( ) : string | ||
Résultat | string | String representation of query |
public build ( ) : Doctrine\DBAL\Query\QueryBuilder | ||
Résultat | Doctrine\DBAL\Query\QueryBuilder |
public getContentType ( ) : string | ||
Résultat | string |
public getFilters ( ) : |
||
Résultat |
public getQueryBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | ||
Résultat | Doctrine\DBAL\Query\QueryBuilder |
public getSingleFetchMode ( ) : boolean | ||
Résultat | boolean |
public getWhereExpression ( ) : |
||
Résultat |
public getWhereParameters ( ) : array | ||
Résultat | array |
public getWhereParametersFor ( string $fieldName ) : array | ||
$fieldName | string | |
Résultat | array | array of key=>value parameters |
protected processFilters ( ) |
public setContentType ( string $contentType ) | ||
$contentType | string |
public setParameters ( array $params ) | ||
$params | array |
public setQueryBuilder ( Doctrine\DBAL\Query\QueryBuilder $qb ) | ||
$qb | Doctrine\DBAL\Query\QueryBuilder |
public setSingleFetchMode ( boolean $value ) | ||
$value | boolean |
public setWhereParameter ( string $key, mixed $value ) | ||
$key | string | |
$value | mixed |
protected QueryParameterParser,Bolt\Storage\Query $parser | ||
Résultat |
protected QueryBuilder,Doctrine\DBAL\Query $qb | ||
Résultat | Doctrine\DBAL\Query\QueryBuilder |