0 follower

Final Class Yiisoft\Data\Db\FilterHandler

InheritanceYiisoft\Data\Db\FilterHandler

Method Details

Hide inherited methods

__construct() public method

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);
}

            
handle() public method

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);
}