\DashboardController
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
- License: BSD http://silverstripe.org/BSD-license
Synopsis
class DashboardController
extends FrontendModelController
{
- // members
- private static string $model_class = 'DashboardPage';
- private static boolean $include_default_requirements = true;
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- private static array $allowed_dashlets = ;
- private static array $dependencies = ;
- public $injector;
- public $securityContext;
- public DataService $dataService;
- protected DashboardPage $currentDashboard;
- protected $allowedDashlets = NULL;
- // methods
- public void __construct()
- public void getCurrentDashboard()
- public void init()
- public static void set_allowed_dashlets()
- public static void get_allowed_dashlets()
- public void handleUser()
- public void handleBoard()
- public RequestHandler handleDashlet()
- public void getDashletsList()
- public void index()
- public void board()
- public void user()
- protected void getDashboard()
- public void updateDashboard()
- public void DashboardForm()
- public void adddashboard()
- public void adddashlet()
- public void AddDashletForm()
- public void doAddDashlet()
- public void editorfor()
- public void EditDashletForm()
- public void savedashlet()
- public void deletedashlet()
- public void loaddashlet()
- protected void getRequestedDashlet()
- protected type getRecord()
- public void Link()
- public void Footer()
Hierarchy
Extends
- FrontendModelController
Members
private
- $allowed_actions
- $allowed_dashlets
- $dependencies
- $include_default_requirements
- $model_class
- $url_handlers
protected
- $allowedDashlets
- $currentDashboard — DashboardPage
public
- $dataService — DataService
- $injector
- $securityContext
Methods
protected
- getDashboard()
- getRecord() — Overridden to make sure the dashboard page is attached to the correct controller
- getRequestedDashlet()
public
- __construct()
- AddDashletForm()
- DashboardForm()
- EditDashletForm()
- Link()
- adddashboard()
- adddashlet()
- board() — Handler for when the board action is triggered by a nested controller
- deletedashlet()
- doAddDashlet()
- editorfor() — Gets an editing form for the particular widget
- getCurrentDashboard() — Get the currnet dashboard that the user is viewing
- getDashletsList()
- get_allowed_dashlets()
- handleBoard()
- handleDashlet() — Handles widgets attached to a page through one or more {@link WidgetArea} elements.
- handleUser()
- index()
- init()
- loaddashlet()
- savedashlet()
- set_allowed_dashlets()
- updateDashboard() — Called to update a dashboard structure
- user()