IInspect

Interface for the Artaengine Inspector class.
Source
IInspect.php
Implementations
Inspect

Static Methods

dump

string IInspect::dump(array vars, bool browseObjects, bool print=true)

Dump variable(s) as string.

Arguments

    vars (array)
    Array of variables to be dumped
    browseObjects (bool)
    true=expand objects
    print=true (bool)
    true=print the dump and die, false=return the dump

Returns

string
Dump As HTML or text

dumpDB

string IInspect::dumpDB(array vars, bool print=true)

Inspect database message renderer.

Arguments

    vars (array)
    ['Last query': [SQL, params], 'SQL queries': [queus,], 'Active queue': (string), 'Last commit': (string)]
    print=true (bool)
    true=print the dump and die, false=return the dump

Returns

string
HTML dump

dumpException

string IInspect::dumpException(ErrorException err, string title, bool die=true, bool print=true)

Dump/render exceptions.

Arguments

    err (ErrorException)
    Object to be dumped
    title (string)
    Title of the error message
    die=true (bool)
    true=exit after printing message
    print=true (bool)
    Print the dump or return it

Returns

string
Dump of exception

dumpHtml

string IInspect::dumpHtml(array vars, bool browseObjects, bool print=true)

Dump variable(s) as HTML.

Arguments

    vars (array)
    Array of variables to be dumped
    browseObjects (bool)
    true=expand objects
    print=true (bool)
    true=print the dump and die, false=return the dump

Returns

string
HTML dump

dumpText

string IInspect::dumpText(array vars, bool browseObjects, bool print=true)

Dump variable(s) as unformatted text.

Arguments

    vars (array)
    Array of variables to be dumped
    browseObjects (bool)
    true=expand objects
    print=true (bool)
    true=print the dump and die, false=return the dump

Returns

string
Text dump