Library/Joomla/Database/Driver/AbstractDoctrineDriver.php
public function escape($text, $extra = false)
    {
        if (is_int($text) || is_float($text)) {
            return $text;
        }

        $result = substr($this->connection->quote($text), 1, -1);

        if ($extra) {
            $result = addcslashes($result, '%_');
        }

        return $result;
    }
public function escape($text, $extra = false)
    {
        if (is_int($text) || is_float($text)) {
            return $text;
        }

        $result = substr($this->connection->quote($text), 1, -1);

        if ($extra) {
            $result = addcslashes($result, '%_');
        }

        return $result;
    }
public function escape ( $ text , $ extra = false ) { if ( is_int ( $ text ) || is_float ( $ text ) ) { return $ text ; } $ result = substr ( $ this -> connection -> quote ( $ text ) , 1 , - 1 ) ; if ( $ extra ) { $ result = addcslashes ( $ result , '%_' ) ; } return $ result ; }
Escapes a string for usage in an SQL statement.

@param   string $text  The string to be escaped.
@param   bool   $extra Optional parameter to provide extra escaping.

@return  string   The escaped string.
@author Maximiian Ruta <mr@xtain.net>
Escapes a string for usage in an SQL statement .