framework/db/Query.php
private function ensureNameQuoted($name)
    {
        $name = str_replace(["'", '"', '`', '[', ']'], '', $name);
        if ($name && !preg_match('/^{{.*}}$/', $name)) {
            return '{{' . $name . '}}';
        }

        return $name;
    }
private function ensureNameQuoted($name)
    {
        $name = str_replace(["'", '"', '`', '[', ']'], '', $name);
        if ($name && !preg_match('/^{{.*}}$/', $name)) {
            return '{{' . $name . '}}';
        }

        return $name;
    }
private function ensureNameQuoted ( $ name ) { $ name = str_replace ( [ "'" , '"' , '`' , '[' , ']' ] , '' , $ name ) ; if ( $ name && ! preg_match ( '/^{{.*}}$/' , $ name ) ) { return '{{' . $ name . '}}' ; } return $ name ; }
Ensures name is wrapped with {{ and }}
@param string $name
@return string
Ensures name is wrapped with {{ and }}