diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2013-03-03 22:27:18 +0100 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2013-03-03 22:27:18 +0100 |
commit | ef450898bb702877dafb755e425fe8f37b23417b (patch) | |
tree | 53162b432a7f5a6c9d99d9eb77aee30d670853ae /folder.bl.php | |
parent | 0852773340ed26ecc8faa8e61192f38132673bc6 (diff) |
create folder api call
Diffstat (limited to 'folder.bl.php')
-rw-r--r-- | folder.bl.php | 6 |
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); + } } |