Search moodle.org's
Developer Documentation

See Release Notes

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

Site courses analyser working at system level (insights for the site admin).

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

Defines 1 class


Class: site_courses  - X-Ref

Site courses analyser working at system level (insights for the site admin).

get_samples_origin()   X-Ref
Samples origin is course table.

return: string

get_sample_analysable($sampleid)   X-Ref
Returns the sample analysable

param: int $sampleid
return: \core_analytics\analysable

provided_sample_data()   X-Ref
Data this analyer samples provide.

return: string[]

sample_access_context($sampleid)   X-Ref
Returns the sample context.

param: int $sampleid
return: \context

get_all_samples(\core_analytics\analysable $site)   X-Ref
Returns all site courses.

param: \core_analytics\analysable $site
return: array

get_samples($sampleids)   X-Ref
Return all complete samples data from sample ids.

param: int[] $sampleids
return: array

sample_description($sampleid, $contextid, $sampledata)   X-Ref
Returns the description of a sample.

param: int $sampleid
param: int $contextid
param: array $sampledata
return: array array(string, \renderable)