|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($google_curl) | |
| get_file_list ($search= '') | |
| send_file ($file) | |
| download_file ($url, $fp) | |
Static Public Member Functions | |
| static | get_sesskey ($userid) |
| static | set_sesskey ($value, $userid) |
| static | delete_sesskey ($userid) |
Data Fields | |
| const | REALM = 'https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds/ https://docs.googleusercontent.com/' |
| const | DOCUMENTFEED_URL = 'https://docs.google.com/feeds/default/private/full' |
| const | USER_PREF_NAME = 'google_authsub_sesskey' |
Definition at line 242 of file googleapi.php.
| __construct | ( | $ | google_curl | ) |
Constructor.
| object | A google_auth_request object which can be used to do http requests |
Definition at line 255 of file googleapi.php.
| static delete_sesskey | ( | $ | userid | ) | [static] |
Definition at line 272 of file googleapi.php.


| download_file | ( | $ | url, |
| $ | fp | ||
| ) |
Definition at line 357 of file googleapi.php.
| get_file_list | ( | $ | search = '' | ) |
Returns a list of files the user has formated for files api
| string | $search | A search string to do full text search on the documents |
Definition at line 283 of file googleapi.php.

| static get_sesskey | ( | $ | userid | ) | [static] |
Definition at line 264 of file googleapi.php.


| send_file | ( | $ | file | ) |
Sends a file object to google documents
| object | $file | File object |
Definition at line 343 of file googleapi.php.
| static set_sesskey | ( | $ | value, |
| $ | userid | ||
| ) | [static] |
Definition at line 268 of file googleapi.php.


| const DOCUMENTFEED_URL = 'https://docs.google.com/feeds/default/private/full' |
Definition at line 245 of file googleapi.php.
| const REALM = 'https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds/ https://docs.googleusercontent.com/' |
Definition at line 244 of file googleapi.php.
| const USER_PREF_NAME = 'google_authsub_sesskey' |
Definition at line 246 of file googleapi.php.