diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-30 13:23:10 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:28 +0200 |
commit | a905f641b3e619838c945caa29a1604f5b3ab8ba (patch) | |
tree | 1c7e853b87b6fde1fc14f16a38cdf12a89f51d18 /apps | |
parent | 3e6eb28ee39d366bccfb8a1c96839f4b05c9da6e (diff) | |
download | nextcloud-server-a905f641b3e619838c945caa29a1604f5b3ab8ba.tar.gz nextcloud-server-a905f641b3e619838c945caa29a1604f5b3ab8ba.zip |
various fixes & start to unit test the encryption storage wrapper
Diffstat (limited to 'apps')
-rw-r--r-- | apps/encryption_dummy/lib/dummymodule.php | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/apps/encryption_dummy/lib/dummymodule.php b/apps/encryption_dummy/lib/dummymodule.php index 8ca9cd4f9af..55e8f26af95 100644 --- a/apps/encryption_dummy/lib/dummymodule.php +++ b/apps/encryption_dummy/lib/dummymodule.php @@ -23,7 +23,9 @@ namespace OCA\Encryption_Dummy; -class DummyModule implements \OCP\Encryption\IEncryptionModule { +use OCP\Encryption\IEncryptionModule; + +class DummyModule implements IEncryptionModule { /** @var boolean */ protected $isWriteOperation; @@ -104,17 +106,6 @@ class DummyModule implements \OCP\Encryption\IEncryptionModule { } /** - * update encrypted file, e.g. give additional users access to the file - * - * @param string $path path to the file which should be updated - * @param array $accessList who has access to the file contains the key 'users' and 'public' - * @return boolean - */ - public function update($path, $accessList) { - return true; - } - - /** * should the file be encrypted or not * * @param string $path @@ -142,4 +133,15 @@ class DummyModule implements \OCP\Encryption\IEncryptionModule { return 6126; } -}
\ No newline at end of file + /** + * update encrypted file, e.g. give additional users access to the file + * + * @param string $path path to the file which should be updated + * @param string $uid of the user who performs the operation + * @param array $accessList who has access to the file contains the key 'users' and 'public' + * @return boolean + */ + public function update($path, $uid, $accessList) { + return true; + } +} |