Свойство | Тип | Описание | |
---|---|---|---|
$contentType | string | ||
$filters | |||
$params | array | ||
$parser | |||
$qb | Doctrine\DBAL\Query\QueryBuilder | ||
$replacements | |||
$singleFetchMode | boolean |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | string | String representation of query |
public build ( ) : Doctrine\DBAL\Query\QueryBuilder | ||
Результат | Doctrine\DBAL\Query\QueryBuilder |
public getContentType ( ) : string | ||
Результат | string |
public getFilters ( ) : |
||
Результат |
public getQueryBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | ||
Результат | Doctrine\DBAL\Query\QueryBuilder |
public getSingleFetchMode ( ) : boolean | ||
Результат | boolean |
public getWhereExpression ( ) : |
||
Результат |
public getWhereParameters ( ) : array | ||
Результат | array |
public getWhereParametersFor ( string $fieldName ) : array | ||
$fieldName | string | |
Результат | 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 | ||
Результат |
protected QueryBuilder,Doctrine\DBAL\Query $qb | ||
Результат | Doctrine\DBAL\Query\QueryBuilder |