MDL-64783 analytics: Performance improvements and internal refactoring
authorDavid MonllaĆ³ <davidm@moodle.com>
Tue, 26 Mar 2019 16:45:01 +0000 (17:45 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 8 Apr 2019 22:26:39 +0000 (00:26 +0200)
commit9f690999ec5a0c559ae60c31a35a134e60978dd1
treee26e79cad736f48ce5b424dd532fdfd6a3b5c396
parent4f13068f781781993a634efcb4d9f23c4f880ee6
MDL-64783 analytics: Performance improvements and internal refactoring

The base classes analyser and time-splitting method had too many
reponsibilities. A new analysis class has been created.
26 files changed:
analytics/classes/analysis.php [new file with mode: 0644]
analytics/classes/dataset_manager.php
analytics/classes/local/analyser/base.php
analytics/classes/local/analysis/result.php [new file with mode: 0644]
analytics/classes/local/analysis/result_array.php [new file with mode: 0644]
analytics/classes/local/analysis/result_file.php [new file with mode: 0644]
analytics/classes/local/time_splitting/base.php
analytics/classes/local/time_splitting/upcoming_periodic.php
analytics/classes/model.php
analytics/tests/dataset_manager_test.php
analytics/tests/fixtures/test_analysis.php [moved from analytics/tests/fixtures/test_analyser.php with 81% similarity]
analytics/tests/fixtures/test_indicator_null.php [new file with mode: 0644]
analytics/tests/fixtures/test_site_users_analyser.php
analytics/tests/manager_test.php
analytics/tests/model_test.php
analytics/tests/prediction_test.php
analytics/tests/privacy_test.php
analytics/upgrade.txt
lib/classes/analytics/analyser/courses.php
lib/classes/analytics/analyser/site_courses.php
lib/classes/analytics/analyser/student_enrolments.php
lib/classes/analytics/analyser/users.php
lib/classes/analytics/target/no_teaching.php
lib/db/install.xml
lib/db/upgrade.php
version.php