Property | Type | Description | |
---|---|---|---|
$aliases | |||
$appRootDirs | |||
$charEncodings | |||
$cliColors | |||
$cliDetection | |||
$displayCalledFrom | |||
$expandedByDefault | |||
$fileLinkFormat | |||
$maxLevels | |||
$maxStrLength | |||
$returnOutput | # stores mode and active statuses | ||
$theme |
Method | Description | |
---|---|---|
dump ( mixed $data = null ) : void | string | Dump information about variables, accepts any number of parameters, supports modifiers: | |
enabled ( mixed $forceMode = null ) : mixed | Enables or disables Kint, can globally enforce the rendering mode. If called without parameters, returns the current mode. | |
getIdeLink ( $file, $line ) | ||
shortenPath ( string $file ) : string | generic path display callback, can be configured in the settings; purpose is to show relevant path info and hide as much of the path as possible. | |
trace ( array $trace = null ) : mixed | Prints a debug backtrace, same as Kint::dump(1) |
Method | Description | |
---|---|---|
_getCalleeInfo ( array $trace ) : array( | returns parameter names that the function was passed, as well as any predefined symbols before function call (modifiers) | |
_parseTrace ( array $data ) | ||
_removeAllButCode ( string $source ) : string | removes comments and zaps whitespace & | |
_showSource ( string $file, integer $lineNumber, integer $padding = 7 ) : boolean | string | trace helper, shows the place in code inline | |
_stepIsInternal ( $step ) : array | returns whether current trace step belongs to Kint or its wrappers |
public static enabled ( mixed $forceMode = null ) : mixed | ||
$forceMode | mixed | null or void - return current mode false - disable (no output) true - enable and detect cli automatically Kint::MODE_* - enable and force selected mode disregarding detection and function shorthand (s()/d()), note that you can still override this with the "~" modifier |
return | mixed | previously set value if a new one is passed |
public static shortenPath ( string $file ) : string | ||
$file | string | |
return | string |
public static $returnOutput |