Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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