PHP Class Bolt\Storage\Query\Filter

@author Ross Riley
Afficher le fichier Open project: bolt/bolt Class Usage Examples

Protected Properties

Свойство Type Description
$expression Doctrine\DBAL\Query\Expression\CompositeExpression
$key
$parameters array

Méthodes publiques

Méthode Description
getExpression ( ) : string Gets the compiled expression as a string. This will look something like (alias.key = :placeholder).
getExpressionObject ( ) : CompositeExpression Returns the actual object of the expression. This is generally only needed for on the fly modification, to get the compiled expression use getExpression().
getKey ( ) : string Getter for key.
getParameters ( ) : array Returns the array of parameters attached to this filter. These are normally used to replace placeholders at compile time.
hasParameter ( string $param ) : boolean Helper method to check if parameters are set for a specific key.
setExpression ( CompositeExpression $expression ) Allows replacing the expression object with a modified one.
setKey ( string $key ) Sets the key that this filter affects.
setParameter ( string $param, mixed $value ) Allows setting a parameter for a single key.
setParameters ( array $parameters ) Setter method to replace parameters.

Method Details

getExpression() public méthode

Gets the compiled expression as a string. This will look something like (alias.key = :placeholder).
public getExpression ( ) : string
Résultat string

getExpressionObject() public méthode

Returns the actual object of the expression. This is generally only needed for on the fly modification, to get the compiled expression use getExpression().
public getExpressionObject ( ) : CompositeExpression
Résultat Doctrine\DBAL\Query\Expression\CompositeExpression

getKey() public méthode

Getter for key.
public getKey ( ) : string
Résultat string

getParameters() public méthode

Returns the array of parameters attached to this filter. These are normally used to replace placeholders at compile time.
public getParameters ( ) : array
Résultat array

hasParameter() public méthode

Helper method to check if parameters are set for a specific key.
public hasParameter ( string $param ) : boolean
$param string
Résultat boolean

setExpression() public méthode

Allows replacing the expression object with a modified one.
public setExpression ( CompositeExpression $expression )
$expression Doctrine\DBAL\Query\Expression\CompositeExpression

setKey() public méthode

Sets the key that this filter affects.
public setKey ( string $key )
$key string

setParameter() public méthode

Allows setting a parameter for a single key.
public setParameter ( string $param, mixed $value )
$param string
$value mixed

setParameters() public méthode

Setter method to replace parameters.
public setParameters ( array $parameters )
$parameters array

Property Details

$expression protected_oe property

protected CompositeExpression,Doctrine\DBAL\Query\Expression $expression
Résultat Doctrine\DBAL\Query\Expression\CompositeExpression

$key protected_oe property

protected $key

$parameters protected_oe property

protected array $parameters
Résultat array