class Google_Service_Resource (View source)

Implements the actual methods/resources of the discovered Google API using magic function calling overloading (__call()), which on call will see if the method name (plus.activities.list) is available in this service, and if so construct an apiHttpRequest representing it.

Methods

__construct($service, $serviceName, $resourceName, $resource)

No description

Google_Http_Request|expectedClass
call($name, $arguments, $expectedClass = null)

TODO: This function needs simplifying.

convertToArrayAndStripNulls($o)

No description

static string
createRequestUri(string $restPath, array $params)

Parse/expand request parameters and create a fully qualified request uri.

Details

__construct($service, $serviceName, $resourceName, $resource)

No description

Parameters

$service
$serviceName
$resourceName
$resource

Google_Http_Request|expectedClass call($name, $arguments, $expectedClass = null)

TODO: This function needs simplifying.

Parameters

$name
$arguments
$expectedClass
  • optional, the expected class name

Return Value

Google_Http_Request|expectedClass

Exceptions

Google_Exception

protected convertToArrayAndStripNulls($o)

No description

Parameters

$o

static string createRequestUri(string $restPath, array $params)

Parse/expand request parameters and create a fully qualified request uri.

Parameters

string $restPath
array $params

Return Value

string $requestUrl