class 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

mixed|T|ResponseInterface|RequestInterface
call(string $name, array $arguments, class-string $expectedClass = null)

TODO: This function needs simplifying.

convertToArrayAndStripNulls($o)

No description

string
createRequestUri(string $restPath, array $params)

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

Details

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

Parameters

$service
$serviceName
$resourceName
$resource

mixed|T|ResponseInterface|RequestInterface call(string $name, array $arguments, class-string $expectedClass = null)

TODO: This function needs simplifying.

Parameters

string $name
array $arguments
class-string $expectedClass
  • optional, the expected class name

Return Value

mixed|T|ResponseInterface|RequestInterface

Exceptions

Exception

protected convertToArrayAndStripNulls($o)

Parameters

$o

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