diff options
Diffstat (limited to 'external_api/feed.php')
-rw-r--r-- | external_api/feed.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/external_api/feed.php b/external_api/feed.php index dba518b7a..fcdfd2c7f 100644 --- a/external_api/feed.php +++ b/external_api/feed.php @@ -6,6 +6,10 @@ use \OCA\News\Controller\FeedController; class API_Feed { +// public __construct($feedbl) { +// $this->bl = $feedbl; +// } + public static function getAll() { $container = createDIContainer(); $bl = $container['FeedBL']; @@ -17,7 +21,7 @@ class API_Feed { return new \OC_OCS_Result($serializedFeeds); } - public static function getById($parameters) { + public function getById($parameters) { $feedid = $parameters['feedid']; $container = createDIContainer(); $bl = $container['FeedBL']; @@ -29,17 +33,17 @@ class API_Feed { public static function create() { $url = $_POST['url']; - $folderId = $_POST['folderId']; + $folderId = $_POST['folderid']; $container = createDIContainer(); $bl = $container['FeedBL']; $success = $bl->create($url, $folderId); if ($success) { - return new OC_OCS_Result(); + return new \OC_OCS_Result(); } else { - return new OC_OCS_Result(null, 101); + return new \OC_OCS_Result(null, 101); } } } |