summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-05 14:17:03 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-05 14:20:22 +0100
commit54d2175bf585821c87081b432b90a64e466d3f67 (patch)
tree27a19f25d722ddd3ae900cdd5b481891e8793092 /apps/files_external/lib
parent7dde2c773f4efee0094176fe76b2c64f4f74a1ea (diff)
downloadnextcloud-server-54d2175bf585821c87081b432b90a64e466d3f67.tar.gz
nextcloud-server-54d2175bf585821c87081b432b90a64e466d3f67.zip
Add occ files_external:create command to add new mounts
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/definitionparameter.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/files_external/lib/definitionparameter.php b/apps/files_external/lib/definitionparameter.php
index 27c6af0fcda..4d4bb13bebd 100644
--- a/apps/files_external/lib/definitionparameter.php
+++ b/apps/files_external/lib/definitionparameter.php
@@ -93,6 +93,22 @@ class DefinitionParameter implements \JsonSerializable {
}
/**
+ * @return string
+ */
+ public function getTypeName() {
+ switch ($this->type) {
+ case self::VALUE_BOOLEAN:
+ return 'boolean';
+ case self::VALUE_TEXT:
+ return 'text';
+ case self::VALUE_PASSWORD:
+ return 'password';
+ default:
+ return 'unknown';
+ }
+ }
+
+ /**
* @return int
*/
public function getFlags() {