Moodle  2.2.1
http://www.collinsharper.com
google_picasa Class Reference

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'

Detailed Description

Definition at line 372 of file googleapi.php.


Constructor & Destructor Documentation

__construct ( google_curl)

Constructor.

Parameters:
objectA google_auth_request object which can be used to do http requests

Definition at line 387 of file googleapi.php.


Member Function Documentation

static delete_sesskey ( userid) [static]

Definition at line 404 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:

do_photo_search ( query)

Does text search on the users photos and returns matches in format for picasa api

Parameters:
string$querySearch terms
Returns:
mixed $files A list of files for the file picker

Definition at line 463 of file googleapi.php.

Here is the call graph for this function:

get_album_photos ( albumid)

Returns list of photos in album specified

Parameters:
int$albumidPhoto album to list photos from
Returns:
mixed $files A list of files for the file picker

Definition at line 450 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Gets all the users albums and returns them as a list of folders for the file picker

Returns:
mixes $files Array in the format get_listing uses for folders

Definition at line 475 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_file_list ( path = '')

Returns list of photos for file picker. If top level then returns list of albums, otherwise photos within an album.

Parameters:
string$pathThe path to files (assumed to be albumid)
Returns:
mixed $files A list of files for the file picker

Definition at line 436 of file googleapi.php.

Here is the call graph for this function:

get_photo_details ( rawxml)

Recieves XML from a picasa list of photos and returns array in format for file picker.

Parameters:
string$rawxmlXML from picasa api
Returns:
mixed $files A list of files for the file picker

Definition at line 510 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static get_sesskey ( userid) [static]

Definition at line 396 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:

send_file ( file)

Sends a file object to picasaweb

Parameters:
object$fileFile object
Returns:
boolean True on success

Definition at line 414 of file googleapi.php.

static set_sesskey ( value,
userid 
) [static]

Definition at line 400 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

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.

const REALM = 'http://picasaweb.google.com/data/'

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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations