Allow getting all mount options as array

This commit is contained in:
Robin Appelman 2015-03-05 17:10:52 +01:00
parent 82a62fd249
commit 4f0f175f8b
2 changed files with 16 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -64,4 +64,11 @@ interface IMountPoint {
* @return mixed
*/
public function getOption($name, $default);
/**
* Get all options for the mount
*
* @return array
*/
public function getOptions();
}