From: Andrew Dolgov Date: Thu, 30 Nov 2017 08:53:21 +0000 (+0300) Subject: rm db_stmt X-Git-Tag: 17.12~102^2~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ca82bb03c825f48d89c86d03c2c6159d339af3f9;p=tt-rss.git rm db_stmt --- diff --git a/classes/db/stmt.php b/classes/db/stmt.php deleted file mode 100644 index 7d6bbb30..00000000 --- a/classes/db/stmt.php +++ /dev/null @@ -1,31 +0,0 @@ -stmt = $stmt; - $this->cache = false; - } - - function fetch_result($row, $param) { - if (!$this->cache) { - $this->cache = $this->stmt->fetchAll(); - } - - if (isset($this->cache[$row])) { - return $this->cache[$row][$param]; - } else { - user_error("Unable to jump to row $row", E_USER_WARNING); - return false; - } - } - - function rowCount() { - return $this->stmt->rowCount(); - } - - function fetch() { - return $this->stmt->fetch(); - } -} \ No newline at end of file