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]

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)