Documentation

Debugger
in package
implements ArrayAccess, Countable, IteratorAggregate

Debugger class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
1.3.0

Interfaces, Classes, Traits and Enums

ArrayAccess
Countable
IteratorAggregate

Table of Contents

$handlers  : array<string|int, mixed>
Debugger handlers
$requestId  : string
Debugger request ID
$storage  : StorageInterface
Debugger storage object
__construct()  : mixed
Constructor
__get()  : HandlerInterface
Get a handler
__isset()  : bool
Is handler set
__set()  : Debugger
Set a handler
__toString()  : string
Render to string
__unset()  : void
Unset a handler
addHandler()  : Debugger
Add a handler
count()  : int
Method to get the count of the handlers
generateId()  : string
Generate unique ID
getData()  : array<string|int, mixed>
Get all data from handlers
getHandler()  : mixed
Get a handler
getHandlers()  : array<string|int, mixed>
Get all handlers
getIterator()  : ArrayIterator
Method to iterate over the handlers
getRequestId()  : string
Get current request ID
getStorage()  : StorageInterface
Get the storage object
hasHandler()  : bool
Determine if the debug object has a handler
hasStorage()  : bool
Determine if the debug object has storage
offsetExists()  : bool
ArrayAccess offsetExists
offsetGet()  : mixed
ArrayAccess offsetGet
offsetSet()  : Debugger
ArrayAccess offsetSet
offsetUnset()  : void
ArrayAccess offsetUnset
render()  : string
Render the debug handlers' data to string
renderWithHeaders()  : string
Render the debug handlers' data to string with headers
save()  : void
Save the debug handlers' data to storage
setStorage()  : Debugger
Set the storage object

Properties

$handlers

Debugger handlers

protected array<string|int, mixed> $handlers = []

$requestId

Debugger request ID

protected string $requestId = null

Methods

__construct()

Constructor

public __construct() : mixed

Instantiate a debug object

Return values
mixed

__isset()

Is handler set

public __isset(string $name) : bool
Parameters
$name : string
Return values
bool

__set()

Set a handler

public __set(string $name, mixed $value) : Debugger
Parameters
$name : string
$value : mixed
Return values
Debugger

__toString()

Render to string

public __toString() : string
Return values
string

__unset()

Unset a handler

public __unset(string $name) : void
Parameters
$name : string
Return values
void

count()

Method to get the count of the handlers

public count() : int
Return values
int

generateId()

Generate unique ID

public generateId() : string
Return values
string

getData()

Get all data from handlers

public getData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHandler()

Get a handler

public getHandler(string $name) : mixed
Parameters
$name : string
Return values
mixed

getHandlers()

Get all handlers

public getHandlers() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIterator()

Method to iterate over the handlers

public getIterator() : ArrayIterator
Return values
ArrayIterator

getRequestId()

Get current request ID

public getRequestId() : string
Return values
string

hasHandler()

Determine if the debug object has a handler

public hasHandler(string $name) : bool
Parameters
$name : string
Return values
bool

hasStorage()

Determine if the debug object has storage

public hasStorage() : bool
Return values
bool

offsetExists()

ArrayAccess offsetExists

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

ArrayAccess offsetGet

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetSet()

ArrayAccess offsetSet

public offsetSet(mixed $offset, mixed $value) : Debugger
Parameters
$offset : mixed
$value : mixed
Tags
throws
Exception
Return values
Debugger

offsetUnset()

ArrayAccess offsetUnset

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed
Return values
void

render()

Render the debug handlers' data to string

public render() : string
Return values
string

renderWithHeaders()

Render the debug handlers' data to string with headers

public renderWithHeaders() : string
Return values
string

save()

Save the debug handlers' data to storage

public save() : void
Return values
void

Search results