diff options
Diffstat (limited to 'core/js/files/client.js')
-rw-r--r-- | core/js/files/client.js | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js index 572f7879e17..43743fb2d8c 100644 --- a/core/js/files/client.js +++ b/core/js/files/client.js @@ -722,8 +722,47 @@ */ addFileInfoParser: function(parserFunction) { this._fileInfoParsers.push(parserFunction); - } + }, + /** + * Returns the dav.Client instance used internally + * + * @since 9.2 + * @return {dav.Client} + */ + getClient: function() { + return this._client; + }, + + /** + * Returns the user name + * + * @since 9.2 + * @return {String} userName + */ + getUserName: function() { + return this._client.userName; + }, + + /** + * Returns the password + * + * @since 9.2 + * @return {String} password + */ + getPassword: function() { + return this._client.password; + }, + + /** + * Returns the base URL + * + * @since 9.2 + * @return {String} base URL + */ + getBaseUrl: function() { + return this._client.baseUrl; + } }; /** |