MDL-74600 reportbuilder: re-factor menu helper methods into exporters.
commit1e2dd8534676608c15bb5e50bc6021988f0da6d7
authorPaul Holden <paulh@moodle.com>
Thu, 28 Apr 2022 08:59:14 +0000 (28 09:59 +0100)
committerPaul Holden <paulh@moodle.com>
Thu, 19 May 2022 14:56:37 +0000 (19 15:56 +0100)
tree95a9cd92ed3119deea4c2aee6866bc58688a3106
parent6c114e2a80add1f1bd4374d8e613d38cfc2b508b
MDL-74600 reportbuilder: re-factor menu helper methods into exporters.

Encapsulate generation of column/audience menu card data, used in the
editor, from helper class methods to specific exporter classes.
13 files changed:
reportbuilder/classes/external/custom_report_audience_cards_exporter.php [new file with mode: 0644]
reportbuilder/classes/external/custom_report_column_cards_exporter.php [new file with mode: 0644]
reportbuilder/classes/external/custom_report_exporter.php
reportbuilder/classes/external/custom_report_menu_cards_exporter.php
reportbuilder/classes/local/helpers/audience.php
reportbuilder/classes/local/helpers/report.php
reportbuilder/classes/output/dynamictabs/audience.php
reportbuilder/templates/local/sidebar-menu/card_item.mustache
reportbuilder/tests/behat/audience.feature
reportbuilder/tests/external/custom_report_audience_cards_exporter_test.php [new file with mode: 0644]
reportbuilder/tests/external/custom_report_column_cards_exporter_test.php [new file with mode: 0644]
reportbuilder/tests/local/helpers/audience_test.php
reportbuilder/upgrade.txt