diff options
author | Andrew Dolgov <[email protected]> | 2013-03-15 19:54:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-15 19:54:18 +0400 |
commit | 8c0496f74c60e47d9e2f87bb107d79b99c0070aa (patch) | |
tree | 4261c954aebeb4176074c8afc2f40b362ba56b15 /classes/Db/Abstract.php | |
parent | a48d8533bf6a353972248720cf19ffb5ba55041f (diff) |
Revert "Rewrote database support to classes, Fixed strict warning in sanitizedummy.php"
This reverts commit 65d0cc64a2ca1ce259fbba501b13deaf1870e540.
Diffstat (limited to 'classes/Db/Abstract.php')
-rw-r--r-- | classes/Db/Abstract.php | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/classes/Db/Abstract.php b/classes/Db/Abstract.php deleted file mode 100644 index d84701fd7..000000000 --- a/classes/Db/Abstract.php +++ /dev/null @@ -1,56 +0,0 @@ -<?php - -abstract class Db_Abstract implements Db_Interface -{ - private $dbconn; - protected static $instance; - - private function __construct() { } - - public static function instance() - { - if (is_null(static::$instance)) { - static::$instance = new static(); - } - - return static::$instance; - } - - public function connect($host, $user, $pass, $db) { } - - public function getLink() - { - return $this->dbconn; - } - - public function init() { } - - public function escape_string($s, $strip_tags = true) { } - - public function query($query, $die_on_error = true) { } - - public function fetch_assoc($result) { } - - public function num_rows($result) { } - - public function fetch_result($result, $row, $param) { } - - public function unescape_string($str) - { - $tmp = str_replace("\\\"", "\"", $str); - $tmp = str_replace("\\'", "'", $tmp); - return $tmp; - } - - public function close() { } - - public function affected_rows($result) { } - - public function last_error() { } - - public function quote($str) - { - return("'$str'"); - } - -}
\ No newline at end of file |