diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-21 23:07:03 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-21 23:07:03 +0100 |
commit | b6adabf245fb2e32763dda43a54270eef11d3411 (patch) | |
tree | 1169c16521c05278789e22e70f88141f99d1e44d /bl/folderbl.php | |
parent | 7ed948b19b3e705dba95bef7d4b2a8630f342e12 (diff) |
finished foldercontroller
Diffstat (limited to 'bl/folderbl.php')
-rw-r--r-- | bl/folderbl.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bl/folderbl.php b/bl/folderbl.php index 74de71be9..8a75d5de7 100644 --- a/bl/folderbl.php +++ b/bl/folderbl.php @@ -42,6 +42,7 @@ class FolderBl extends Bl { public function create($name, $parentId) { + // TODO: throw error when already existing $folder = new Folder(); $folder->setName($name); $folder->setParentId($parentId); @@ -57,6 +58,7 @@ class FolderBl extends Bl { public function rename($folderId, $folderName, $userId){ + // TODO: throw error when already existing $folder = $this->find($folderId, $userId); $folder->setName($folderName); $this->mapper->update($folder); |