Zend\Stdlib\Hydrator\Filter\FilterComposite
Synopsis
class FilterComposite
implements
FilterInterface
{
- // constants
- const CONDITION_OR = 1;
- const CONDITION_AND = 2;
- // members
- protected ArrayObject $orFilter;
- protected ArrayObject $andFilter;
- // methods
- public void __construct()
- public FilterComposite addFilter()
- public FilterComposite removeFilter()
- public bool hasFilter()
- public bool filter()
Hierarchy
Implements
Constants
Name | Value |
---|---|
CONDITION_OR | 1 |
CONDITION_AND | 2 |
Members
protected
- $andFilter — ArrayObject
- $orFilter — ArrayObject
Methods
public
- __construct() — Define default Filter
- addFilter() — Add a filter to the composite. Has to be indexed with $name in order to identify a specific filter.
- filter() — Filter the composite based on the AND and OR condition Will return true if one from the "or conditions" and all from the "and condition" returns true. Otherwise false
- hasFilter() — Check if $name has a filter registered
- removeFilter() — Remove a filter from the composition