]> git.wh0rd.org - tt-rss.git/commitdiff
rm db_stmt
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 30 Nov 2017 08:53:21 +0000 (11:53 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 30 Nov 2017 08:53:21 +0000 (11:53 +0300)
classes/db/stmt.php [deleted file]

diff --git a/classes/db/stmt.php b/classes/db/stmt.php
deleted file mode 100644 (file)
index 7d6bbb3..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-class Db_Stmt {
-       private $stmt;
-       private $cache;
-
-       function __construct($stmt) {
-               $this->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