aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/store
diff options
context:
space:
mode:
Diffstat (limited to 'inc/store')
-rw-r--r--inc/store/sqlite.class.php8
-rw-r--r--inc/store/store.class.php4
2 files changed, 12 insertions, 0 deletions
diff --git a/inc/store/sqlite.class.php b/inc/store/sqlite.class.php
index b2ae94a7..d5208a29 100644
--- a/inc/store/sqlite.class.php
+++ b/inc/store/sqlite.class.php
@@ -38,6 +38,14 @@ class Sqlite extends Store {
38 } 38 }
39 } 39 }
40 40
41 public function retrieveAll() {
42 $sql = "SELECT * FROM entries ORDER BY id";
43 $query = $this->executeQuery($sql, array());
44 $entries = $query->fetchAll();
45
46 return $entries;
47 }
48
41 public function retrieveOneById($id) { 49 public function retrieveOneById($id) {
42 parent::__construct(); 50 parent::__construct();
43 51
diff --git a/inc/store/store.class.php b/inc/store/store.class.php
index ae3cb341..360ff7c2 100644
--- a/inc/store/store.class.php
+++ b/inc/store/store.class.php
@@ -17,6 +17,10 @@ class Store {
17 17
18 } 18 }
19 19
20 public function retrieveAll() {
21
22 }
23
20 public function retrieveOneById($id) { 24 public function retrieveOneById($id) {
21 25
22 } 26 }