diff options
author | Sam Tuke <samtuke@owncloud.com> | 2012-06-21 18:07:21 +0100 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2012-06-21 18:15:22 +0100 |
commit | a9a913c27304c395c3f6af3487781d02790b8009 (patch) | |
tree | c0da4444f8cce48974e5391b3ea37bdf55a6139e /apps/files_sharing | |
parent | 49033ff8e0dd89d964264f269930b0587b8479c4 (diff) | |
download | nextcloud-server-a9a913c27304c395c3f6af3487781d02790b8009.tar.gz nextcloud-server-a9a913c27304c395c3f6af3487781d02790b8009.zip |
Implemented deleteAll() method in OC_FilesystemView (interface) and OC_Filestorage_Common (logic)
Made OC_Filestorage_Local and OC_Filestorage_Shared extend OC_Filestorage_Common
Set searchInDir() to protected instead of private in OC_Filestorage_Local and OC_Filestorage_Shared
Added class documentation to OC_Filestorage_Common
Cleaned up OCA_Versions::expireAll()
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/sharedstorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index 62c86ee18e4..fed1b834fa3 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -25,7 +25,7 @@ require_once( 'lib_share.php' ); /** * Convert target path to source path and pass the function call to the correct storage provider */ -class OC_Filestorage_Shared extends OC_Filestorage { +class OC_Filestorage_Shared extends OC_Filestorage_Common { private $datadir; private $sourcePaths = array(); @@ -492,7 +492,7 @@ class OC_Filestorage_Shared extends OC_Filestorage { return $this->searchInDir($query); } - private function searchInDir($query, $path = "") { + protected function searchInDir($query, $path = "") { $files = array(); if ($dh = $this->opendir($path)) { while (($filename = readdir($dh)) !== false) { |