JGoogleDataPicasa

Extends \JGoogleData

Google Picasa data class for the Joomla Platform.

deprecated
since

3.1.4

deprecated

4.0 Use the joomla/google package via Composer instead

package

Joomla.Platform

Methods

__construct

Constructor.

__construct(\Joomla\Registry\Registry $options = null, \JGoogleAuth $auth = null) 
inherited
since

3.1.4

Arguments

$options

\Joomla\Registry\RegistryGoogle options object.

$auth

\JGoogleAuthGoogle data http client object.

authenticate

Method to authenticate to Google

authenticate() : boolean
inherited
since

3.1.4

Response

booleanTrue on success.

createAlbum

Method to create a Picasa Album

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

3.1.4

Arguments

$userID

stringID of user

$title

stringNew album title

$access

stringNew album access settings

$summary

stringNew album summary

$location

stringNew album location

$time

integerNew album timestamp

$keywords

arrayNew album keywords

Response

mixedData from Google.

getAlbum

Get Picasa Album

getAlbum(string $url) : mixed
since

3.1.4

throws

\UnexpectedValueException

Arguments

$url

stringURL of album to get

Response

mixedData from Google

getOption

Get an option from the JGoogleData instance.

getOption(string $key) : mixed
inherited
since

3.1.4

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

isAuthenticated

Check authentication

isAuthenticated() : boolean
inherited
since

3.1.4

Response

booleanTrue if authenticated.

listAlbums

Method to retrieve a list of Picasa Albums

listAlbums(string $userID = 'default') : mixed
since

3.1.4

throws

\UnexpectedValueException

Arguments

$userID

stringID of user

Response

mixedData from Google

listGetData

Method to retrieve a list of data

listGetData(array $url, integer $maxpages = 1, string $token = null) : mixed
inherited
since

3.1.4

throws

\UnexpectedValueException

Arguments

$url

arrayURL to GET

$maxpages

integerMaximum number of pages to return

$token

stringNext page token

Response

mixedData from Google

query

Method to retrieve data from Google

query(string $url, mixed $data = null, array $headers = null, string $method = 'get') : mixed
inherited
since

3.1.4

Arguments

$url

stringThe URL for the request.

$data

mixedThe data to include in the request.

$headers

arrayThe headers to send with the request.

$method

stringThe type of http request to send.

Response

mixedData from Google.

safeXml

Method to validate XML

safeXml(string $data) : \SimpleXMLElement
inherited static
since

3.1.4

throws

\UnexpectedValueException

Arguments

$data

stringXML data to be parsed

Response

\SimpleXMLElementXMLElement of parsed data

setOption

Set an option for the JGoogleData instance.

setOption(string $key, mixed $value) : \JGoogleData
inherited
since

3.1.4

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\JGoogleDataThis object for method chaining.

Properties

options

Options for the Google data object.

inherited
since

3.1.4

Type(s)

\Joomla\Registry\Registry

auth

Authentication client for the Google data object.

inherited
since

3.1.4

Type(s)

\JGoogleAuth