PlainRenderer
extends TextRenderer
in package
Table of Contents
- SORT_FULL = 2
- SORT_NONE = 0
- SORT_VISIBILITY = 1
- $always_pre_render : mixed
- $decorations : bool
- Decorate the header and footer.
- $default_indent : int
- Indentation width.
- $default_width : int
- The default width of the terminal for headers.
- $disable_utf8 : bool
- Output htmlentities instead of utf8.
- $header_width : mixed
- $indent_width : mixed
- $needs_pre_render : mixed
- $parser_plugin_whitelist : mixed
- Parser plugins must be instanceof one of these or it will be removed for performance reasons.
- $plugins : mixed
- TextRenderer plugins should be instances of Kint\Renderer\Text\Plugin.
- $pre_render_sources : mixed
- $sort : int
- Sort mode for object properties.
- $strlen_max : int
- The maximum length of a string before it is truncated.
- $theme : string
- Path to the CSS file to load by default.
- $call_info : mixed
- $force_pre_render : mixed
- $plugin_objs : mixed
- $pre_render : mixed
- $show_trace : mixed
- $statics : mixed
- __construct() : mixed
- boxText() : mixed
- colorTitle() : mixed
- colorType() : mixed
- colorValue() : mixed
- escape() : mixed
- filterParserPlugins() : mixed
- getCallInfo() : mixed
- getPreRender() : mixed
- getShowTrace() : mixed
- getStatics() : mixed
- ideLink() : mixed
- matchPlugins() : array<string|int, mixed>
- Returns the first compatible plugin available.
- postRender() : mixed
- preRender() : mixed
- render() : mixed
- renderChildren() : mixed
- renderHeader() : mixed
- renderNothing() : mixed
- renderTitle() : mixed
- setCallInfo() : mixed
- setPreRender() : mixed
- setShowTrace() : mixed
- setStatics() : mixed
- sortProperties() : array<string|int, BasicObject>
- Sorts an array of BasicObject.
- sortPropertiesFull() : mixed
- calledFrom() : mixed
- getPlugin() : mixed
- renderCss() : mixed
- renderJs() : mixed
- utf8ToHtmlentity() : mixed
Constants
SORT_FULL
public
mixed
SORT_FULL
= 2
SORT_NONE
public
mixed
SORT_NONE
= 0
SORT_VISIBILITY
public
mixed
SORT_VISIBILITY
= 1
Properties
$always_pre_render
public
static mixed
$always_pre_render
= false
$decorations
Decorate the header and footer.
public
static bool
$decorations
= true
$default_indent
Indentation width.
public
static int
$default_indent
= 4
$default_width
The default width of the terminal for headers.
public
static int
$default_width
= 80
$disable_utf8
Output htmlentities instead of utf8.
public
static bool
$disable_utf8
= false
$header_width
public
mixed
$header_width
= 80
$indent_width
public
mixed
$indent_width
= 4
$needs_pre_render
public
static mixed
$needs_pre_render
= true
$parser_plugin_whitelist
Parser plugins must be instanceof one of these or it will be removed for performance reasons.
public
static mixed
$parser_plugin_whitelist
= array('Kint\Parser\BlacklistPlugin', 'Kint\Parser\MicrotimePlugin', 'Kint\Parser\StreamPlugin', 'Kint\Parser\TracePlugin')
$plugins
TextRenderer plugins should be instances of Kint\Renderer\Text\Plugin.
public
static mixed
$plugins
= array('blacklist' => 'Kint\Renderer\Text\BlacklistPlugin', 'depth_limit' => 'Kint\Renderer\Text\DepthLimitPlugin', 'microtime' => 'Kint\Renderer\Text\MicrotimePlugin', 'recursion' => 'Kint\Renderer\Text\RecursionPlugin', 'trace' => 'Kint\Renderer\Text\TracePlugin')
$pre_render_sources
public
static mixed
$pre_render_sources
= array('script' => array(array('Kint\Renderer\PlainRenderer', 'renderJs'), array('Kint\Renderer\Text\MicrotimePlugin', 'renderJs')), 'style' => array(array('Kint\Renderer\PlainRenderer', 'renderCss')), 'raw' => array())
$sort
Sort mode for object properties.
public
static int
$sort
= self::SORT_NONE
$strlen_max
The maximum length of a string before it is truncated.
public
static int
$strlen_max
= 0
Falsey to disable
$theme
Path to the CSS file to load by default.
public
static string
$theme
= 'plain.css'
$call_info
protected
mixed
$call_info
= array()
$force_pre_render
protected
mixed
$force_pre_render
= false
$plugin_objs
protected
mixed
$plugin_objs
= array()
$pre_render
protected
mixed
$pre_render
$show_trace
protected
mixed
$show_trace
= true
$statics
protected
mixed
$statics
= array()
Methods
__construct()
public
__construct() : mixed
Return values
mixed —boxText()
public
boxText(mixed $text, mixed $width) : mixed
Parameters
- $text : mixed
- $width : mixed
Return values
mixed —colorTitle()
public
colorTitle(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —colorType()
public
colorType(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —colorValue()
public
colorValue(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —escape()
public
escape(mixed $string[, mixed $encoding = false ]) : mixed
Parameters
- $string : mixed
- $encoding : mixed = false
Return values
mixed —filterParserPlugins()
public
filterParserPlugins(array<string|int, mixed> $plugins) : mixed
Parameters
- $plugins : array<string|int, mixed>
Return values
mixed —getCallInfo()
public
getCallInfo() : mixed
Return values
mixed —getPreRender()
public
getPreRender() : mixed
Return values
mixed —getShowTrace()
public
getShowTrace() : mixed
Return values
mixed —getStatics()
public
getStatics() : mixed
Return values
mixed —ideLink()
public
ideLink(mixed $file, mixed $line) : mixed
Parameters
- $file : mixed
- $line : mixed
Return values
mixed —matchPlugins()
Returns the first compatible plugin available.
public
matchPlugins(array<string|int, mixed> $plugins, array<string|int, mixed> $hints) : array<string|int, mixed>
Parameters
- $plugins : array<string|int, mixed>
-
Array of hints to class strings
- $hints : array<string|int, mixed>
-
Array of object hints
Return values
array<string|int, mixed> —Array of hints to class strings filtered and sorted by object hints
postRender()
public
postRender() : mixed
Return values
mixed —preRender()
public
preRender() : mixed
Return values
mixed —render()
public
abstract render(BasicObject $o) : mixed
Parameters
- $o : BasicObject
Return values
mixed —renderChildren()
public
renderChildren(BasicObject $o) : mixed
Parameters
- $o : BasicObject
Return values
mixed —renderHeader()
public
renderHeader(BasicObject $o) : mixed
Parameters
- $o : BasicObject
Return values
mixed —renderNothing()
public
abstract renderNothing() : mixed
Return values
mixed —renderTitle()
public
renderTitle(BasicObject $o) : mixed
Parameters
- $o : BasicObject
Return values
mixed —setCallInfo()
public
setCallInfo(array<string|int, mixed> $info) : mixed
Parameters
- $info : array<string|int, mixed>
Return values
mixed —setPreRender()
public
setPreRender(mixed $pre_render) : mixed
Parameters
- $pre_render : mixed
Return values
mixed —setShowTrace()
public
setShowTrace(mixed $show_trace) : mixed
Parameters
- $show_trace : mixed
Return values
mixed —setStatics()
public
setStatics(array<string|int, mixed> $statics) : mixed
Parameters
- $statics : array<string|int, mixed>
Return values
mixed —sortProperties()
Sorts an array of BasicObject.
public
static sortProperties(array<string|int, BasicObject> $contents, int $sort) : array<string|int, BasicObject>
Parameters
- $contents : array<string|int, BasicObject>
-
Object properties to sort
- $sort : int
Return values
array<string|int, BasicObject> —sortPropertiesFull()
public
static sortPropertiesFull(BasicObject $a, BasicObject $b) : mixed
Parameters
- $a : BasicObject
- $b : BasicObject
Return values
mixed —calledFrom()
protected
calledFrom() : mixed
Return values
mixed —getPlugin()
protected
getPlugin(array<string|int, mixed> $plugins, array<string|int, mixed> $hints) : mixed
Parameters
- $plugins : array<string|int, mixed>
- $hints : array<string|int, mixed>
Return values
mixed —renderCss()
protected
static renderCss() : mixed
Return values
mixed —renderJs()
protected
static renderJs() : mixed
Return values
mixed —utf8ToHtmlentity()
protected
utf8ToHtmlentity(mixed $string) : mixed
Parameters
- $string : mixed