1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 07:51:28 +00:00

Revert "db: use builtin classloader, lowercase class files"

This reverts commit 57b8469e67.
This commit is contained in:
Andrew Dolgov
2013-03-15 19:54:08 +04:00
parent e600dbd44a
commit a48d8533bf
7 changed files with 21 additions and 20 deletions

56
classes/Db/Abstract.php Normal file
View File

@@ -0,0 +1,56 @@
<?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'");
}
}