Interface Yiisoft\Data\Reader\Iterable\IterableFilterHandlerInterface
Iterable filter handler checks whether an item matches criteria defined in the filter with the same operator.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getFilterClass() | Get matching filter class name. | Yiisoft\Data\Reader\Iterable\IterableFilterHandlerInterface |
| match() | Check whether an item matches iterable filter handlers for the filters with matching operator active. | Yiisoft\Data\Reader\Iterable\IterableFilterHandlerInterface |
Method Details
Get matching filter class name.
If the filter is active, a corresponding handler will be used during matching.
| public abstract string getFilterClass ( ) | ||
| return | string |
The filter class name. |
|---|---|---|
public function getFilterClass(): string;
Check whether an item matches iterable filter handlers for the filters with matching operator active.
| public abstract boolean match ( array|object $item, Yiisoft\Data\Reader\FilterInterface $filter, Yiisoft\Data\Reader\Iterable\Context $context ) | ||
| $item | array|object |
Item to check. |
| $filter | Yiisoft\Data\Reader\FilterInterface |
Matched filter. |
| $context | Yiisoft\Data\Reader\Iterable\Context | |
| return | boolean |
Whether item matches the filter. |
|---|---|---|
public function match(array|object $item, FilterInterface $filter, Context $context): bool;
Signup or Login in order to comment.