summaryrefslogtreecommitdiffstats
path: root/external/itemapi.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-02 16:55:11 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-02 16:55:11 +0200
commitc8c01278d837b3ecc01636fdd5b2d52638833687 (patch)
treebe9a12ebe3734978486623427e914d8b4db9982c /external/itemapi.php
parentdf91fdfa373cacef6aa20998a00b8fbcfd164d1b (diff)
implement all routes and function bodies for api calls
Diffstat (limited to 'external/itemapi.php')
-rw-r--r--external/itemapi.php84
1 files changed, 84 insertions, 0 deletions
diff --git a/external/itemapi.php b/external/itemapi.php
new file mode 100644
index 000000000..4bb4f53af
--- /dev/null
+++ b/external/itemapi.php
@@ -0,0 +1,84 @@
+<?php
+
+/**
+* ownCloud - News
+*
+* @author Alessandro Cosentino
+* @author Bernhard Posselt
+* @copyright 2012 Alessandro Cosentino cosenal@gmail.com
+* @copyright 2012 Bernhard Posselt nukeawhale@gmail.com
+*
+* This library is free software; you can redistribute it and/or
+* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
+* License as published by the Free Software Foundation; either
+* version 3 of the License, or any later version.
+*
+* This library is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
+*
+* You should have received a copy of the GNU Affero General Public
+* License along with this library. If not, see <http://www.gnu.org/licenses/>.
+*
+*/
+
+namespace OCA\News\External;
+
+use \OCA\AppFramework\Core\API;
+use \OCA\AppFramework\Http\Request;
+
+use \OCA\News\BusinessLayer\ItemBusinessLayer;
+use \OCA\News\BusinessLayer\BusinessLayerException;
+
+
+class ItemAPI {
+
+ private $itemBusinessLayer;
+ private $api;
+ private $request;
+
+ public function __construct(API $api,
+ Request $request,
+ ItemBusinessLayer $itemBusinessLayer){
+ $this->api = $api;
+ $this->itemBusinessLayer = $itemBusinessLayer;
+ }
+
+
+ public function getAll() {
+
+ }
+
+
+ public function getUpdated() {
+
+ }
+
+
+ public function get() {
+
+ }
+
+
+ public function read() {
+
+ }
+
+
+ public function unread() {
+
+ }
+
+
+ public function star() {
+
+ }
+
+
+ public function unstar() {
+
+ }
+
+
+}