* Delete useless method.
This commit is contained in:
@@ -42,14 +42,6 @@ class sqlite
|
||||
*/
|
||||
public $dbh = null;
|
||||
|
||||
/**
|
||||
* Magic quote or not.
|
||||
*
|
||||
* @var bool
|
||||
* @access public
|
||||
*/
|
||||
public $magicQuote;
|
||||
|
||||
/**
|
||||
* __construct
|
||||
*
|
||||
@@ -226,21 +218,4 @@ class sqlite
|
||||
{
|
||||
return $this->dbh->exec($sql);
|
||||
}
|
||||
|
||||
/**
|
||||
* Quote a var.
|
||||
*
|
||||
* @param mixed $value
|
||||
* @access public
|
||||
* @return mixed
|
||||
*/
|
||||
public function quote($value, $driver = 'mysql')
|
||||
{
|
||||
if(is_null($value)) return 'NULL';
|
||||
|
||||
if($this->magicQuote) $value = stripslashes($value);
|
||||
|
||||
$dbh = $driver == 'sqlite' ? 'dbh' : 'mysql';
|
||||
return $this->$dbh->quote((string)$value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user