lib/components/db/ActiveQuery.php
public function buildWhereFromQuery($instructions)
    {
        $where = [];
        if (!isset($instructions['condition'])
            || !in_array($instructions['condition'], ['AND', 'OR'])) {
            return false;
        }
        $where[] = $instructions['condition'];
        foreach ($instructions['rules'] as $rule) {
            $parsedRule = $this->parseRule($rule);
            if ($parsedRule) {
                $where[] = $parsedRule;
            }
        }

        return $where;
    }
public function buildWhereFromQuery($instructions)
    {
        $where = [];
        if (!isset($instructions['condition'])
            || !in_array($instructions['condition'], ['AND', 'OR'])) {
            return false;
        }
        $where[] = $instructions['condition'];
        foreach ($instructions['rules'] as $rule) {
            $parsedRule = $this->parseRule($rule);
            if ($parsedRule) {
                $where[] = $parsedRule;
            }
        }

        return $where;
    }
[[@doctodo method_description:buildWhereFromQuery]].

@param [[@doctodo param_type:instructions]] $instructions [[@doctodo param_description:instructions]]

@return [[@doctodo return_type:buildWhereFromQuery]] [[@doctodo return_description:buildWhereFromQuery]]