Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

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

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.

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

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.

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

action_executed_returns()   X-Ref
action_executed return

return: external_description

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

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