Google extends Component
Implements integration with Google APIs.
Table of Contents
- __construct() : mixed
- Class constructor.
- delete_token() : mixed
- Deletes access token.
- get_client() : object
- Gets API client.
- get_token() : mixed
- Gets access token.
- is_enabled() : bool
- Checks API credentials.
- update_token() : mixed
- Updates access token.
- boot() : mixed
- Bootstraps component properties.
- set_callbacks() : mixed
- Sets the action and filter callbacks.
- set_property() : mixed
- Sets a property value.
Methods
__construct()
Class constructor.
public
__construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $args : array<string|int, mixed> = []
-
Component arguments.
Return values
mixed —delete_token()
Deletes access token.
public
delete_token(string $namespace) : mixed
Parameters
- $namespace : string
-
Namespace.
Return values
mixed —get_client()
Gets API client.
public
get_client() : object
Return values
object —get_token()
Gets access token.
public
get_token(string $namespace) : mixed
Parameters
- $namespace : string
-
Namespace.
Return values
mixed —is_enabled()
Checks API credentials.
public
is_enabled() : bool
Return values
bool —update_token()
Updates access token.
public
update_token(string $namespace, object $token) : mixed
Parameters
- $namespace : string
-
Namespace.
- $token : object
-
Token object.
Return values
mixed —boot()
Bootstraps component properties.
protected
boot() : mixed
Return values
mixed —set_callbacks()
Sets the action and filter callbacks.
protected
final set_callbacks(array<string|int, mixed> $callbacks) : mixed
Parameters
- $callbacks : array<string|int, mixed>
-
Callback arguments.
Return values
mixed —set_property()
Sets a property value.
protected
final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
- $name : string
-
Property name.
- $value : mixed
-
Property value.
- $prefix : string = ''
-
Method prefix.