summaryrefslogtreecommitdiffstats
path: root/bl/folderbl.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-22 11:18:16 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-22 11:18:16 +0100
commit13eed83a10cfb5e2fa67e1039e12f3ccdf91a57d (patch)
tree0bbb71dbb4ae6075fa4a61643eaa3373b6ea9fb5 /bl/folderbl.php
parente674fe47e6a44d693314af4149022d51597b42ab (diff)
renamed utils into something more accurated
Diffstat (limited to 'bl/folderbl.php')
-rw-r--r--bl/folderbl.php2
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);