@@ -31,75 +31,75 @@ |
||
31 | 31 | * @since 9.0.0 |
32 | 32 | */ |
33 | 33 | interface IUserMountCache { |
34 | - /** |
|
35 | - * Register mounts for a user to the cache |
|
36 | - * |
|
37 | - * @param IUser $user |
|
38 | - * @param IMountPoint[] $mounts |
|
39 | - * @since 9.0.0 |
|
40 | - */ |
|
41 | - public function registerMounts(IUser $user, array $mounts); |
|
34 | + /** |
|
35 | + * Register mounts for a user to the cache |
|
36 | + * |
|
37 | + * @param IUser $user |
|
38 | + * @param IMountPoint[] $mounts |
|
39 | + * @since 9.0.0 |
|
40 | + */ |
|
41 | + public function registerMounts(IUser $user, array $mounts); |
|
42 | 42 | |
43 | - /** |
|
44 | - * Get all cached mounts for a user |
|
45 | - * |
|
46 | - * @param IUser $user |
|
47 | - * @return ICachedMountInfo[] |
|
48 | - * @since 9.0.0 |
|
49 | - */ |
|
50 | - public function getMountsForUser(IUser $user); |
|
43 | + /** |
|
44 | + * Get all cached mounts for a user |
|
45 | + * |
|
46 | + * @param IUser $user |
|
47 | + * @return ICachedMountInfo[] |
|
48 | + * @since 9.0.0 |
|
49 | + */ |
|
50 | + public function getMountsForUser(IUser $user); |
|
51 | 51 | |
52 | - /** |
|
53 | - * Get all cached mounts by storage |
|
54 | - * |
|
55 | - * @param int $numericStorageId |
|
56 | - * @return ICachedMountInfo[] |
|
57 | - * @since 9.0.0 |
|
58 | - */ |
|
59 | - public function getMountsForStorageId($numericStorageId); |
|
52 | + /** |
|
53 | + * Get all cached mounts by storage |
|
54 | + * |
|
55 | + * @param int $numericStorageId |
|
56 | + * @return ICachedMountInfo[] |
|
57 | + * @since 9.0.0 |
|
58 | + */ |
|
59 | + public function getMountsForStorageId($numericStorageId); |
|
60 | 60 | |
61 | - /** |
|
62 | - * Get all cached mounts by root |
|
63 | - * |
|
64 | - * @param int $rootFileId |
|
65 | - * @return ICachedMountInfo[] |
|
66 | - * @since 9.0.0 |
|
67 | - */ |
|
68 | - public function getMountsForRootId($rootFileId); |
|
61 | + /** |
|
62 | + * Get all cached mounts by root |
|
63 | + * |
|
64 | + * @param int $rootFileId |
|
65 | + * @return ICachedMountInfo[] |
|
66 | + * @since 9.0.0 |
|
67 | + */ |
|
68 | + public function getMountsForRootId($rootFileId); |
|
69 | 69 | |
70 | - /** |
|
71 | - * Get all cached mounts that contain a file |
|
72 | - * |
|
73 | - * @param int $fileId |
|
74 | - * @return ICachedMountInfo[] |
|
75 | - * @since 9.0.0 |
|
76 | - */ |
|
77 | - public function getMountsForFileId($fileId); |
|
70 | + /** |
|
71 | + * Get all cached mounts that contain a file |
|
72 | + * |
|
73 | + * @param int $fileId |
|
74 | + * @return ICachedMountInfo[] |
|
75 | + * @since 9.0.0 |
|
76 | + */ |
|
77 | + public function getMountsForFileId($fileId); |
|
78 | 78 | |
79 | - /** |
|
80 | - * Remove all cached mounts for a user |
|
81 | - * |
|
82 | - * @param IUser $user |
|
83 | - * @since 9.0.0 |
|
84 | - */ |
|
85 | - public function removeUserMounts(IUser $user); |
|
79 | + /** |
|
80 | + * Remove all cached mounts for a user |
|
81 | + * |
|
82 | + * @param IUser $user |
|
83 | + * @since 9.0.0 |
|
84 | + */ |
|
85 | + public function removeUserMounts(IUser $user); |
|
86 | 86 | |
87 | - /** |
|
88 | - * Remove all mounts for a user and storage |
|
89 | - * |
|
90 | - * @param $storageId |
|
91 | - * @param string $userId |
|
92 | - * @return mixed |
|
93 | - * @since 9.0.0 |
|
94 | - */ |
|
95 | - public function removeUserStorageMount($storageId, $userId); |
|
87 | + /** |
|
88 | + * Remove all mounts for a user and storage |
|
89 | + * |
|
90 | + * @param $storageId |
|
91 | + * @param string $userId |
|
92 | + * @return mixed |
|
93 | + * @since 9.0.0 |
|
94 | + */ |
|
95 | + public function removeUserStorageMount($storageId, $userId); |
|
96 | 96 | |
97 | - /** |
|
98 | - * Remove all cached mounts for a storage |
|
99 | - * |
|
100 | - * @param $storageId |
|
101 | - * @return mixed |
|
102 | - * @since 9.0.0 |
|
103 | - */ |
|
104 | - public function remoteStorageMounts($storageId); |
|
97 | + /** |
|
98 | + * Remove all cached mounts for a storage |
|
99 | + * |
|
100 | + * @param $storageId |
|
101 | + * @return mixed |
|
102 | + * @since 9.0.0 |
|
103 | + */ |
|
104 | + public function remoteStorageMounts($storageId); |
|
105 | 105 | } |
@@ -31,13 +31,13 @@ |
||
31 | 31 | * @since 9.1.0 |
32 | 32 | */ |
33 | 33 | interface IHomeMountProvider { |
34 | - /** |
|
35 | - * Get all mountpoints applicable for the user |
|
36 | - * |
|
37 | - * @param \OCP\IUser $user |
|
38 | - * @param \OCP\Files\Storage\IStorageFactory $loader |
|
39 | - * @return \OCP\Files\Mount\IMountPoint|null |
|
40 | - * @since 9.1.0 |
|
41 | - */ |
|
42 | - public function getHomeMountForUser(IUser $user, IStorageFactory $loader); |
|
34 | + /** |
|
35 | + * Get all mountpoints applicable for the user |
|
36 | + * |
|
37 | + * @param \OCP\IUser $user |
|
38 | + * @param \OCP\Files\Storage\IStorageFactory $loader |
|
39 | + * @return \OCP\Files\Mount\IMountPoint|null |
|
40 | + * @since 9.1.0 |
|
41 | + */ |
|
42 | + public function getHomeMountForUser(IUser $user, IStorageFactory $loader); |
|
43 | 43 | } |
@@ -30,34 +30,34 @@ |
||
30 | 30 | */ |
31 | 31 | interface IObjectStore { |
32 | 32 | |
33 | - /** |
|
34 | - * @return string the container or bucket name where objects are stored |
|
35 | - * @since 7.0.0 |
|
36 | - */ |
|
37 | - function getStorageId(); |
|
33 | + /** |
|
34 | + * @return string the container or bucket name where objects are stored |
|
35 | + * @since 7.0.0 |
|
36 | + */ |
|
37 | + function getStorageId(); |
|
38 | 38 | |
39 | - /** |
|
40 | - * @param string $urn the unified resource name used to identify the object |
|
41 | - * @return resource stream with the read data |
|
42 | - * @throws \Exception when something goes wrong, message will be logged |
|
43 | - * @since 7.0.0 |
|
44 | - */ |
|
45 | - function readObject($urn); |
|
39 | + /** |
|
40 | + * @param string $urn the unified resource name used to identify the object |
|
41 | + * @return resource stream with the read data |
|
42 | + * @throws \Exception when something goes wrong, message will be logged |
|
43 | + * @since 7.0.0 |
|
44 | + */ |
|
45 | + function readObject($urn); |
|
46 | 46 | |
47 | - /** |
|
48 | - * @param string $urn the unified resource name used to identify the object |
|
49 | - * @param resource $stream stream with the data to write |
|
50 | - * @throws \Exception when something goes wrong, message will be logged |
|
51 | - * @since 7.0.0 |
|
52 | - */ |
|
53 | - function writeObject($urn, $stream); |
|
47 | + /** |
|
48 | + * @param string $urn the unified resource name used to identify the object |
|
49 | + * @param resource $stream stream with the data to write |
|
50 | + * @throws \Exception when something goes wrong, message will be logged |
|
51 | + * @since 7.0.0 |
|
52 | + */ |
|
53 | + function writeObject($urn, $stream); |
|
54 | 54 | |
55 | - /** |
|
56 | - * @param string $urn the unified resource name used to identify the object |
|
57 | - * @return void |
|
58 | - * @throws \Exception when something goes wrong, message will be logged |
|
59 | - * @since 7.0.0 |
|
60 | - */ |
|
61 | - function deleteObject($urn); |
|
55 | + /** |
|
56 | + * @param string $urn the unified resource name used to identify the object |
|
57 | + * @return void |
|
58 | + * @throws \Exception when something goes wrong, message will be logged |
|
59 | + * @since 7.0.0 |
|
60 | + */ |
|
61 | + function deleteObject($urn); |
|
62 | 62 | |
63 | 63 | } |
@@ -40,50 +40,50 @@ |
||
40 | 40 | */ |
41 | 41 | class StorageNotAvailableException extends HintException { |
42 | 42 | |
43 | - const STATUS_SUCCESS = 0; |
|
44 | - const STATUS_ERROR = 1; |
|
45 | - const STATUS_INDETERMINATE = 2; |
|
46 | - const STATUS_INCOMPLETE_CONF = 3; |
|
47 | - const STATUS_UNAUTHORIZED = 4; |
|
48 | - const STATUS_TIMEOUT = 5; |
|
49 | - const STATUS_NETWORK_ERROR = 6; |
|
43 | + const STATUS_SUCCESS = 0; |
|
44 | + const STATUS_ERROR = 1; |
|
45 | + const STATUS_INDETERMINATE = 2; |
|
46 | + const STATUS_INCOMPLETE_CONF = 3; |
|
47 | + const STATUS_UNAUTHORIZED = 4; |
|
48 | + const STATUS_TIMEOUT = 5; |
|
49 | + const STATUS_NETWORK_ERROR = 6; |
|
50 | 50 | |
51 | - /** |
|
52 | - * StorageNotAvailableException constructor. |
|
53 | - * |
|
54 | - * @param string $message |
|
55 | - * @param int $code |
|
56 | - * @param \Exception $previous |
|
57 | - * @since 6.0.0 |
|
58 | - */ |
|
59 | - public function __construct($message = '', $code = self::STATUS_ERROR, \Exception $previous = null) { |
|
60 | - $l = \OC::$server->getL10N('core'); |
|
61 | - parent::__construct($message, $l->t('Storage is temporarily not available'), $code, $previous); |
|
62 | - } |
|
51 | + /** |
|
52 | + * StorageNotAvailableException constructor. |
|
53 | + * |
|
54 | + * @param string $message |
|
55 | + * @param int $code |
|
56 | + * @param \Exception $previous |
|
57 | + * @since 6.0.0 |
|
58 | + */ |
|
59 | + public function __construct($message = '', $code = self::STATUS_ERROR, \Exception $previous = null) { |
|
60 | + $l = \OC::$server->getL10N('core'); |
|
61 | + parent::__construct($message, $l->t('Storage is temporarily not available'), $code, $previous); |
|
62 | + } |
|
63 | 63 | |
64 | - /** |
|
65 | - * Get the name for a status code |
|
66 | - * |
|
67 | - * @param int $code |
|
68 | - * @return string |
|
69 | - * @since 9.0.0 |
|
70 | - */ |
|
71 | - public static function getStateCodeName($code) { |
|
72 | - switch ($code) { |
|
73 | - case self::STATUS_SUCCESS: |
|
74 | - return 'ok'; |
|
75 | - case self::STATUS_ERROR: |
|
76 | - return 'error'; |
|
77 | - case self::STATUS_INDETERMINATE: |
|
78 | - return 'indeterminate'; |
|
79 | - case self::STATUS_UNAUTHORIZED: |
|
80 | - return 'unauthorized'; |
|
81 | - case self::STATUS_TIMEOUT: |
|
82 | - return 'timeout'; |
|
83 | - case self::STATUS_NETWORK_ERROR: |
|
84 | - return 'network error'; |
|
85 | - default: |
|
86 | - return 'unknown'; |
|
87 | - } |
|
88 | - } |
|
64 | + /** |
|
65 | + * Get the name for a status code |
|
66 | + * |
|
67 | + * @param int $code |
|
68 | + * @return string |
|
69 | + * @since 9.0.0 |
|
70 | + */ |
|
71 | + public static function getStateCodeName($code) { |
|
72 | + switch ($code) { |
|
73 | + case self::STATUS_SUCCESS: |
|
74 | + return 'ok'; |
|
75 | + case self::STATUS_ERROR: |
|
76 | + return 'error'; |
|
77 | + case self::STATUS_INDETERMINATE: |
|
78 | + return 'indeterminate'; |
|
79 | + case self::STATUS_UNAUTHORIZED: |
|
80 | + return 'unauthorized'; |
|
81 | + case self::STATUS_TIMEOUT: |
|
82 | + return 'timeout'; |
|
83 | + case self::STATUS_NETWORK_ERROR: |
|
84 | + return 'network error'; |
|
85 | + default: |
|
86 | + return 'unknown'; |
|
87 | + } |
|
88 | + } |
|
89 | 89 | } |
@@ -31,37 +31,37 @@ |
||
31 | 31 | **/ |
32 | 32 | interface IMimeTypeLoader { |
33 | 33 | |
34 | - /** |
|
35 | - * Get a mimetype from its ID |
|
36 | - * |
|
37 | - * @param int $id |
|
38 | - * @return string|null |
|
39 | - * @since 8.2.0 |
|
40 | - */ |
|
41 | - public function getMimetypeById($id); |
|
34 | + /** |
|
35 | + * Get a mimetype from its ID |
|
36 | + * |
|
37 | + * @param int $id |
|
38 | + * @return string|null |
|
39 | + * @since 8.2.0 |
|
40 | + */ |
|
41 | + public function getMimetypeById($id); |
|
42 | 42 | |
43 | - /** |
|
44 | - * Get a mimetype ID, adding the mimetype to the DB if it does not exist |
|
45 | - * |
|
46 | - * @param string $mimetype |
|
47 | - * @return int |
|
48 | - * @since 8.2.0 |
|
49 | - */ |
|
50 | - public function getId($mimetype); |
|
43 | + /** |
|
44 | + * Get a mimetype ID, adding the mimetype to the DB if it does not exist |
|
45 | + * |
|
46 | + * @param string $mimetype |
|
47 | + * @return int |
|
48 | + * @since 8.2.0 |
|
49 | + */ |
|
50 | + public function getId($mimetype); |
|
51 | 51 | |
52 | - /** |
|
53 | - * Test if a mimetype exists in the database |
|
54 | - * |
|
55 | - * @param string $mimetype |
|
56 | - * @return bool |
|
57 | - * @since 8.2.0 |
|
58 | - */ |
|
59 | - public function exists($mimetype); |
|
52 | + /** |
|
53 | + * Test if a mimetype exists in the database |
|
54 | + * |
|
55 | + * @param string $mimetype |
|
56 | + * @return bool |
|
57 | + * @since 8.2.0 |
|
58 | + */ |
|
59 | + public function exists($mimetype); |
|
60 | 60 | |
61 | - /** |
|
62 | - * Clear all loaded mimetypes, allow for re-loading |
|
63 | - * |
|
64 | - * @since 8.2.0 |
|
65 | - */ |
|
66 | - public function reset(); |
|
61 | + /** |
|
62 | + * Clear all loaded mimetypes, allow for re-loading |
|
63 | + * |
|
64 | + * @since 8.2.0 |
|
65 | + */ |
|
66 | + public function reset(); |
|
67 | 67 | } |
@@ -33,35 +33,35 @@ |
||
33 | 33 | * @internal This interface is experimental and might change for NC12 |
34 | 34 | */ |
35 | 35 | interface ISimpleRoot { |
36 | - /** |
|
37 | - * Get the folder with name $name |
|
38 | - * |
|
39 | - * @param string $name |
|
40 | - * @return ISimpleFolder |
|
41 | - * @throws NotFoundException |
|
42 | - * @throws \RuntimeException |
|
43 | - * @since 11.0.0 |
|
44 | - */ |
|
45 | - public function getFolder($name); |
|
36 | + /** |
|
37 | + * Get the folder with name $name |
|
38 | + * |
|
39 | + * @param string $name |
|
40 | + * @return ISimpleFolder |
|
41 | + * @throws NotFoundException |
|
42 | + * @throws \RuntimeException |
|
43 | + * @since 11.0.0 |
|
44 | + */ |
|
45 | + public function getFolder($name); |
|
46 | 46 | |
47 | - /** |
|
48 | - * Get all the Folders |
|
49 | - * |
|
50 | - * @return ISimpleFolder[] |
|
51 | - * @throws NotFoundException |
|
52 | - * @throws \RuntimeException |
|
53 | - * @since 11.0.0 |
|
54 | - */ |
|
55 | - public function getDirectoryListing(); |
|
47 | + /** |
|
48 | + * Get all the Folders |
|
49 | + * |
|
50 | + * @return ISimpleFolder[] |
|
51 | + * @throws NotFoundException |
|
52 | + * @throws \RuntimeException |
|
53 | + * @since 11.0.0 |
|
54 | + */ |
|
55 | + public function getDirectoryListing(); |
|
56 | 56 | |
57 | - /** |
|
58 | - * Create a new folder named $name |
|
59 | - * |
|
60 | - * @param string $name |
|
61 | - * @return ISimpleFolder |
|
62 | - * @throws NotPermittedException |
|
63 | - * @throws \RuntimeException |
|
64 | - * @since 11.0.0 |
|
65 | - */ |
|
66 | - public function newFolder($name); |
|
57 | + /** |
|
58 | + * Create a new folder named $name |
|
59 | + * |
|
60 | + * @param string $name |
|
61 | + * @return ISimpleFolder |
|
62 | + * @throws NotPermittedException |
|
63 | + * @throws \RuntimeException |
|
64 | + * @since 11.0.0 |
|
65 | + */ |
|
66 | + public function newFolder($name); |
|
67 | 67 | } |
@@ -33,68 +33,68 @@ |
||
33 | 33 | */ |
34 | 34 | interface ISimpleFile { |
35 | 35 | |
36 | - /** |
|
37 | - * Get the name |
|
38 | - * |
|
39 | - * @return string |
|
40 | - * @since 11.0.0 |
|
41 | - */ |
|
42 | - public function getName(); |
|
36 | + /** |
|
37 | + * Get the name |
|
38 | + * |
|
39 | + * @return string |
|
40 | + * @since 11.0.0 |
|
41 | + */ |
|
42 | + public function getName(); |
|
43 | 43 | |
44 | - /** |
|
45 | - * Get the size in bytes |
|
46 | - * |
|
47 | - * @return int |
|
48 | - * @since 11.0.0 |
|
49 | - */ |
|
50 | - public function getSize(); |
|
44 | + /** |
|
45 | + * Get the size in bytes |
|
46 | + * |
|
47 | + * @return int |
|
48 | + * @since 11.0.0 |
|
49 | + */ |
|
50 | + public function getSize(); |
|
51 | 51 | |
52 | - /** |
|
53 | - * Get the ETag |
|
54 | - * |
|
55 | - * @return string |
|
56 | - * @since 11.0.0 |
|
57 | - */ |
|
58 | - public function getETag(); |
|
52 | + /** |
|
53 | + * Get the ETag |
|
54 | + * |
|
55 | + * @return string |
|
56 | + * @since 11.0.0 |
|
57 | + */ |
|
58 | + public function getETag(); |
|
59 | 59 | |
60 | - /** |
|
61 | - * Get the last modification time |
|
62 | - * |
|
63 | - * @return int |
|
64 | - * @since 11.0.0 |
|
65 | - */ |
|
66 | - public function getMTime(); |
|
60 | + /** |
|
61 | + * Get the last modification time |
|
62 | + * |
|
63 | + * @return int |
|
64 | + * @since 11.0.0 |
|
65 | + */ |
|
66 | + public function getMTime(); |
|
67 | 67 | |
68 | - /** |
|
69 | - * Get the content |
|
70 | - * |
|
71 | - * @return string |
|
72 | - * @since 11.0.0 |
|
73 | - */ |
|
74 | - public function getContent(); |
|
68 | + /** |
|
69 | + * Get the content |
|
70 | + * |
|
71 | + * @return string |
|
72 | + * @since 11.0.0 |
|
73 | + */ |
|
74 | + public function getContent(); |
|
75 | 75 | |
76 | - /** |
|
77 | - * Overwrite the file |
|
78 | - * |
|
79 | - * @param string $data |
|
80 | - * @throws NotPermittedException |
|
81 | - * @since 11.0.0 |
|
82 | - */ |
|
83 | - public function putContent($data); |
|
76 | + /** |
|
77 | + * Overwrite the file |
|
78 | + * |
|
79 | + * @param string $data |
|
80 | + * @throws NotPermittedException |
|
81 | + * @since 11.0.0 |
|
82 | + */ |
|
83 | + public function putContent($data); |
|
84 | 84 | |
85 | - /** |
|
86 | - * Delete the file |
|
87 | - * |
|
88 | - * @throws NotPermittedException |
|
89 | - * @since 11.0.0 |
|
90 | - */ |
|
91 | - public function delete(); |
|
85 | + /** |
|
86 | + * Delete the file |
|
87 | + * |
|
88 | + * @throws NotPermittedException |
|
89 | + * @since 11.0.0 |
|
90 | + */ |
|
91 | + public function delete(); |
|
92 | 92 | |
93 | - /** |
|
94 | - * Get the MimeType |
|
95 | - * |
|
96 | - * @return string |
|
97 | - * @since 11.0.0 |
|
98 | - */ |
|
99 | - public function getMimeType(); |
|
93 | + /** |
|
94 | + * Get the MimeType |
|
95 | + * |
|
96 | + * @return string |
|
97 | + * @since 11.0.0 |
|
98 | + */ |
|
99 | + public function getMimeType(); |
|
100 | 100 | } |
@@ -33,56 +33,56 @@ |
||
33 | 33 | * @internal This interface is experimental and might change for NC12 |
34 | 34 | */ |
35 | 35 | interface ISimpleFolder { |
36 | - /** |
|
37 | - * Get all the files in a folder |
|
38 | - * |
|
39 | - * @return ISimpleFile[] |
|
40 | - * @since 11.0.0 |
|
41 | - */ |
|
42 | - public function getDirectoryListing(); |
|
36 | + /** |
|
37 | + * Get all the files in a folder |
|
38 | + * |
|
39 | + * @return ISimpleFile[] |
|
40 | + * @since 11.0.0 |
|
41 | + */ |
|
42 | + public function getDirectoryListing(); |
|
43 | 43 | |
44 | - /** |
|
45 | - * Check if a file with $name exists |
|
46 | - * |
|
47 | - * @param string $name |
|
48 | - * @return bool |
|
49 | - * @since 11.0.0 |
|
50 | - */ |
|
51 | - public function fileExists($name); |
|
44 | + /** |
|
45 | + * Check if a file with $name exists |
|
46 | + * |
|
47 | + * @param string $name |
|
48 | + * @return bool |
|
49 | + * @since 11.0.0 |
|
50 | + */ |
|
51 | + public function fileExists($name); |
|
52 | 52 | |
53 | - /** |
|
54 | - * Get the file named $name from the folder |
|
55 | - * |
|
56 | - * @param string $name |
|
57 | - * @return ISimpleFile |
|
58 | - * @throws NotFoundException |
|
59 | - * @since 11.0.0 |
|
60 | - */ |
|
61 | - public function getFile($name); |
|
53 | + /** |
|
54 | + * Get the file named $name from the folder |
|
55 | + * |
|
56 | + * @param string $name |
|
57 | + * @return ISimpleFile |
|
58 | + * @throws NotFoundException |
|
59 | + * @since 11.0.0 |
|
60 | + */ |
|
61 | + public function getFile($name); |
|
62 | 62 | |
63 | - /** |
|
64 | - * Creates a new file with $name in the folder |
|
65 | - * |
|
66 | - * @param string $name |
|
67 | - * @return ISimpleFile |
|
68 | - * @throws NotPermittedException |
|
69 | - * @since 11.0.0 |
|
70 | - */ |
|
71 | - public function newFile($name); |
|
63 | + /** |
|
64 | + * Creates a new file with $name in the folder |
|
65 | + * |
|
66 | + * @param string $name |
|
67 | + * @return ISimpleFile |
|
68 | + * @throws NotPermittedException |
|
69 | + * @since 11.0.0 |
|
70 | + */ |
|
71 | + public function newFile($name); |
|
72 | 72 | |
73 | - /** |
|
74 | - * Remove the folder and all the files in it |
|
75 | - * |
|
76 | - * @throws NotPermittedException |
|
77 | - * @since 11.0.0 |
|
78 | - */ |
|
79 | - public function delete(); |
|
73 | + /** |
|
74 | + * Remove the folder and all the files in it |
|
75 | + * |
|
76 | + * @throws NotPermittedException |
|
77 | + * @since 11.0.0 |
|
78 | + */ |
|
79 | + public function delete(); |
|
80 | 80 | |
81 | - /** |
|
82 | - * Get the folder name |
|
83 | - * |
|
84 | - * @return string |
|
85 | - * @since 11.0.0 |
|
86 | - */ |
|
87 | - public function getName(); |
|
81 | + /** |
|
82 | + * Get the folder name |
|
83 | + * |
|
84 | + * @return string |
|
85 | + * @since 11.0.0 |
|
86 | + */ |
|
87 | + public function getName(); |
|
88 | 88 | } |
@@ -27,16 +27,16 @@ |
||
27 | 27 | */ |
28 | 28 | class StorageConnectionException extends StorageNotAvailableException { |
29 | 29 | |
30 | - /** |
|
31 | - * StorageConnectionException constructor. |
|
32 | - * |
|
33 | - * @param string $message |
|
34 | - * @param int $code |
|
35 | - * @param \Exception $previous |
|
36 | - * @since 9.0.0 |
|
37 | - */ |
|
38 | - public function __construct($message = '', \Exception $previous = null) { |
|
39 | - $l = \OC::$server->getL10N('core'); |
|
40 | - parent::__construct($l->t('Storage connection error. %s', $message), self::STATUS_NETWORK_ERROR, $previous); |
|
41 | - } |
|
30 | + /** |
|
31 | + * StorageConnectionException constructor. |
|
32 | + * |
|
33 | + * @param string $message |
|
34 | + * @param int $code |
|
35 | + * @param \Exception $previous |
|
36 | + * @since 9.0.0 |
|
37 | + */ |
|
38 | + public function __construct($message = '', \Exception $previous = null) { |
|
39 | + $l = \OC::$server->getL10N('core'); |
|
40 | + parent::__construct($l->t('Storage connection error. %s', $message), self::STATUS_NETWORK_ERROR, $previous); |
|
41 | + } |
|
42 | 42 | } |