MDL-75576 question bank: bulk-load statistics for all questions at once
commit056db339d6ad833db90d3b47502c2f97e46451ec
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 30 Jan 2023 15:42:27 +0000 (30 15:42 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 15 May 2023 08:59:34 +0000 (15 09:59 +0100)
treea2f0c8d5d39721c5b019847e0f798e33d7f12419
parenta919335213432cf926e837e06fe3dc32899cfedf
MDL-75576 question bank: bulk-load statistics for all questions at once

There is a new method on the column class, for the column to declare any
statistics it requires. The question then efficiently loads all those
statistics in one go, and makes them available as the columns are
rendererd, or do any subsequent processing.
question/bank/statistics/classes/columns/discrimination_index.php
question/bank/statistics/classes/columns/discriminative_efficiency.php
question/bank/statistics/classes/columns/facility_index.php
question/bank/statistics/classes/helper.php
question/bank/statistics/tests/helper_test.php
question/bank/upgrade.txt
question/classes/local/bank/column_base.php
question/classes/local/bank/view.php
question/classes/local/statistics/statistics_bulk_loader.php [new file with mode: 0644]
question/tests/local/statistics/statistics_bulk_loader_test.php [copied from question/bank/statistics/tests/helper_test.php with 61% similarity]