DboSource::_quoteMatchedField PHP Method

_quoteMatchedField() protected method

Auxiliary function to quote matches Model.fields from a preg_replace_callback call
protected _quoteMatchedField ( string $match ) : string
$match string matched string
return string quoted string
    protected function _quoteMatchedField($match)
    {
        if (is_numeric($match[0])) {
            return $match[0];
        }
        return $this->name($match[0]);
    }
DboSource