Properties

$traceCleanupCallback

$traceCleanupCallback : 

Type

$fileLinkFormat

$fileLinkFormat : 

Type

$hideSequentialKeys

$hideSequentialKeys : 

Type

$showClassConstants

$showClassConstants : 

Type

$keyFilterCallback

$keyFilterCallback : 

Type

$displayCalledFrom

$displayCalledFrom : 

Type

$charEncodings

$charEncodings : 

Type

$maxStrLength

$maxStrLength : 

Type

$appRootDirs

$appRootDirs : 

Type

$maxLevels

$maxLevels : 

Type

$enabled

$enabled : 

Type

$theme

$theme : 

Type

$expandedByDefault

$expandedByDefault : 

Type

$devel

$devel : 

Type

$_firstRun

$_firstRun : 

Type

$_statements

$_statements : 

Type

$_usedColors

$_usedColors : 

Type

Methods

enabled()

enabled(null  $value = null) : void|boolean

getter/setter for the enabled parameter, called at the beginning of every public function as getter, also initializes the settings if te first time it's run.

Parameters

null $value

Returns

void|boolean

_init()

_init() 

trace()

trace(array  $trace = null) : void

Prints a debug backtrace

Parameters

array $trace

[OPTIONAL] you can pass your own trace, otherwise, debug_backtrace will be called

dump()

dump(mixed  $data = null) : void|string

dump information about variables

Parameters

mixed $data

Returns

void|string

shortenPath()

shortenPath(string  $file, integer  $line = null) : string

generic path display callback, can be configured in the settings

Parameters

string $file
integer $line

[OPTIONAL]

Returns

string

decorate()

decorate(\kintVariableData  $kintVar) 

Parameters

\kintVariableData $kintVar

_dump()

_dump(  $var,   $name = '') 

Parameters

$var
$name

_css()

_css() : string

produces css and js required for display. May be called multiple times, will only produce output once per pageload or until `-` or `@` modifier is used

Returns

string

_wrapStart()

_wrapStart(array  $callee) : string

called for each dump, opens the html tag

Parameters

array $callee

caller information taken from debug backtrace

Returns

string

_wrapEnd()

_wrapEnd(array  $callee, array  $prevCaller) : string

closes Kint::_wrapStart() started html tags and displays callee information

Parameters

array $callee

caller information taken from debug backtrace

array $prevCaller

previous caller information taken from debug backtrace

Returns

string

_showSource()

_showSource(string  $file, integer  $lineNumber, integer  $padding = 7) : boolean|string

trace helper, shows the place in code inline

Parameters

string $file

full path to file

integer $lineNumber

the line to display

integer $padding

surrounding lines to show besides the main one

Returns

boolean|string

_getPassedNames()

_getPassedNames(array  $trace) : \array(

returns parameter names that the function was passed, as well as any predefined symbols before function call (modifiers)

Parameters

array $trace

Returns

\array( —

$parameters, $modifier, $callee, $previousCaller )

_removeAllButCode()

_removeAllButCode(string  $source) : string

removes comments and zaps whitespace & <?php tags from php code, makes for easier further parsing

Parameters

string $source

Returns

string

_drawHeader()

_drawHeader(\kintVariableData  $kintVar,   $verbose = true) 

Parameters

\kintVariableData $kintVar
$verbose