MDL-59057 analytics: Introduce static models

Part of MDL-57791 epic.
This commit is contained in:
David Monllao
2017-07-24 08:36:32 +02:00
parent 2834ea9611
commit a40952d384
28 changed files with 498 additions and 102 deletions
+3 -1
View File
@@ -36,7 +36,9 @@ defined('MOODLE_INTERNAL') || die();
abstract class binary extends discrete {
public static final function get_classes() {
return array(0, 1);
// It does not really matter, all \core_analytics\local\indicator\discrete get_classes calls have been overwriten as we
// only need 1 column here.
return array(0);
}
public function get_display_value($value, $subtype = false) {