Commit 1b6974c2 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #21 in ZP/z-push from...

Merge pull request #21 in ZP/z-push from bugfix/ZP-658-backendcombined-add-emptyfolder-function to develop

* commit 'e83df703':
  ZP-658 Add EmptyFolder function. Released under the Affero GNU General Public License (AGPL) version 3.
parents 316da552 e83df703
......@@ -369,6 +369,27 @@ class BackendCombined extends Backend {
return $backend->MeetingResponse($requestid, $this->GetBackendFolder($folderid), $response);
}
/**
* Deletes all contents of the specified folder.
* This is generally used to empty the trash (wastebasked), but could also be used on any
* other folder.
*
* @param string $folderid
* @param boolean $includeSubfolders (opt) also delete sub folders, default true
*
* @access public
* @return boolean
* @throws StatusException
*/
public function EmptyFolder($folderid, $includeSubfolders = true) {
$backend = $this->GetBackend($folderid);
if($backend === false)
return false;
return $backend->EmptyFolder($this->GetBackendFolder($folderid), $includeSubfolders);
}
/**
* Finds the correct backend for a folder
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment