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]

Class containing the external API functions functions for the Policy tool.

Copyright: 2018 Sara Arjona (sara@moodle.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 199 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: external  - X-Ref

Class external.

The external API for the Policy tool.

get_policy_version_parameters()   X-Ref
Parameter description for get_policy_version_parameters().

return: external_function_parameters

get_policy_version($versionid, $behalfid = null)   X-Ref
Fetch the details of a policy version.

param: int $versionid The policy version ID.
param: int $behalfid The id of user on whose behalf the user is viewing the policy.
return: array

get_policy_version_returns()   X-Ref
Parameter description for get_policy_version().

return: external_description

submit_accept_on_behalf_parameters()   X-Ref
Describes the parameters for submit_create_group_form webservice.

return: external_function_parameters

submit_accept_on_behalf($jsonformdata)   X-Ref
Submit the create group form.

param: string $jsonformdata The data from the form, encoded as a json array.
return: int new group id.

submit_accept_on_behalf_returns()   X-Ref
Returns description of method result value.

return: external_description