Final Class Yiisoft\Yii\DataView\Filter\Factory\LikeFilterFactory
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
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\ |
|
| create() | Yiisoft\ |
Method Details
| public mixed __construct ( boolean|null $caseSensitive = null ) | ||
| $caseSensitive | boolean|null |
Whether the pattern matching should be case-sensitive.
|
public function __construct(
private readonly ?bool $caseSensitive = null,
) {}
User Contributed Notes
Leave a comment
Join the conversation to share a note.