Class vardump
Converts arbitrary input variables into a variable dump.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Set\Mutable implements Core\Mutator
- Core\Field implements Core\Inquiry
- Core\Converter
- Core\Converter\Driver\vardump
Package: Core\Converter
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at Converter/Driver/vardump.inc.php
Methods summary
public
|
|
protected
string
|
#
_dump( mixed $variable, boolean $formatHTML = true, integer $level = 0, boolean & $blockFlag = null )
Renders dump of any kind of variable. |
protected
string
|
#
_dumpArray( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats an array. |
protected
string
|
#
_dumpBoolean( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats a Boolean value. |
protected
string
|
#
_dumpDouble( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats a double value. |
protected
string
|
#
_dumpInteger( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats an integer value. |
protected
string
|
#
_dumpNull( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats a null value. |
protected
string
|
#
_dumpObject( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats an object. |
protected
string
|
#
_dumpResource( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats a resource value. |
protected
string
|
#
_dumpString( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats a string value. |
protected
string
|
#
_dumpUnknown( string & $typeName, boolean & $isBlock, mixed $variable, boolean $formatHTML, integer $level )
Formats an unknown type value. |
protected
string
|
#
_encodeCDATA( $string )
Encodes CDATA for output. Takes the current character set into account if available. |
protected
string
|
#
_formatString( string $string, boolean $formatHTML )
Renders a string with special support for encoding control characters. |
public
|
|
public
mixed
|
Methods inherited from Core\Converter
Methods inherited from Core\Field
getDataForKey()
,
getDataForKeys()
,
issetDataForKey()
,
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Core\Set\Mutable
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
|
$_charset
Buffered character set instance used by the variable dumper. |
|
protected
array
|
$_v_typeColours
Colours used for variables in HTML output based on their type. |
#
array (
'default' => 'lightslategray',
'boolean' => 'darkcyan',
'double' => 'mediumvioletred',
'integer' => 'blue',
'null' => 'royalblue',
'op' => 'grey',
'string' => 'brown',
)
|
protected
array
|
$_v_typeDisplayNames
Translation table for variable types. |
#
array (
'array' => 'array',
'boolean' => 'boolean',
'double' => 'float',
'integer' => 'int',
'null' => 'null',
'object' => 'object',
'resource' => 'resource',
'string' => 'string',
'unknown' => '-unknown-',
)
|
protected
integer
|
$_v_levelLimit
Limit for array and object members. |
#
256
|
protected
integer
|
$_v_recursionLimit
Recursion limit. |
#
16
|
protected
array
|
$_blockTypes
Variable types to create own output blocks for. |
#
array (
'array', 'object', 'resource',
)
|
protected
string
|
$_indexOperator
Cached index operator string for arrays and objects. |
|
protected
array
|
$_intermediateHashSet
Cached hashes during a var dump to detect recursion. |
|
protected
string
|
$_referenceOperator
Cached reference operator string. |
|
protected
|
$_stringEncoder
Cached string encoder used to dump strings with encoded control characters. |
|
protected static
array
|
$_hashSet
Global hash set cache for arrays and objects to detect recursion. |
Properties inherited from Core\Converter
Properties inherited from Core\Field
Magic properties
public read-only
integer
|
$levelLimit
Limit for array and object members. |
public read-only
integer
|
$recursionLimit
Recursion limit. |
public read-only
array
|
$typeColours
Translation table for variable types to their HTML colour. |
public read-only
array
|
$typeDisplayNames
Translation table for variable type names. |