Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

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: 256 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