diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-11 23:06:57 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-11 23:06:57 +0200 |
commit | 542869114ad67295d61450e637b15a1f4d3ae209 (patch) | |
tree | 69ecc25a69871ab995d996c08f64c7a5752d176b /apps/files_external/lib/google.php | |
parent | fb2d2bc2011c371ff1e4334f84494f15a84a07a2 (diff) | |
download | nextcloud-server-542869114ad67295d61450e637b15a1f4d3ae209.tar.gz nextcloud-server-542869114ad67295d61450e637b15a1f4d3ae209.zip |
implement getId for the external storage providers
Diffstat (limited to 'apps/files_external/lib/google.php')
-rw-r--r-- | apps/files_external/lib/google.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index 51c5d219aae..e4be4de5a09 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -30,6 +30,7 @@ class Google extends \OC\Files\Storage\Common { private $oauth_token; private $sig_method; private $entries; + private $id; private static $tempFiles = array(); @@ -37,6 +38,7 @@ class Google extends \OC\Files\Storage\Common { if (isset($params['configured']) && $params['configured'] == 'true' && isset($params['token']) && isset($params['token_secret'])) { $consumer_key = isset($params['consumer_key']) ? $params['consumer_key'] : 'anonymous'; $consumer_secret = isset($params['consumer_secret']) ? $params['consumer_secret'] : 'anonymous'; + $this->id = 'google::' . $consumer_key . $consumer_secret; $this->consumer = new \OAuthConsumer($consumer_key, $consumer_secret); $this->oauth_token = new \OAuthToken($params['token'], $params['token_secret']); $this->sig_method = new \OAuthSignatureMethod_HMAC_SHA1(); @@ -177,6 +179,9 @@ class Google extends \OC\Files\Storage\Common { } } + public function getId(){ + return $this->id; + } public function mkdir($path) { $collection = dirname($path); @@ -539,4 +544,4 @@ class Google extends \OC\Files\Storage\Common { } -}
\ No newline at end of file +} |