diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-02 17:08:33 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-02 17:09:59 +0200 |
commit | f8ce1854ba4678c001cb317329bde46008dcd1ea (patch) | |
tree | 63874865dc29088bb287052da5a450eed1f62548 /lib/foldermapper.php | |
parent | a5495046a484fd699717463185de3a9018f96c81 (diff) |
changing folder names works now
Diffstat (limited to 'lib/foldermapper.php')
-rw-r--r-- | lib/foldermapper.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/foldermapper.php b/lib/foldermapper.php index abc89b5af..eb64fa871 100644 --- a/lib/foldermapper.php +++ b/lib/foldermapper.php @@ -128,6 +128,20 @@ class FolderMapper { return $folderid; } + + /** + * @brief Updates the folder + * @param folder the folder to be updated + */ + public function update(Folder $folder){ + $query = \OCP\DB::prepare('UPDATE ' . self::tableName + . ' SET name = ? ' . ' WHERE id = ?'); + + $params = array(htmlspecialchars_decode($folder->getName()), $folder->getId()); + $query->execute($params); + return true; + } + /** * @brief Delete the folder and all its feeds from the database * @param folder the folder to be deleted (an instance of OCA\News\Folder) |