AloFramework Logger
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • AloFramework
    • Log
  • None
  • PHP
  • Psr
    • Log

Classes

  • BaseUser
  • Kint
  • Kint_Decorators_Plain
  • Kint_Decorators_Rich
  • Kint_Objects_Closure
  • Kint_Objects_Smarty
  • Kint_Objects_SplFileInfo
  • Kint_Parsers_ClassMethods
  • Kint_Parsers_ClassStatics
  • Kint_Parsers_Color
  • Kint_Parsers_FsPath
  • Kint_Parsers_Json
  • Kint_Parsers_Microtime
  • Kint_Parsers_objectIterateable
  • Kint_Parsers_SplObjectStorage
  • Kint_Parsers_Timestamp
  • Kint_Parsers_Xml
  • KintObject
  • kintParser
  • kintVariableData
  • User
  • UserManager

Functions

  • d
  • dd
  • ddd
  • s
  • sd

Class Kint

Located atvendor/raveren/kint/Kint.class.php

Methods summary

public static mixed
#enabled(mixed$forceMode=null)

Enables or disables Kint, can globally enforce the rendering mode. If called without parameters, returns the current mode.

Enables or disables Kint, can globally enforce the rendering mode. If called without parameters, returns the current mode.

Parameters

$forceMode
mixed
$forceMode 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

Returns

mixed
previously set value if a new one is passed
public static mixed
#trace(array$trace=null)

Prints a debug backtrace, same as Kint::dump(1)

Prints a debug backtrace, same as Kint::dump(1)

Parameters

$trace
array
$trace [OPTIONAL] you can pass your own trace, otherwise,debug_backtracewill be called

Returns

mixed
public static |string
#dump(mixed$data=null)

Dump information about variables, accepts any number of parameters, supports modifiers:

Dump information about variables, accepts any number of parameters, supports modifiers:

clean up any output before kint and place the dump at the top of page: - Kint::dump() ***** expand all nodes on display: ! Kint::dump() ***** dump variables disregarding their depth: + Kint::dump() ***** return output instead of displaying it: @ Kint::dump() ***** force output as plain text ~ Kint::dump()

Modifiers are supported by all dump wrapper functions, including Kint::trace(). Space is optional.

You can also use the following shorthand to display debug_backtrace(): Kint::dump( 1 );

Passing the result from debug_backtrace() to kint::dump() as a single parameter will display it as trace too: $trace = debug_backtrace( true ); Kint::dump( $trace ); Or simply: Kint::dump( debug_backtrace() );

Parameters

$data
mixed
$data

Returns

|string
public static string
#shortenPath(string$file)

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.

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.

Parameters

$file
string
$file

Returns

string
public static
#getIdeLink(mixed$file,mixed$line)
private static boolean|string
#_showSource(string$file,integer$lineNumber,integer$padding=7)

trace helper, shows the place in code inline

trace helper, shows the place in code inline

Parameters

$file
string
$file full path to file
$lineNumber
integer
$lineNumber the line to display
$padding
integer
$padding surrounding lines to show besides the main one

Returns

boolean|string
private static array(
#_getCalleeInfo(array$trace)

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

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

Parameters

$trace
array
$trace

Returns

array(
$parameters, $modifier, $callee, $previousCaller )
private static string
#_removeAllButCode(string$source)

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

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

Parameters

$source
string
$source

Returns

string
private static array
#_stepIsInternal(mixed$step)

returns whether current trace step belongs to Kint or its wrappers

returns whether current trace step belongs to Kint or its wrappers

Parameters

$step
mixed
$step

Returns

array
private static
#_parseTrace(array$data)

Magic methods summary

Constants summary

stringMODE_RICH'r'
#
stringMODE_WHITESPACE'w'
#
stringMODE_CLI'c'
#
stringMODE_PLAIN'p'
#

Properties summary

private static mixed$_enabledMode
#
public static mixed$returnOutput
#
public static mixed$fileLinkFormat
#
public static mixed$displayCalledFrom
#
public static mixed$charEncodings
#
public static mixed$maxStrLength
#
public static mixed$appRootDirs
#
public static mixed$maxLevels
#
public static mixed$theme
#
public static mixed$expandedByDefault
#
public static mixed$cliDetection
#
public static mixed$cliColors
#
public static array$aliases
#
private static boolean$_firstRun
#
AloFramework Logger API documentation generated byApiGen 2.8.0