Debug extends Component
Implements integration with developer tools.
Table of Contents
- __construct() : mixed
- Class constructor.
- alter_scripts() : array<string|int, mixed>
- Alters scripts.
- alter_style_tag() : string
- Alters style tag.
- alter_styles() : array<string|int, mixed>
- Alters styles.
- is_enabled() : bool
- Checks if debug is enabled.
- boot() : mixed
- Bootstraps component properties.
- set_callbacks() : mixed
- Sets the action and filter callbacks.
- set_property() : mixed
- Sets a property value.
Methods
__construct()
Class constructor.
public
__construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $args : array<string|int, mixed> = []
-
Component arguments.
Return values
mixed —alter_scripts()
Alters scripts.
public
alter_scripts(array<string|int, mixed> $scripts) : array<string|int, mixed>
Parameters
- $scripts : array<string|int, mixed>
-
Scripts.
Return values
array<string|int, mixed> —alter_style_tag()
Alters style tag.
public
alter_style_tag(string $tag, string $handle, string $src) : string
Parameters
- $tag : string
-
Style HTML.
- $handle : string
-
Style handle.
- $src : string
-
Style URL.
Return values
string —alter_styles()
Alters styles.
public
alter_styles(array<string|int, mixed> $styles) : array<string|int, mixed>
Parameters
- $styles : array<string|int, mixed>
-
Styles.
Return values
array<string|int, mixed> —is_enabled()
Checks if debug is enabled.
public
is_enabled() : bool
Return values
bool —boot()
Bootstraps component properties.
protected
boot() : mixed
Return values
mixed —set_callbacks()
Sets the action and filter callbacks.
protected
final set_callbacks(array<string|int, mixed> $callbacks) : mixed
Parameters
- $callbacks : array<string|int, mixed>
-
Callback arguments.
Return values
mixed —set_property()
Sets a property value.
protected
final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
- $name : string
-
Property name.
- $value : mixed
-
Property value.
- $prefix : string = ''
-
Method prefix.