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 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

Single insight view page.

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

Defines 1 class

insight:: (4 methods):
  __construct()
  export_for_template()
  get_calculation_display()
  get_model()


Class: insight  - X-Ref

Single insight view page.

__construct(\core_analytics\prediction $prediction, \core_analytics\model $model, $includedetailsaction = false,\context $context)   X-Ref
Constructor

param: \core_analytics\prediction $prediction
param: \core_analytics\model $model
param: bool $includedetailsaction
param: \context $context
return: void

export_for_template(\renderer_base $output)   X-Ref
Exports the data.

param: \renderer_base $output
return: \stdClass

get_calculation_display(\core_analytics\calculable $calculable, $value, $output, $subtype = false)   X-Ref
Returns display info for the calculated value outcome.

param: \core_analytics\calculable $calculable
param: float $value
param: \renderer_base $output
param: string|false $subtype
return: array The style as 'success', 'info', 'warning' or 'danger' and pix_icon

get_model()   X-Ref
Model getter.

return: \core_analytics\model