|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($google_curl) | |
| send_file ($file) | |
| get_file_list ($path= '') | |
| get_album_photos ($albumid) | |
| do_photo_search ($query) | |
| get_albums () | |
| get_photo_details ($rawxml) | |
Static Public Member Functions | |
| static | get_sesskey ($userid) |
| static | set_sesskey ($value, $userid) |
| static | delete_sesskey ($userid) |
Data Fields | |
| const | REALM = 'http://picasaweb.google.com/data/' |
| const | USER_PREF_NAME = 'google_authsub_sesskey_picasa' |
| const | UPLOAD_LOCATION = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/default' |
| const | ALBUM_PHOTO_LIST = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/' |
| const | PHOTO_SEARCH_URL = 'https://picasaweb.google.com/data/feed/api/user/default?kind=photo&q=' |
| const | LIST_ALBUMS_URL = 'https://picasaweb.google.com/data/feed/api/user/default' |
Definition at line 372 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 387 of file googleapi.php.
| static delete_sesskey | ( | $ | userid | ) | [static] |
Definition at line 404 of file googleapi.php.


| do_photo_search | ( | $ | query | ) |
Does text search on the users photos and returns matches in format for picasa api
| string | $query | Search terms |
Definition at line 463 of file googleapi.php.

| get_album_photos | ( | $ | albumid | ) |
Returns list of photos in album specified
| int | $albumid | Photo album to list photos from |
Definition at line 450 of file googleapi.php.


| get_albums | ( | ) |
Gets all the users albums and returns them as a list of folders for the file picker
Definition at line 475 of file googleapi.php.


| get_file_list | ( | $ | path = '' | ) |
Returns list of photos for file picker. If top level then returns list of albums, otherwise photos within an album.
| string | $path | The path to files (assumed to be albumid) |
Definition at line 436 of file googleapi.php.

| get_photo_details | ( | $ | rawxml | ) |
Recieves XML from a picasa list of photos and returns array in format for file picker.
| string | $rawxml | XML from picasa api |
Definition at line 510 of file googleapi.php.


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


| send_file | ( | $ | file | ) |
Sends a file object to picasaweb
| object | $file | File object |
Definition at line 414 of file googleapi.php.
| static set_sesskey | ( | $ | value, |
| $ | userid | ||
| ) | [static] |
Definition at line 400 of file googleapi.php.


| const ALBUM_PHOTO_LIST = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/' |
Definition at line 376 of file googleapi.php.
| const LIST_ALBUMS_URL = 'https://picasaweb.google.com/data/feed/api/user/default' |
Definition at line 378 of file googleapi.php.
| const PHOTO_SEARCH_URL = 'https://picasaweb.google.com/data/feed/api/user/default?kind=photo&q=' |
Definition at line 377 of file googleapi.php.
Definition at line 373 of file googleapi.php.
| const UPLOAD_LOCATION = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/default' |
Definition at line 375 of file googleapi.php.
| const USER_PREF_NAME = 'google_authsub_sesskey_picasa' |
Definition at line 374 of file googleapi.php.