PHP 클래스 DMS\Filter\Filters\Callback

상속: extends BaseFilter, implements DMS\Filter\Filters\ObjectAwareFilter
파일 보기 프로젝트 열기: rdohms/dms-filter 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$currentObject object | null | null

공개 메소드들

메소드 설명
apply ( Rule $rule, $value ) {@inheritDoc}
getCurrentObject ( ) : object | null Retrieves the current Object to be used
setCurrentObject ( $object ) : object Set the current object so that the filter can access it

보호된 메소드들

메소드 설명
useCallable ( callable $callable, mixed $value ) : mixed Filters using a callable.
useClosure ( Closure $closure, mixed $value ) : mixed
useObjectMethod ( string $method, mixed $value ) : mixed Filters by executing a method in the object

메소드 상세

apply() 공개 메소드

{@inheritDoc}
public apply ( Rule $rule, $value )
$rule DMS\Filter\Rules\Rule

getCurrentObject() 공개 메소드

Retrieves the current Object to be used
public getCurrentObject ( ) : object | null
리턴 object | null | null

setCurrentObject() 공개 메소드

Set the current object so that the filter can access it
public setCurrentObject ( $object ) : object
$object
리턴 object mixed

useCallable() 보호된 메소드

Filters using a callable.
protected useCallable ( callable $callable, mixed $value ) : mixed
$callable callable
$value mixed
리턴 mixed

useClosure() 보호된 메소드

protected useClosure ( Closure $closure, mixed $value ) : mixed
$closure Closure
$value mixed
리턴 mixed

useObjectMethod() 보호된 메소드

Filters by executing a method in the object
protected useObjectMethod ( string $method, mixed $value ) : mixed
$method string
$value mixed
리턴 mixed

프로퍼티 상세

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

| null
protected object|null $currentObject
리턴 object | null