diff options
author | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-12-19 04:32:34 -0800 |
---|---|---|
committer | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-12-19 04:32:34 -0800 |
commit | 43f86e58d2976d4c56f1921b272380b66758ae67 (patch) | |
tree | 7ec302037c8f436635387ce145b0436bfb29dd32 /businesslayer | |
parent | 98d3328c5ea97b91faa184206799f4e7e7ccfd57 (diff) | |
parent | fd6137741f6331da70432e063a576a63f5588466 (diff) |
Merge pull request #411 from sub/issue242
Make feed title editable (FIX #242)
Diffstat (limited to 'businesslayer')
-rw-r--r-- | businesslayer/feedbusinesslayer.php | 14 |
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 |