summaryrefslogtreecommitdiffstats
path: root/businesslayer/feedbusinesslayer.php
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2013-12-19 04:32:34 -0800
committerBernhard Posselt <Raydiation@users.noreply.github.com>2013-12-19 04:32:34 -0800
commit43f86e58d2976d4c56f1921b272380b66758ae67 (patch)
tree7ec302037c8f436635387ce145b0436bfb29dd32 /businesslayer/feedbusinesslayer.php
parent98d3328c5ea97b91faa184206799f4e7e7ccfd57 (diff)
parentfd6137741f6331da70432e063a576a63f5588466 (diff)
Merge pull request #411 from sub/issue242
Make feed title editable (FIX #242)
Diffstat (limited to 'businesslayer/feedbusinesslayer.php')
-rw-r--r--businesslayer/feedbusinesslayer.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/businesslayer/feedbusinesslayer.php b/businesslayer/feedbusinesslayer.php
index b7ad5987a..58a4ed578 100644
--- a/businesslayer/feedbusinesslayer.php
+++ b/businesslayer/feedbusinesslayer.php
@@ -226,6 +226,20 @@ class FeedBusinessLayer extends BusinessLayer {
/**
+ * Rename a feed
+ * @param int $feedId the id of the feed that should be moved
+ * @param string $feedTitle the new title of the feed
+ * @param string $userId the name of the user whose feed should be renamed
+ * @throws BusinessLayerException if the feed does not exist
+ */
+ public function rename($feedId, $feedTitle, $userId) {
+ $feed = $this->find($feedId, $userId);
+ $feed->setTitle($feedTitle);
+ $this->mapper->update($feed);
+ }
+
+
+ /**
* Import articles
* @param array $json the array with json
* @param string userId the username