public function quote($string)
{
/**
* quote:
*
* string mysqli_real_escape_string ( mysqli $link , string $escapestr )
* string pg_escape_string ([ resource $connection ], string $data )
* string PDO::quote ( string $string [, int $parameter_type = PDO::PARAM_STR ] )
*
* $driver->configure('quote',array($pgconn,'escape_string'));
*/
if ($this->quoter) {
return call_user_func($this->quoter, $string);
}
// Defualt escape function, this is not safe.
return "'" . addslashes($string) . "'";
}