Move Google Docs storage backend to files_remote app
This commit is contained in:
parent
c23090b43c
commit
d139e3c3cd
3 changed files with 8 additions and 2 deletions
|
@ -8,3 +8,4 @@
|
|||
|
||||
OC::$CLASSPATH['OC_Filestorage_FTP']='apps/files_remote/lib/ftp.php';
|
||||
OC::$CLASSPATH['OC_Filestorage_DAV']='apps/files_remote/lib/webdav.php';
|
||||
OC::$CLASSPATH['OC_Filestorage_Google']='apps/files_remote/lib/google.php';
|
||||
|
|
|
@ -24,14 +24,12 @@ require_once 'common.inc.php';
|
|||
|
||||
class OC_Filestorage_Google extends OC_Filestorage_Common {
|
||||
|
||||
private $datadir;
|
||||
private $consumer;
|
||||
private $oauth_token;
|
||||
private $sig_method;
|
||||
private $entries;
|
||||
|
||||
public function __construct($arguments) {
|
||||
$this->datadir = $arguments['datadir'];
|
||||
$consumer_key = isset($arguments['consumer_key']) ? $arguments['consumer_key'] : 'anonymous';
|
||||
$consumer_secret = isset($arguments['consumer_secret']) ? $arguments['consumer_secret'] : 'anonymous';
|
||||
$this->consumer = new OAuthConsumer($consumer_key, $consumer_secret);
|
|
@ -12,4 +12,11 @@ return array(
|
|||
'password'=>'test',
|
||||
'root'=>'/owncloud/files/webdav.php',
|
||||
),
|
||||
'google'=>array(
|
||||
'consumer_key'=>'anonymous',
|
||||
'consumer_secret'=>'anonymous',
|
||||
'token'=>'test',
|
||||
'token_secret'=>'test',
|
||||
'root'=>'/google',
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue