UncleCheese\Dashboard\DashboardMember
Decorates the Member object to work with the Dashboard interface
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class DashboardMember
extends DataExtension
{
- // methods
- public void updateCMSFields()
- public void onAfterWrite()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db
- $has_many
Methods
public
- onAfterWrite() — Ensures that new members get the default dashboard configuration. Once it has been applied, make sure this doesn't happen again, if for some reason a user insists on having an empty dashboard.
- updateCMSFields() — Removes the DashboardPanels tab from the Security section. Panels should not be managed there.