Courses analyser working at course level (insights for the course teachers).
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 |
courses:: (8 methods):
get_samples_origin()
one_sample_per_analysable()
get_sample_analysable()
provided_sample_data()
sample_access_context()
get_all_samples()
get_samples()
sample_description()
get_samples_origin() X-Ref |
Samples origin is course table. return: string |
one_sample_per_analysable() X-Ref |
Just one sample per analysable. return: bool |
get_sample_analysable($sampleid) X-Ref |
Returns the analysable of a sample return: \core_analytics\analysable param: int $sampleid |
provided_sample_data() X-Ref |
This provides samples' course and context. return: string[] |
sample_access_context($sampleid) X-Ref |
Returns the context of a sample. return: \context param: int $sampleid |
get_all_samples(\core_analytics\analysable $course) X-Ref |
This will return just one course as we analyse 'by_course'. return: array param: \core_analytics\analysable $course |
get_samples($sampleids) X-Ref |
Returns samples data from sample ids. return: array param: int[] $sampleids |
sample_description($sampleid, $contextid, $sampledata) X-Ref |
Returns the sample description return: array array(string, \renderable) param: int $sampleid param: int $contextid param: array $sampledata |