public function quoteIdentifier($value)
    {
        if ($value instanceof Expr) {
            return $value->getValue();
        }

        if ($value === '*') {
            return $value;
        }

        $pieces = explode('.', $value);

        foreach ($pieces as $key => $piece) {
            $pieces[$key] = '`'.$piece.'`';
        }

        return implode('.', $pieces);
    }
public function quoteIdentifier($value)
    {
        if ($value instanceof Expr) {
            return $value->getValue();
        }

        if ($value === '*') {
            return $value;
        }

        $pieces = explode('.', $value);

        foreach ($pieces as $key => $piece) {
            $pieces[$key] = '`'.$piece.'`';
        }

        return implode('.', $pieces);
    }
public function quoteIdentifier ( $ value ) { if ( $ value instanceof Expr ) { return $ value -> getValue ( ) ; } if ( $ value === '*' ) { return $ value ; } $ pieces = explode ( '.' , $ value ) ; foreach ( $ pieces as $ key => $ piece ) { $ pieces [ $ key ] = '`' . $ piece . '`' ; } return implode ( '.' , $ pieces ) ; }
Wraps the input with identifiers when necessary.

@param Expr|string $value The string to be quoted, or an Expression to leave it untouched

@return string The untouched Expression or the quoted string
Wraps the input with identifiers when necessary .