Properties

$type

$type : string

Type

string

$access

$access : string

Type

string

$name

$name : string

Type

string

$operator

$operator : string

Type

string

$subtype

$subtype : string

Type

string

$size

$size : integer

Type

integer

$extendedValue

$extendedValue : array<mixed,\kintVariableData>

Type

array<mixed,\kintVariableData> — array of kintVariableData objects or strings; displayed collapsed, each element from the array is a separate possible representation of the dumped var

$alternatives

$alternatives : array<mixed,\kintVariableData>

Type

array<mixed,\kintVariableData> — array of alternative representations for same variable

$value

$value : string

Type

string — inline value

$_level

$_level : 

Type

$_customDataTypes

$_customDataTypes : 

Type

$_objects

$_objects : 

Type

$_marker

$_marker : 

Type

$_skipAlternatives

$_skipAlternatives : 

Type

$_dealingWithGlobals

$_dealingWithGlobals : 

Type

$_css3Named

$_css3Named : 

Type

Methods

reset()

reset() 

factory()

factory(  $variable, null  $name = null) : \kintParser

the only public entry point to return a parsed representation of a variable

Parameters

$variable
null $name

Throws

\Exception

Returns

\kintParser

_parse()

_parse(mixed  $variable) : mixed

main and usually single method a custom parser must implement

Parameters

mixed $variable

Returns

mixed —

[!!!] false is returned if the variable is not of current type

_escape()

_escape(  $value,   $encoding = null) 

Parameters

$value
$encoding

_detectEncoding()

_detectEncoding(  $value) 

Parameters

$value

_stripWhitespace()

_stripWhitespace(string  $string) : string

zaps all excess whitespace from string, compacts it but hurts readability

Parameters

string $string

Returns

string

_isSequential()

_isSequential(array  $array) : boolean

returns whether the array: 1) is numeric and 2) in sequence starting from zero

Parameters

array $array

Returns

boolean

_strlen()

_strlen(  $string,   $encoding = null) 

Parameters

$string
$encoding

_substr()

_substr(  $string,   $end,   $encoding = null) 

Parameters

$string
$end
$encoding

_init()

_init() 

_checkDepth()

_checkDepth() 

_isArrayTabular()

_isArrayTabular(  $variable) 

Parameters

$variable

_parse_array()

_parse_array(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_parse_object()

_parse_object(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_parse_boolean()

_parse_boolean(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_parse_double()

_parse_double(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_parse_integer()

_parse_integer(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_parse_null()

_parse_null(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_parse_resource()

_parse_resource(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_parse_string()

_parse_string(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_parse_unknown()

_parse_unknown(  $variable, \kintVariableData  $variableData) 

Parameters

$variable
\kintVariableData $variableData

_fits()

_fits(  $variable) 

Parameters

$variable

_convert()

_convert(  $color) 

Parameters

$color

_HSLtoRGB()

_HSLtoRGB(array  $hsl) 

Parameters

array $hsl

_hue2rgb()

_hue2rgb(  $m1,   $m2,   $h) 

Helper function for _color_hsl2rgb().

Parameters

$m1
$m2
$h

_RGBtoHSL()

_RGBtoHSL(array  $rgb) 

Parameters

array $rgb