summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-05 17:10:52 +0100
committerRobin Appelman <icewind@owncloud.com>2015-03-11 15:06:12 +0100
commit4f0f175f8b1e8719e4b5858322be3d2e30280add (patch)
tree627d75daea2b70406a33b5131e63617871ca74ec /lib
parent82a62fd24905c3072e19257171838bcf9c6d48ab (diff)
downloadnextcloud-server-4f0f175f8b1e8719e4b5858322be3d2e30280add.tar.gz
nextcloud-server-4f0f175f8b1e8719e4b5858322be3d2e30280add.zip
Allow getting all mount options as array
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/mount/mountpoint.php9
-rw-r--r--lib/public/files/mount/imountpoint.php7
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/files/mount/mountpoint.php b/lib/private/files/mount/mountpoint.php
index 0442a369039..02bd8eaa70b 100644
--- a/lib/private/files/mount/mountpoint.php
+++ b/lib/private/files/mount/mountpoint.php
@@ -209,4 +209,13 @@ class MountPoint implements IMountPoint {
public function getOption($name, $default) {
return isset($this->mountOptions[$name]) ? $this->mountOptions[$name] : $default;
}
+
+ /**
+ * Get all options for the mount
+ *
+ * @return array
+ */
+ public function getOptions() {
+ return $this->mountOptions;
+ }
}
diff --git a/lib/public/files/mount/imountpoint.php b/lib/public/files/mount/imountpoint.php
index af7819ae160..2ec0cca1dce 100644
--- a/lib/public/files/mount/imountpoint.php
+++ b/lib/public/files/mount/imountpoint.php
@@ -64,4 +64,11 @@ interface IMountPoint {
* @return mixed
*/
public function getOption($name, $default);
+
+ /**
+ * Get all options for the mount
+ *
+ * @return array
+ */
+ public function getOptions();
}