WidgetAjaxController extends AbstractController
Table of Contents
Constants
- MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER = 'dashboard/current_dashboard/'
Properties
- $currentDashboard : Dashboard|null
- $dashboardRepository : DashboardRepository
- $widgetRegistry : WidgetRegistry
Methods
- __construct() : mixed
- getContent() : ResponseInterface
- savePositions() : ResponseInterface
- Get the order of the widgets from the request and save the order in the database by using the repository
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
- loadCurrentDashboard() : string
- saveCurrentDashboard() : void
Constants
MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER
protected
mixed
MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER
= 'dashboard/current_dashboard/'
Properties
$currentDashboard
protected
Dashboard|null
$currentDashboard
$dashboardRepository
protected
DashboardRepository
$dashboardRepository
$widgetRegistry
protected
WidgetRegistry
$widgetRegistry
Methods
__construct()
public
__construct(DashboardRepository $dashboardRepository, WidgetRegistry $widgetRegistry) : mixed
Parameters
- $dashboardRepository : DashboardRepository
- $widgetRegistry : WidgetRegistry
getContent()
public
getContent(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Tags
Return values
ResponseInterfacesavePositions()
Get the order of the widgets from the request and save the order in the database by using the repository
public
savePositions(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServiceloadCurrentDashboard()
protected
loadCurrentDashboard() : string
Return values
stringsaveCurrentDashboard()
protected
saveCurrentDashboard(string $identifier) : void
Parameters
- $identifier : string