diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-13 15:47:48 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-13 15:47:48 -0400 |
commit | 0b7435b8827081341a331ecdd5546ac25121d87d (patch) | |
tree | e439735e077ceb0b4f77266b1f3e9fcd337e55e8 /app/Api | |
parent | 41610150238a67471d79caa5bcb2ace1dd4578d1 (diff) |
API: new procedure 'removeAllFiles' and contract change for 'createFile'
Diffstat (limited to 'app/Api')
-rw-r--r-- | app/Api/File.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/Api/File.php b/app/Api/File.php index 65dff729..5b82179c 100644 --- a/app/Api/File.php +++ b/app/Api/File.php @@ -36,13 +36,18 @@ class File extends Base return ''; } - public function createFile($project_id, $task_id, $filename, $is_image, $blob) + public function createFile($project_id, $task_id, $filename, $blob) { - return $this->file->uploadContent($project_id, $task_id, $filename, $is_image, $blob); + return $this->file->uploadContent($project_id, $task_id, $filename, $blob); } public function removeFile($file_id) { return $this->file->remove($file_id); } + + public function removeAllFiles($task_id) + { + return $this->file->removeAll($task_id); + } } |