Dashboard\Widgets\Dash\HasReportWidgets
Overview
HasDashWidgets concern
Protected Properties
protected array $reportWidgets
reportWidgets collection of all reports widgets used in this dash.
protected Backend\Classes\DashManager $dashManager
Public Methods
public getReportWidget()
public getReportWidget(string $report): void
getReportWidget returns a specified report widget
public getReportWidgets()
public getReportWidgets(): array
getReportWidgets for the instance
public nameToId()
public nameToId($input $input): string
nameToId is a helper method to convert a report name to a valid ID attribute
Protected Methods
protected initReportWidgetsConcern()
protected initReportWidgetsConcern(): void
protected isReportWidget()
protected isReportWidget($reportType): bool
isReportWidget checks the input resolves to a class extending ReportWidgetBase or VueReportWidgetBase; runs the base-class check for both aliases and fully-qualified names so posted class names cannot skip verification just by containing a backslash
protected isVueReportWidget()
protected isVueReportWidget($reportType): bool
isVueReportWidget returns true if the widget is a vue report widget
protected makeDashReportWidget()
protected makeDashReportWidget($report): void
makeDashReportWidget object from a dash report object