diff options
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 19c31657c..638f10bd3 100644 --- a/bl/folderbl.php +++ b/bl/folderbl.php @@ -40,6 +40,7 @@ class FolderBl extends Bl { return $this->mapper->findAllFromUser($userId); } + private function allowNoNameTwice($folderName, $userId){ $existingFolders = $this->mapper->findByName($folderName, $userId); if(count($existingFolders) > 0){ @@ -48,6 +49,7 @@ class FolderBl extends Bl { } } + public function create($folderName, $userId, $parentId=0) { $this->allowNoNameTwice($folderName, $userId); |