Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 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