JGoogleDataPicasaPhoto

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.

delete

Method to delete a Picasa photo

delete(mixed $match = '*') : boolean
since

3.1.4

throws

\Exception

\RuntimeException

\UnexpectedValueException

Arguments

$match

mixedCheck for most up to date photo

Response

booleanSuccess or failure.

getAccess

Method to get the access level of the photo

getAccess() : string
since

3.1.4

Response

stringPhoto access level

getHeight

Method to get the height of the photo

getHeight() : integer
since

3.1.4

Response

integerPhoto height

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.

getSize

Method to get the size of the photo

getSize() : integer
since

3.1.4

Response

integerPhoto size

getSummary

Method to get the summary of the photo

getSummary() : string
since

3.1.4

Response

stringPhoto description

getThumbnails

Method to get the photo's thumbnails

getThumbnails() : array
since

3.1.4

Response

arrayAn array of thumbnails

getTime

Method to get the time of the photo

getTime() : double
since

3.1.4

Response

doublePhoto time

getTitle

Method to get the title of the photo

getTitle() : string
since

3.1.4

Response

stringPhoto title

getUrl

Method to get the photo's URL

getUrl() : string
since

3.1.4

Response

stringLink

getWidth

Method to get the width of the photo

getWidth() : integer
since

3.1.4

Response

integerPhoto width

isAuthenticated

Check authentication

isAuthenticated() : boolean
inherited
since

3.1.4

Response

booleanTrue if authenticated.

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.

refresh

Refresh photo data

refresh() : mixed
since

3.1.4

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

save

Method to modify a Picasa Photo

save(string $match = '*') : mixed
since

3.1.4

Arguments

$match

stringOptional eTag matching parameter

Response

mixedData from Google.

setAccess

Method to set the access level of the photo

setAccess(string $access) : \JGoogleDataPicasaPhoto
since

3.1.4

Arguments

$access

stringNew photo access level

Response

\JGoogleDataPicasaPhotoThe object for method chaining

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.

setSummary

Method to set the summary of the photo

setSummary(string $summary) : \JGoogleDataPicasaPhoto
since

3.1.4

Arguments

$summary

stringNew photo description

Response

\JGoogleDataPicasaPhotoThe object for method chaining

setTime

Method to set the time of the photo

setTime(integer $time) : \JGoogleDataPicasaPhoto
since

3.1.4

Arguments

$time

integerNew photo time

Response

\JGoogleDataPicasaPhotoThe object for method chaining

setTitle

Method to set the title of the photo

setTitle(string $title) : \JGoogleDataPicasaPhoto
since

3.1.4

Arguments

$title

stringNew photo title

Response

\JGoogleDataPicasaPhotoThe object for method chaining

Properties

xml

The photo's XML

since

3.1.4

Type(s)

\SimpleXMLElement

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