protected function escapeWithNoConnection($text)
    {
        if (is_int($text) || is_float($text)) {
            return $text;
        }

        $text = str_replace("'", "''", $text);

        return addcslashes($text, "\000\n\r\\\032");
    }
protected function escapeWithNoConnection($text)
    {
        if (is_int($text) || is_float($text)) {
            return $text;
        }

        $text = str_replace("'", "''", $text);

        return addcslashes($text, "\000\n\r\\\032");
    }
protected function escapeWithNoConnection ( $ text ) { if ( is_int ( $ text ) || is_float ( $ text ) ) { return $ text ; } $ text = str_replace ( "'" , "''" , $ text ) ; return addcslashes ( $ text , "\000\n\r\\\032" ) ; }
If no connection set, we escape it with default function.

@param string $text

@return  string  The escaped string.
If no connection set we escape it with default function .