Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

No teaching target.

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

Defines 1 class


Class: no_teaching  - X-Ref

No teaching target.

based_on_assumptions()   X-Ref
Machine learning backends are not required to predict.

return: bool

can_use_timesplitting(\core_analytics\local\time_splitting\base $timesplitting)   X-Ref
It requires a specific time-splitting method.

param: \core_analytics\local\time_splitting\base $timesplitting
return: bool

get_name()   X-Ref
Returns the name.

If there is a corresponding '_help' string this will be shown as well.

return: \lang_string

get_insight_subject(int $modelid, \context $context)   X-Ref
Overwritten to show a simpler language string.

param: int $modelid
param: \context $context
return: string

get_insight_body(\context $context, string $contextname, \stdClass $user, \moodle_url $insighturl)   X-Ref
Returns the body message for the insight.

param: \context     $context
param: string       $contextname
param: \stdClass    $user
param: \moodle_url  $insighturl
return: string[]                     The plain text message and the HTML message

prediction_actions(\core_analytics\prediction $prediction, $includedetailsaction = false,$isinsightuser = false)   X-Ref
prediction_actions

param: \core_analytics\prediction $prediction
param: mixed $includedetailsaction
param: bool $isinsightuser
return: \core_analytics\prediction_action[]

classes_description()   X-Ref
classes_description

return: string[]

get_analyser_class()   X-Ref
get_analyser_class

return: string

is_valid_analysable(\core_analytics\analysable $analysable, $fortraining = true)   X-Ref
is_valid_analysable

param: \core_analytics\analysable $analysable
param: mixed $fortraining
return: true|string

is_valid_sample($sampleid, \core_analytics\analysable $analysable, $fortraining = true)   X-Ref
Only process samples which start date is getting close.

param: int $sampleid
param: \core_analytics\analysable $analysable
param: bool $fortraining
return: bool

calculate_sample($sampleid, \core_analytics\analysable $analysable, $starttime = false, $endtime = false)   X-Ref
calculate_sample

param: int $sampleid
param: \core_analytics\analysable $analysable
param: int $starttime
param: int $endtime
return: float