JGoogleDataPicasa
Extends \JGoogleDataGoogle Picasa data class for the Joomla Platform.
since |
3.1.4 |
---|---|
deprecated |
4.0 Use the |
package |
Joomla.Platform |
Methods
__construct
Constructor.
__construct(\Joomla\Registry\Registry $options = null, \JGoogleAuth $auth = null)
since |
3.1.4 |
---|
Arguments
- $options
\Joomla\Registry\Registry
Google options object.- $auth
\JGoogleAuth
Google data http client object.
authenticate
Method to authenticate to Google
authenticate() : boolean
since |
3.1.4 |
---|
Response
boolean
True 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
string
ID of user- $title
string
New album title- $access
string
New album access settings- $summary
string
New album summary- $location
string
New album location- $time
integer
New album timestamp- $keywords
array
New album keywords
Response
mixed
Data from Google.
getAlbum
Get Picasa Album
getAlbum(string $url) : mixed
since |
3.1.4 |
---|---|
throws |
|
Arguments
- $url
string
URL of album to get
Response
mixed
Data from Google
getOption
Get an option from the JGoogleData instance.
getOption(string $key) : mixed
since |
3.1.4 |
---|
Arguments
- $key
string
The name of the option to get.
Response
mixed
The option value.
isAuthenticated
Check authentication
isAuthenticated() : boolean
since |
3.1.4 |
---|
Response
boolean
True if authenticated.
listAlbums
Method to retrieve a list of Picasa Albums
listAlbums(string $userID = 'default') : mixed
since |
3.1.4 |
---|---|
throws |
|
Arguments
- $userID
string
ID of user
Response
mixed
Data from Google
listGetData
Method to retrieve a list of data
listGetData(array $url, integer $maxpages = 1, string $token = null) : mixed
since |
3.1.4 |
---|---|
throws |
|
Arguments
- $url
array
URL to GET- $maxpages
integer
Maximum number of pages to return- $token
string
Next page token
Response
mixed
Data from Google
query
Method to retrieve data from Google
query(string $url, mixed $data = null, array $headers = null, string $method = 'get') : mixed
since |
3.1.4 |
---|
Arguments
- $url
string
The URL for the request.- $data
mixed
The data to include in the request.- $headers
array
The headers to send with the request.- $method
string
The type of http request to send.
Response
mixed
Data from Google.
safeXml
Method to validate XML
safeXml(string $data) : \SimpleXMLElement
since |
3.1.4 |
---|---|
throws |
|
Arguments
- $data
string
XML data to be parsed
Response
\SimpleXMLElement
XMLElement of parsed data
setOption
Set an option for the JGoogleData instance.
setOption(string $key, mixed $value) : \JGoogleData
since |
3.1.4 |
---|
Arguments
- $key
string
The name of the option to set.- $value
mixed
The option value to set.
Response
\JGoogleData
This object for method chaining.