summaryrefslogtreecommitdiff
path: root/classes/db
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-11-30 11:53:21 +0300
committerAndrew Dolgov <[email protected]>2017-11-30 11:53:21 +0300
commitca82bb03c825f48d89c86d03c2c6159d339af3f9 (patch)
tree41b3987b90f5c3c28bb3bcd99848422c76175a1d /classes/db
parent99bda9cc12cd39907adc6b76dc3bee4e9241b52b (diff)
rm db_stmt
Diffstat (limited to 'classes/db')
-rw-r--r--classes/db/stmt.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/classes/db/stmt.php b/classes/db/stmt.php
deleted file mode 100644
index 7d6bbb30a..000000000
--- a/classes/db/stmt.php
+++ /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