MDL-61667 analytics: Add methods to read and validate model declarations
authorDavid Mudrák <david@moodle.com>
Wed, 6 Mar 2019 19:24:06 +0000 (20:24 +0100)
committerDavid Mudrák <david@moodle.com>
Mon, 1 Apr 2019 12:23:06 +0000 (14:23 +0200)
commitf05840451ea8083432c4279ad92fc296bafe36bd
tree642198837370aa577af9777c09b55a4a4ef487b8
parent4de4d1652bbe79802f6bbef88eee391465326502
MDL-61667 analytics: Add methods to read and validate model declarations

Allow every component to declare prediction models it provides via the
db/analytics.php file.
analytics/classes/manager.php
analytics/tests/fixtures/db_analytics_php/invalid_enabled.php [new file with mode: 0644]
analytics/tests/fixtures/db_analytics_php/invalid_indicators.php [new file with mode: 0644]
analytics/tests/fixtures/db_analytics_php/invalid_target.php [new file with mode: 0644]
analytics/tests/fixtures/db_analytics_php/invalid_time_splitting.php [new file with mode: 0644]
analytics/tests/fixtures/db_analytics_php/invalid_time_splitting_fq.php [new file with mode: 0644]
analytics/tests/fixtures/db_analytics_php/missing_indicators.php [new file with mode: 0644]
analytics/tests/fixtures/db_analytics_php/missing_target.php [new file with mode: 0644]
analytics/tests/fixtures/db_analytics_php/no_teaching.php [new file with mode: 0644]
analytics/tests/manager_test.php