From 44e77bfa2481090e559b56fd8ffbe5b175ab55ca Mon Sep 17 00:00:00 2001 From: nicosomb Date: Sun, 21 Apr 2013 18:09:25 +0200 Subject: =?UTF-8?q?Fixed=20#55=20-=20export=20des=20donn=C3=A9es=20au=20fo?= =?UTF-8?q?rmat=20json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/store/sqlite.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'inc/store/sqlite.class.php') 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 { } } + public function retrieveAll() { + $sql = "SELECT * FROM entries ORDER BY id"; + $query = $this->executeQuery($sql, array()); + $entries = $query->fetchAll(); + + return $entries; + } + public function retrieveOneById($id) { parent::__construct(); -- cgit v1.2.3