Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 402] [Versions 400 and 403]

This is the external API for this component.

Copyright: 2017 David Monllao {@link http://www.davidmonllao.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 225 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: external  - X-Ref

This is the external API for this component.

set_notuseful_prediction_parameters()   X-Ref
set_notuseful_prediction parameters.

return: external_function_parameters

set_notuseful_prediction($predictionid)   X-Ref
Flags a prediction as fixed so no need to display it any more.

return: array an array of warnings and a boolean
param: int $predictionid

set_notuseful_prediction_returns()   X-Ref
set_notuseful_prediction return

return: external_description

set_notuseful_prediction_is_deprecated()   X-Ref
Deprecated in favour of action_executed.


set_fixed_prediction_parameters()   X-Ref
set_fixed_prediction parameters.

return: external_function_parameters

set_fixed_prediction($predictionid)   X-Ref
Flags a prediction as fixed so no need to display it any more.

return: array an array of warnings and a boolean
param: int $predictionid

set_fixed_prediction_returns()   X-Ref
set_fixed_prediction return

return: external_description

set_fixed_prediction_is_deprecated()   X-Ref
Deprecated in favour of action_executed.


action_executed_parameters()   X-Ref
action_executed parameters.

return: external_function_parameters

action_executed(string $actionname, array $predictionids)   X-Ref
Stores an action executed over a group of predictions.

return: array an array of warnings and a boolean
param: string   $actionname
param: array    $predictionids

action_executed_returns()   X-Ref
action_executed return

return: external_description

validate_prediction($predictionid)   X-Ref
Validates access to the prediction and returns it.

return: array array($model, $prediction, $context)
param: int $predictionid