LeKoala\DebugBar\DebugBar
A simple helper
Synopsis
class DebugBar
{
- // members
- protected static DebugBar $debugbar;
- public static bool $bufferingEnabled = false;
- protected static JavascriptRenderer $renderer;
- protected static bool $showQueries = false;
- protected static HTTPRequest $request;
- protected static array $extraTimes = ;
- // methods
- public static DebugBar getDebugBar()
- public static BaseDebugBar|null initDebugBar()
- protected static mixed getProtectedValue()
- protected static void setProtectedValue()
- public static void clearDebugBar()
- public static boolean getShowQueries()
- public static void setShowQueries()
- public static ModuleResource moduleResource()
- public static void includeRequirements()
- public static string renderDebugBar()
- public static array disabledCriteria()
- public static string whyDisabled()
- public static void vendorNotInstalled()
- public static void notLocalIp()
- public static void allowAllEnvironments()
- public static void isDisabled()
- public static void isDevUrl()
- public static void isAdminUrl()
- public static void isAdminController()
- public static boolean isDebugBarRequest()
- public static string getRequestUrl()
- public static void withDebugBar()
- public static void setRequest()
- public static HTTPRequest getRequest()
- public static TimeDataCollector|false getTimeCollector()
- public static MessagesCollector|false getMessageCollector()
- public static void trackTime()
- public static void closeExtraTime()
- public static void measureExtraTime()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Injector\Injectable
Members
protected
- $debugbar — DebugBar\DebugBar
- $extraTimes — array
- $renderer — DebugBar\JavascriptRenderer
- $request — SilverStripe\Control\HTTPRequest
- $showQueries — LeKoala\DebugBar\bool
public
- $bufferingEnabled — LeKoala\DebugBar\bool
Methods
protected
- getProtectedValue() — Access a protected property when the api does not allow access
- setProtectedValue() — Set a protected property when the api does not allow access
public
- allowAllEnvironments()
- clearDebugBar() — Clear the current instance of DebugBar
- closeExtraTime() — Close any open extra time record
- disabledCriteria() — Get all criteria why the DebugBar could be disabled
- getDebugBar() — Get the Debug Bar instance
- getMessageCollector()
- getRequest() — Get the current request
- getRequestUrl() — Get request url
- getShowQueries()
- getTimeCollector()
- includeRequirements() — Include DebugBar assets using Requirements API
- initDebugBar() — Init the debugbar instance
- isAdminController()
- isAdminUrl()
- isDebugBarRequest() — Avoid triggering data collection for open handler
- isDevUrl()
- isDisabled()
- measureExtraTime() — Add extra time to time collector
- moduleResource() — Helper to access this module resources
- notLocalIp()
- renderDebugBar() — Returns the script to display the DebugBar
- setRequest() — Set the current request. Is provided by the DebugBarMiddleware.
- setShowQueries() — Override default showQueries mode
- trackTime() — Start/stop time tracking (also before init)
- vendorNotInstalled()
- whyDisabled() — Determine why DebugBar is disabled
- withDebugBar() — Helper to make code cleaner