From 4f0f175f8b1e8719e4b5858322be3d2e30280add Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 5 Mar 2015 17:10:52 +0100 Subject: [PATCH] Allow getting all mount options as array --- lib/private/files/mount/mountpoint.php | 9 +++++++++ lib/public/files/mount/imountpoint.php | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/lib/private/files/mount/mountpoint.php b/lib/private/files/mount/mountpoint.php index 0442a36903..02bd8eaa70 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 af7819ae16..2ec0cca1dc 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(); }