diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-15 16:02:32 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-15 16:02:32 +0200 |
commit | 464ff6c4c1bda3edbd0f132c4d3d866539d3a117 (patch) | |
tree | 96b8fd57e24ebaab762a190a933cd98e1c7a4881 /controller/exportcontroller.php | |
parent | 89c31ab5fcb2f931fecc5ce82608ff7c8129510a (diff) |
renamed bl to businesslayer, handle exception in update routine, fix #69
Diffstat (limited to 'controller/exportcontroller.php')
-rw-r--r-- | controller/exportcontroller.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/controller/exportcontroller.php b/controller/exportcontroller.php index 960748d3e..023a4d39d 100644 --- a/controller/exportcontroller.php +++ b/controller/exportcontroller.php @@ -30,21 +30,23 @@ use \OCA\AppFramework\Core\API; use \OCA\AppFramework\Http\Request; use \OCA\AppFramework\Http\TextDownloadResponse; -use \OCA\News\Bl\FeedBl; -use \OCA\News\Bl\FolderBl; +use \OCA\News\BusinessLayer\FeedBusinessLayer; +use \OCA\News\BusinessLayer\FolderBusinessLayer; use \OCA\News\Utility\OPMLExporter; class ExportController extends Controller { private $opmlExporter; - private $folderBl; - private $feedBl; + private $folderBusinessLayer; + private $feedBusinessLayer; - public function __construct(API $api, Request $request, FeedBl $feedBl, - FolderBl $folderBl, OPMLExporter $opmlExporter){ + public function __construct(API $api, Request $request, + FeedBusinessLayer $feedBusinessLayer, + FolderBusinessLayer $folderBusinessLayer, + OPMLExporter $opmlExporter){ parent::__construct($api, $request); - $this->feedBl = $feedBl; - $this->folderBl = $folderBl; + $this->feedBusinessLayer = $feedBusinessLayer; + $this->folderBusinessLayer = $folderBusinessLayer; $this->opmlExporter = $opmlExporter; } @@ -56,8 +58,8 @@ class ExportController extends Controller { */ public function opml(){ $user = $this->api->getUserId(); - $feeds = $this->feedBl->findAll($user); - $folders = $this->folderBl->findAll($user); + $feeds = $this->feedBusinessLayer->findAll($user); + $folders = $this->folderBusinessLayer->findAll($user); $opml = $this->opmlExporter->build($folders, $feeds)->saveXML(); return new TextDownloadResponse($opml, 'subscriptions.opml', 'text/xml'); } |