Final Class Yiisoft\Data\Db\FilterHandler
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| handle() | Yiisoft\ |
Method Details
| public mixed __construct ( array $handlers, Yiisoft\ | ||
| $handlers | array | |
| $fieldMapper | Yiisoft\ |
|
public function __construct(array $handlers, FieldMapperInterface $fieldMapper)
{
$this->handlers = $this->prepareHandlers($handlers);
$this->context = new Context($this, $fieldMapper);
}
| public \ | ||
| $filter | \ |
|
public function handle(FilterInterface $filter): ConditionInterface
{
return $this->getHandlerByOperator($filter::class)->getCondition($filter, $this->context);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.