Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 402] [Versions 310 and 403]

Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

File Size: 255 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Google_Service_Resource:: (3 methods):
  __construct()
  call()
  convertToArrayAndStripNulls()


Class: Google_Service_Resource  - X-Ref

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.

__construct($service, $serviceName, $resourceName, $resource)   X-Ref
No description

call($name, $arguments, $expected_class = null)   X-Ref
TODO: This function needs simplifying.

param: $name
param: $arguments
param: $expected_class - optional, the expected class name
return: Google_Http_Request|expected_class

convertToArrayAndStripNulls($o)   X-Ref
No description