yii\sphinx\QueryBuilder::buildMatch PHP Method

buildMatch() public method

public buildMatch ( string | yii\db\Expression | MatchExpression $match, array &$params ) : string
$match string | yii\db\Expression | MatchExpression match condition
$params array the binding parameters to be populated
return string generated MATCH expression
    public function buildMatch($match, &$params)
    {
        if ($match instanceof Expression) {
            $params = array_merge($params, $match->params);
            return $match->expression;
        }
        if ($match instanceof MatchExpression) {
            $phName = self::PARAM_PREFIX . count($params);
            $params[$phName] = $this->getMatchBuilder()->build($match);
            return $phName;
        }
        $phName = self::PARAM_PREFIX . count($params);
        $params[$phName] = $this->db->escapeMatchValue($match);
        return $phName;
    }