\Google_Service_Resource

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.

Summary

Methods
Properties
Constants
__construct()
call()
createRequestUri()
No public properties found
No constants found
convertToArrayAndStripNulls()
No protected properties found
N/A
No private methods found
$stackParameters
$rootUrl
$client
$serviceName
$servicePath
$resourceName
$methods
N/A

Properties

$stackParameters

$stackParameters : 

Type

$rootUrl

$rootUrl : string

Type

string

$serviceName

$serviceName : string

Type

string

$servicePath

$servicePath : string

Type

string

$resourceName

$resourceName : string

Type

string

$methods

$methods : array

Type

array

Methods

__construct()

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

Parameters

$service
$serviceName
$resourceName
$resource

call()

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

TODO: This function needs simplifying.

Parameters

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

Throws

\Google_Exception

Returns

\Google_Http_Request|\expectedClass

createRequestUri()

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

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

Parameters

string $restPath
array $params

Returns

string —

$requestUrl

convertToArrayAndStripNulls()

convertToArrayAndStripNulls(  $o) 

Parameters

$o