PHP Class DMS\Filter\Filters\Callback

Inheritance: extends BaseFilter, implements DMS\Filter\Filters\ObjectAwareFilter
Datei anzeigen Open project: rdohms/dms-filter Class Usage Examples

Protected Properties

Property Type Description
$currentObject object | null | null

Public Methods

Method Description
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

Protected Methods

Method Description
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

Method Details

apply() public method

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

getCurrentObject() public method

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

setCurrentObject() public method

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

useCallable() protected method

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

useClosure() protected method

protected useClosure ( Closure $closure, mixed $value ) : mixed
$closure Closure
$value mixed
return mixed

useObjectMethod() protected method

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

Property Details

$currentObject protected_oe property

| null
protected object|null $currentObject
return object | null