MDL-80912 reportbuilder: output table caption when rendering reports.

Move the `get_name` method to the base report class, so that it can be
implemented by all report types. Provide a default implementation for
system reports based on the name of the class.

Use the name of the report as the caption. Target via Behat selectors.
This commit is contained in:
Paul Holden
2024-02-19 11:57:53 +00:00
parent e4bbd79059
commit 30fa519fa0
7 changed files with 52 additions and 31 deletions
-7
View File
@@ -47,13 +47,6 @@ abstract class datasource extends base {
/** @var array $activeconditions */
private $activeconditions;
/**
* Return user friendly name of the datasource
*
* @return string
*/
abstract public static function get_name(): string;
/**
* Add columns from the given entity name to be available to use in a custom report
*