PHP 클래스 Bolt\Storage\Query\Filter

@author Ross Riley
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$expression Doctrine\DBAL\Query\Expression\CompositeExpression
$key
$parameters array

공개 메소드들

메소드 설명
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.

메소드 상세

getExpression() 공개 메소드

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

getExpressionObject() 공개 메소드

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
리턴 Doctrine\DBAL\Query\Expression\CompositeExpression

getKey() 공개 메소드

Getter for key.
public getKey ( ) : string
리턴 string

getParameters() 공개 메소드

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

hasParameter() 공개 메소드

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

setExpression() 공개 메소드

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

setKey() 공개 메소드

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

setParameter() 공개 메소드

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

setParameters() 공개 메소드

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

프로퍼티 상세

$expression 보호되어 있는 프로퍼티

protected CompositeExpression,Doctrine\DBAL\Query\Expression $expression
리턴 Doctrine\DBAL\Query\Expression\CompositeExpression

$key 보호되어 있는 프로퍼티

protected $key

$parameters 보호되어 있는 프로퍼티

protected array $parameters
리턴 array