Final Class Yiisoft\Yii\DataView\Filter\Factory\LikeFilterFactory
| Inheritance | Yiisoft\Yii\DataView\Filter\Factory\LikeFilterFactory |
|---|---|
| Implements | Yiisoft\Yii\DataView\Filter\Factory\FilterFactoryInterface |
Factory for creating pattern matching (LIKE) filters.
This factory creates filters that perform pattern matching using SQL LIKE operator semantics. It supports both case-sensitive and case-insensitive matching, which can be configured during factory instantiation.
Pattern matching follows SQL LIKE operator rules:
- % matches any sequence of characters
- _ matches any single character
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Yii\DataView\Filter\Factory\LikeFilterFactory | |
| create() | Yiisoft\Yii\DataView\Filter\Factory\LikeFilterFactory |
Method Details
| public __construct( boolean|null $caseSensitive = null ): mixed | ||
| $caseSensitive | boolean|null |
Whether the pattern matching should be case-sensitive.
|
public function __construct(
private readonly ?bool $caseSensitive = null,
) {}
Signup or Login in order to comment.