PlasticStudio\DevTools\Core
Synopsis
class Core
extends Extension
{
- // members
- public $logger;
- private static array $dependencies = ;
- private static array $allowed_actions = ;
- // methods
- public array() index()
- public null onAfterInit()
- public redirect emulateuser()
- public string ClientIPAddress()
- public boolean ShouldRedirect()
- public HTMLText DebugInfo()
- public void DebugTools()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $allowed_actions
- $dependencies
public
- $logger
Methods
public
- ClientIPAddress() — Current client's IP address
- DebugInfo() — Build the debug tools markup for template use
- DebugTools() — Deprecated methods
- ShouldRedirect() — Detect whether we should redirect to the primary domain
- emulateuser() — Action to emulate a specific user
- index() — On render of all pages, detect if a redirect is required
- onAfterInit() — Once the ContentController has been initiated, plug in our CSS (if debug enabled)