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, T> $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

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

TODO: This function needs simplifying.

Parameters

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

Return Value

mixed|T|ResponseInterface|RequestInterface

Exceptions

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