diff options
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); + } } |