summaryrefslogtreecommitdiffstats
path: root/businesslayer
diff options
context:
space:
mode:
authorDavide Saurino <davide.saurino@alcacoop.it>2013-11-12 10:46:31 +0100
committerDavide Saurino <davide.saurino@alcacoop.it>2013-11-12 10:46:31 +0100
commitbe253cdc1ba255cecb0dba910e1fc7b08b7707eb (patch)
tree303460a33d239874c341e02f89584c0ace9e2462 /businesslayer
parentd6fdba30fba1e7f905be23478831a091b71ddbde (diff)
Make feed title editable (FIX #242)
Diffstat (limited to 'businesslayer')
-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