Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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.

Deprecated analyser for testing purposes.

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

Defines 1 class


Class: deprecated_analyser  - X-Ref

Deprecated analyser for testing purposes.

get_analysables()   X-Ref
Implementation of a deprecated method.

It should be called by get_analysables_iterator, which triggers a debugging message.
return: \core_analytics\analysable[]

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)

processes_user_data()   X-Ref
We need to delete associated data if a user requests his data to be deleted.

return: bool

join_sample_user($sampletablealias)   X-Ref
Join the samples origin table with the user id table.

param: string $sampletablealias
return: string