From 264ce12658e665f17ed5ad676371501ad6bdbc7e Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 9 Jan 2013 11:56:02 +0100 Subject: [PATCH] Removed obsolete get_years method. --- src/html/api/entry.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/html/api/entry.php b/src/html/api/entry.php index fa684a7..de509b9 100644 --- a/src/html/api/entry.php +++ b/src/html/api/entry.php @@ -105,29 +105,6 @@ class EntryAPI extends RestAPI { } } - - protected function get_years() { - $account=$this->_request['account']; - - $connection=$this->get_db_connection(); - - $statement=$connection->prepare("select distinct extract(year from value_date) as year from entry where account_id = :account order by year desc"); - $statement->bindParam("account", $account); - - $return=$statement->execute(); - - if($return) { - $result=[]; - foreach($statement->fetchAll(PDO::FETCH_NUM) as $value) { - array_push($result, $value[0]); - } - $this->response($result); - } else { - $this->response($statement->errorInfo()[2], 500); - } - } - - protected function get_months() { $account=$this->_request['account'];