UncleCheese\Dashboard\Dashboard
Defines the Dashboard interface for the CMS
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class Dashboard
extends LeftAndMain
implements
PermissionProvider
{
- // members
- private static string $menu_title = "Dashboard";
- private static string $url_segment = "dashboard";
- private static integer $menu_priority = 100;
- private static integer $url_priority = 30;
- private static string $menu_icon = "unclecheese/dashboard:images/dashboard.png";
- private static string $tree_class = 'DashboardPanel';
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- // methods
- public void init()
- public array providePermissions()
- public HTTPResponse handlePanel()
- public void sort()
- public HTTPResponse setdefault()
- public HTTPResponse applytoall()
- public DataList BasePanels()
- public DataList Panels()
- public ArrayList AllPanels()
- public bool IsAdmin()
- public bool canView()
- public bool CanAddPanels()
- public bool CanDeletePanels()
- public bool CanConfigurePanels()
Hierarchy
Extends
- SilverStripe\Admin\LeftAndMain
Implements
- SilverStripe\Security\PermissionProvider
Members
private
- $allowed_actions
- $tree_class
- $url_handlers
- $url_priority
- $url_segment
Methods
public
- AllPanels() — Gets all the available panels that can be installed on the dashboard. All subclasses of {@link DashboardPanel} are included
- BasePanels() — Gets the current user's dashboard configuration
- CanAddPanels() — Check if the current user can add panels to the dashboard
- CanConfigurePanels() — Check if the current user can configure panels on the dashboard
- CanDeletePanels() — Check if the current user can delete panels from the dashboard
- IsAdmin() — A template accessor to check the ADMIN permission
- Panels() — Gets the current user's dashboard configuration
- applytoall() — A controller action that handles the application of a dashboard configuration to all members
- canView() — Check the permission to make sure the current user has a dashboard
- handlePanel() — Handles a request for a {@link DashboardPanel} object. Can be a new record or existing
- init()
- providePermissions() — Provides custom permissions to the Security section
- setdefault() — A controller action that handles setting the default dashboard configuration
- sort() — A controller action that handles the reordering of the panels