Backend\Classes\ReportDataSourceManager

Overview

ReportDataSourceManager manages report data sources.


Public Methods

public getDataSource()

public getDataSource(string $className): ?ReportDataSourceBase 

Returns a data source instance by its class name.

public getDefaultWidgetConfigs()

public getDefaultWidgetConfigs(): array 

Returns the default widget configuration for data source dimensions that have a defined type.

public static instance()

public static instance(): static 

instance creates a new instance of this singleton

public listDataSourceClasses()

public listDataSourceClasses(): array 

Returns class and display names of registered data sources.

public registerDataSourceClass()

public registerDataSourceClass(
    string $className,
    string $displayName
): void 

Registers a report data source.