Symbiote\Ralph\Ralph
Synopsis
class Ralph
{
- // constants
- const MODULE_DIR = 'ralph';
- // members
- private static boolean $is_enabled = false;
- private static array $default_settings = ;
- protected array $settings = ;
- protected string $class = '';
- protected array $data = ;
- private boolean $isSilverStripe4 = false;
- // methods
- public void __construct()
- public static null enable()
- public null init()
- public void useCustomClass()
- public void getDumpToFile()
- public null getClasses()
- public null constructorStore()
- public static boolean in_cms()
- public static boolean in_dev()
- public void profilerStore()
- public array getData()
- public HTMLText forTemplate()
Tasks
Line | Task |
---|---|
363 | (Jake): Allow sorting by constructor or caller |
Constants
Name | Value |
---|---|
MODULE_DIR | 'ralph' |
Members
private
- $default_settings — array
- $isSilverStripe4 — boolean
- $is_enabled — boolean
protected
- $class — string
- $data
—
array
Store function time - $settings — array
Methods
public
- __construct()
- constructorStore() — To be inserted into and called from a DataList::__construct function.
- enable() — Enables Ralph profiler, by default it will not be enabled in the CMS or in developer tools
- forTemplate() — Render profiling information.
- getClasses() — Get classes to instrument with profiling time code.
- getData()
- getDumpToFile() — Whether to dump to /ralph/src_generated/* folder or not.
- in_cms() — Detect if user is in the CMS or not.
- in_dev() — Detect if user is in the developer build tools or not
- init() — Initialize the Ralph profiler
- profilerStore()
- useCustomClass() — This is a workaround for the injector affecting subclasses basically force any subclasses of DataList to use their original class leave the Injector behaviour in-tact.