diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-04-28 12:50:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-28 12:50:38 +0200 |
commit | 3e8c5441f74cacdc40ae1489438f5059bcae95bc (patch) | |
tree | 2b573cecfbe13556fc2241cd432d50b80662dca3 /lib | |
parent | ec272f3ac357539ca0ca44c2b05c8771061cd789 (diff) | |
parent | c42278b651df84c79ab23d0cfb07afb311c7c968 (diff) | |
download | nextcloud-server-3e8c5441f74cacdc40ae1489438f5059bcae95bc.tar.gz nextcloud-server-3e8c5441f74cacdc40ae1489438f5059bcae95bc.zip |
Merge pull request #4521 from nextcloud/custom-mount-types
allow apps to set custom mount types
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Mount/MountPoint.php | 4 | ||||
-rw-r--r-- | lib/public/Files/Mount/IMountPoint.php | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/Files/Mount/MountPoint.php b/lib/private/Files/Mount/MountPoint.php index 42b79596c98..e7a37e382ff 100644 --- a/lib/private/Files/Mount/MountPoint.php +++ b/lib/private/Files/Mount/MountPoint.php @@ -274,4 +274,8 @@ class MountPoint implements IMountPoint { public function getMountId() { return $this->mountId; } + + public function getMountType() { + return ''; + } } diff --git a/lib/public/Files/Mount/IMountPoint.php b/lib/public/Files/Mount/IMountPoint.php index 0876d8b11d6..47830c68ffb 100644 --- a/lib/public/Files/Mount/IMountPoint.php +++ b/lib/public/Files/Mount/IMountPoint.php @@ -119,4 +119,13 @@ interface IMountPoint { * @since 9.1.0 */ public function getMountId(); + + /** + * Get the type of mount point, used to distinguish things like shares and external storages + * in the web interface + * + * @return string + * @since 12.0.0 + */ + public function getMountType(); } |