class JGoogleDataPicasaPhoto extends JGoogleData

Google Picasa data class for the Joomla Platform.

Methods

__construct( SimpleXMLElement $xml, 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.

boolean
delete( mixed $match = '*')

Method to delete a Picasa photo

string
getLink( string $type = 'edit')

Method to get the photo link

string
getUrl()

Method to get the photo's URL

array
getThumbnails()

Method to get the photo's thumbnails

string
getTitle()

Method to get the title of the photo

string
getSummary()

Method to get the summary of the photo

string
getAccess()

Method to get the access level of the photo

double
getTime()

Method to get the time of the photo

int
getSize()

Method to get the size of the photo

int
getHeight()

Method to get the height of the photo

int
getWidth()

Method to get the width of the photo

setTitle( string $title)

Method to set the title of the photo

setSummary( string $summary)

Method to set the summary of the photo

setAccess( string $access)

Method to set the access level of the photo

setTime( int $time)

Method to set the time of the photo

mixed
save( string $match = '*')

Method to modify a Picasa Photo

mixed
refresh()

Refresh photo data

Details

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

Constructor.

Parameters

SimpleXMLElement $xml XML from Google
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.

boolean delete( mixed $match = '*')

Method to delete a Picasa photo

Parameters

mixed $match Check for most up to date photo

Return Value

boolean Success or failure.

Exceptions

Exception
RuntimeException
UnexpectedValueException

Method to get the photo link

Parameters

string $type Type of link to return

Return Value

string Link or false on failure

string getUrl()

Method to get the photo's URL

Return Value

string Link

array getThumbnails()

Method to get the photo's thumbnails

Return Value

array An array of thumbnails

string getTitle()

Method to get the title of the photo

Return Value

string Photo title

string getSummary()

Method to get the summary of the photo

Return Value

string Photo description

string getAccess()

Method to get the access level of the photo

Return Value

string Photo access level

double getTime()

Method to get the time of the photo

Return Value

double Photo time

int getSize()

Method to get the size of the photo

Return Value

int Photo size

int getHeight()

Method to get the height of the photo

Return Value

int Photo height

int getWidth()

Method to get the width of the photo

Return Value

int Photo width

JGoogleDataPicasaPhoto setTitle( string $title)

Method to set the title of the photo

Parameters

string $title New photo title

Return Value

JGoogleDataPicasaPhoto The object for method chaining

JGoogleDataPicasaPhoto setSummary( string $summary)

Method to set the summary of the photo

Parameters

string $summary New photo description

Return Value

JGoogleDataPicasaPhoto The object for method chaining

JGoogleDataPicasaPhoto setAccess( string $access)

Method to set the access level of the photo

Parameters

string $access New photo access level

Return Value

JGoogleDataPicasaPhoto The object for method chaining

JGoogleDataPicasaPhoto setTime( int $time)

Method to set the time of the photo

Parameters

int $time New photo time

Return Value

JGoogleDataPicasaPhoto The object for method chaining

mixed save( string $match = '*')

Method to modify a Picasa Photo

Parameters

string $match Optional eTag matching parameter

Return Value

mixed Data from Google.

mixed refresh()

Refresh photo data

Return Value

mixed Data from Google