class JGoogleDataPicasa extends JGoogleData

Google Picasa data class for the Joomla Platform.

Methods

__construct( Registry $options = null, JGoogleAuth $auth = null)

Constructor.

boolean
authenticate()

Method to authenticate to Google

boolean
isAuthenticated()

Check authentication

mixed
getOption( string $key)

Get an option from the JGoogleData instance.

setOption( string $key, mixed $value)

Set an option for the JGoogleData instance.

mixed
listAlbums( string $userID = 'default')

Method to retrieve a list of Picasa Albums

mixed
createAlbum( string $userID = 'default', string $title = '', string $access = 'private', string $summary = '', string $location = '', int $time = false, array $keywords = array())

Method to create a Picasa Album

mixed
getAlbum( string $url)

Get Picasa Album

Details

__construct( Registry $options = null, JGoogleAuth $auth = null)

Constructor.

Parameters

Registry $options Google options object.
JGoogleAuth $auth Google data http client object.

boolean authenticate()

Method to authenticate to Google

Return Value

boolean True on success.

boolean isAuthenticated()

Check authentication

Return Value

boolean True if authenticated.

mixed getOption( string $key)

Get an option from the JGoogleData instance.

Parameters

string $key The name of the option to get.

Return Value

mixed The option value.

JGoogleData setOption( string $key, mixed $value)

Set an option for the JGoogleData instance.

Parameters

string $key The name of the option to set.
mixed $value The option value to set.

Return Value

JGoogleData This object for method chaining.

mixed listAlbums( string $userID = 'default')

Method to retrieve a list of Picasa Albums

Parameters

string $userID ID of user

Return Value

mixed Data from Google

Exceptions

UnexpectedValueException

mixed createAlbum( string $userID = 'default', string $title = '', string $access = 'private', string $summary = '', string $location = '', int $time = false, array $keywords = array())

Method to create a Picasa Album

Parameters

string $userID ID of user
string $title New album title
string $access New album access settings
string $summary New album summary
string $location New album location
int $time New album timestamp
array $keywords New album keywords

Return Value

mixed Data from Google.

mixed getAlbum( string $url)

Get Picasa Album

Parameters

string $url URL of album to get

Return Value

mixed Data from Google

Exceptions

UnexpectedValueException