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]

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