summaryrefslogtreecommitdiffstats
path: root/folder.bl.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2013-03-03 22:27:18 +0100
committerAlessandro Cosentino <cosenal@gmail.com>2013-03-03 22:27:18 +0100
commitef450898bb702877dafb755e425fe8f37b23417b (patch)
tree53162b432a7f5a6c9d99d9eb77aee30d670853ae /folder.bl.php
parent0852773340ed26ecc8faa8e61192f38132673bc6 (diff)
create folder api call
Diffstat (limited to 'folder.bl.php')
-rw-r--r--folder.bl.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/folder.bl.php b/folder.bl.php
index ff1164c28..4bc0f45ab 100644
--- a/folder.bl.php
+++ b/folder.bl.php
@@ -11,4 +11,10 @@ class FolderBL {
public function getAll() {
return $this->folderMapper->getAll();
}
+
+ public function create($name, $parentId) {
+ //TODO: change the setparentid in the model class Folder
+ $folder = new Folder($name, null, null);
+ return $this->folderMapper->save($folder);
+ }
}