Final Class Yiisoft\Data\Db\FilterHandler
| Inheritance | Yiisoft\Data\Db\FilterHandler |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Data\Db\FilterHandler | |
| handle() | Yiisoft\Data\Db\FilterHandler |
Method Details
| public mixed __construct ( array $handlers, Yiisoft\Data\Db\FieldMapper\FieldMapperInterface $fieldMapper ) | ||
| $handlers | array | |
| $fieldMapper | Yiisoft\Data\Db\FieldMapper\FieldMapperInterface | |
public function __construct(array $handlers, FieldMapperInterface $fieldMapper)
{
$this->handlers = $this->prepareHandlers($handlers);
$this->context = new Context($this, $fieldMapper);
}
| public \Yiisoft\Db\QueryBuilder\Condition\ConditionInterface handle ( \Yiisoft\Data\Reader\FilterInterface $filter ) | ||
| $filter | \Yiisoft\Data\Reader\FilterInterface | |
public function handle(FilterInterface $filter): ConditionInterface
{
return $this->getHandlerByOperator($filter::class)->getCondition($filter, $this->context);
}
Signup or Login in order to comment.