Interface Yiisoft\Yii\DataView\Filter\Factory\FilterFactoryInterface
| Implemented by | Yiisoft\Yii\DataView\Filter\Factory\EqualsFilterFactory, Yiisoft\Yii\DataView\Filter\Factory\LikeFilterFactory |
|---|
Interface for creating data reader filters.
Filter factories are responsible for creating filter objects that define how data should be filtered based on property values. Different implementations of this interface can create different types of filters (equals, like, range, etc.).
See also \Yiisoft\Data\Reader\FilterInterface The interface implemented by all filter objects.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| create() | Creates a filter for the specified property and value. | Yiisoft\Yii\DataView\Filter\Factory\FilterFactoryInterface |
Method Details
Creates a filter for the specified property and value.
| public abstract \Yiisoft\Data\Reader\FilterInterface create ( string $property, string $value ) | ||
| $property | string |
The property name to filter on. |
| $value | string |
The value to filter by. |
| return | \Yiisoft\Data\Reader\FilterInterface |
The created filter. |
|---|---|---|
| throws | Yiisoft\Yii\DataView\Filter\Factory\IncorrectValueException |
When the provided value is not valid for the filter type. |
public function create(string $property, string $value): FilterInterface;
Signup or Login in order to comment.