summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-02 16:57:57 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-02 16:57:57 +0200
commitd89931b22abdcfe2ab4c6f4feb3b889d15524277 (patch)
treee540f046949adc249bffe034e92377fe9b069f15 /external
parent85534b81680c650a3470a1f2f98604b390603991 (diff)
use controller parent class for external api
Diffstat (limited to 'external')
-rw-r--r--external/feedapi.php7
-rw-r--r--external/folderapi.php7
-rw-r--r--external/itemapi.php8
3 files changed, 10 insertions, 12 deletions
diff --git a/external/feedapi.php b/external/feedapi.php
index e13ee9b0a..7dfceccc8 100644
--- a/external/feedapi.php
+++ b/external/feedapi.php
@@ -26,6 +26,7 @@
namespace OCA\News\External;
use \OCA\AppFramework\Core\API;
+use \OCA\AppFramework\Controller\Controller;
use \OCA\AppFramework\Http\Request;
use \OCA\News\BusinessLayer\FeedBusinessLayer;
@@ -34,20 +35,18 @@ use \OCA\News\BusinessLayer\ItemBusinessLayer;
use \OCA\News\BusinessLayer\BusinessLayerException;
-class FeedAPI {
+class FeedAPI extends Controller {
private $itemBusinessLayer;
private $feedBusinessLayer;
private $folderBusinessLayer;
- private $api;
- private $request;
public function __construct(API $api,
Request $request,
FolderBusinessLayer $folderBusinessLayer,
FeedBusinessLayer $feedBusinessLayer,
ItemBusinessLayer $itemBusinessLayer){
- $this->api = $api;
+ parent::__construct($api, $request);
$this->folderBusinessLayer = $folderBusinessLayer;
$this->feedBusinessLayer = $feedBusinessLayer;
$this->itemBusinessLayer = $itemBusinessLayer;
diff --git a/external/folderapi.php b/external/folderapi.php
index 283230fdc..7d490ded4 100644
--- a/external/folderapi.php
+++ b/external/folderapi.php
@@ -26,22 +26,21 @@
namespace OCA\News\External;
use \OCA\AppFramework\Core\API;
+use \OCA\AppFramework\Controller\Controller;
use \OCA\AppFramework\Http\Request;
use \OCA\News\BusinessLayer\FolderBusinessLayer;
use \OCA\News\BusinessLayer\BusinessLayerException;
-class FolderAPI {
+class FolderAPI extends Controller {
private $folderBusinessLayer;
- private $api;
- private $request;
public function __construct(API $api,
Request $request,
FolderBusinessLayer $folderBusinessLayer){
- $this->api = $api;
+ parent::__construct($api, $request);
$this->folderBusinessLayer = $folderBusinessLayer;
}
diff --git a/external/itemapi.php b/external/itemapi.php
index 4bb4f53af..53b88f4e4 100644
--- a/external/itemapi.php
+++ b/external/itemapi.php
@@ -26,22 +26,22 @@
namespace OCA\News\External;
use \OCA\AppFramework\Core\API;
+use \OCA\AppFramework\Controller\Controller;
use \OCA\AppFramework\Http\Request;
use \OCA\News\BusinessLayer\ItemBusinessLayer;
use \OCA\News\BusinessLayer\BusinessLayerException;
-class ItemAPI {
+class ItemAPI extends Controller {
private $itemBusinessLayer;
- private $api;
- private $request;
+ parent::__construct($api, $request);
public function __construct(API $api,
Request $request,
ItemBusinessLayer $itemBusinessLayer){
- $this->api = $api;
+ parent::__construct($api, $request);
$this->itemBusinessLayer = $itemBusinessLayer;
}