|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($args) | |
| get_listing ($path='/', $token='', $secret='') | |
| get_file ($filepath, $saveas) | |
| set_mode ($mode) | |
Definition at line 34 of file locallib.php.
| __construct | ( | $ | args | ) |
Contructor for oauth_helper. Subclass can override construct to build its own $this->http
| array | $args | requires at least three keys, oauth_consumer_key oauth_consumer_secret and api_root, oauth_helper will guess request_token_api, authrize_url and access_token_api based on api_root, but it not always works |
Reimplemented from oauth_helper.
Definition at line 42 of file locallib.php.
| get_file | ( | $ | filepath, |
| $ | saveas | ||
| ) |
Download a file
Definition at line 58 of file locallib.php.

| get_listing | ( | $ | path = '/', |
| $ | token = '', |
||
| $ | secret = '' |
||
| ) |
Get file listing from dropbox
Definition at line 48 of file locallib.php.

| set_mode | ( | $ | mode | ) |
Definition at line 74 of file locallib.php.