class JGoogle

Joomla Platform class for interacting with the Google APIs.

Methods

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

Constructor.

data( string $name, Registry $options = null, JGoogleAuth $auth = null)

Method to create JGoogleData objects

embed( string $name, Registry $options = null)

Method to create JGoogleEmbed objects

mixed
getOption( string $key)

Get an option from the JGoogle instance.

setOption( string $key, mixed $value)

Set an option for the JGoogle instance.

Details

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

Constructor.

Parameters

Registry $options Google options object.
JGoogleAuth $auth The authentication client object.

JGoogleData data( string $name, Registry $options = null, JGoogleAuth $auth = null)

Method to create JGoogleData objects

Parameters

string $name Name of property to retrieve
Registry $options Google options object.
JGoogleAuth $auth The authentication client object.

Return Value

JGoogleData Google data API object.

JGoogleEmbed embed( string $name, Registry $options = null)

Method to create JGoogleEmbed objects

Parameters

string $name Name of property to retrieve
Registry $options Google options object.

Return Value

JGoogleEmbed Google embed API object.

mixed getOption( string $key)

Get an option from the JGoogle instance.

Parameters

string $key The name of the option to get.

Return Value

mixed The option value.

JGoogle setOption( string $key, mixed $value)

Set an option for the JGoogle instance.

Parameters

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

Return Value

JGoogle This object for method chaining.