Documentation

dBug
in package

Class dBug

Table of Contents

$arrHistory  : mixed
$bCollapsed  : mixed
$bInitialized  : mixed
$classRefl  : mixed
$embeddedStringMaxLength  : mixed
$exceptionExcludedProps  : mixed
$exceptionMainProps  : mixed
$vType  : bool
$xmlAttrib  : mixed
$xmlCData  : mixed
$xmlCount  : mixed
$xmlDData  : mixed
$xmlName  : mixed
$xmlSData  : mixed
__construct()  : mixed
checkType()  : mixed
closeTDRow()  : string
error()  : string
getVariableName()  : mixed|string
initializeHeader()  : mixed
initJSandCSS()  : mixed
makeTableHeader()  : mixed
makeTDHeader()  : mixed
renderDBData()  : mixed
renderPrimitiveType()  : mixed
renderTableHeader()  : mixed
varIsArray()  : mixed
varIsBoolean()  : mixed
varIsCurlEasyResource()  : mixed
varIsCurlMultiResource()  : mixed
varIsDBObject()  : mixed
varIsDBResource()  : mixed
varIsException()  : mixed
Renders exceptions : at first basic fields, then custom fields.
varIsGDResource()  : mixed
varIsNULL()  : mixed
varIsNumeric()  : mixed
varIsObject()  : int|null
varIsResource()  : mixed
varIsSpecialObject()  : int
varIsString()  : mixed
renders string either as primitive type (if it is short (less than $embeddedStringMaxLength chars) and contains of one line) or line-by-line (otherwise)
varIsXml()  : mixed
varIsXmlResource()  : mixed
xmlCharacterData()  : mixed
xmlDefaultHandler()  : mixed
xmlEndElement()  : mixed
xmlParse()  : mixed
xmlStartElement()  : mixed

Properties

$arrHistory

public mixed $arrHistory = array()

$bCollapsed

public mixed $bCollapsed = false

$bInitialized

public mixed $bInitialized = false

$classRefl

public mixed $classRefl

$embeddedStringMaxLength

public static mixed $embeddedStringMaxLength = 50

$exceptionExcludedProps

public static mixed $exceptionExcludedProps = array( //'xdebug_message', 'trace', )

$exceptionMainProps

public static mixed $exceptionMainProps = array('message', 'code', 'file', 'line')
Tags
name

other special kinds of objects rendering functionality

$vType

public bool $vType = true

if true then it shows the type of variable

$xmlAttrib

public mixed $xmlAttrib

$xmlCData

public mixed $xmlCData

$xmlCount

public mixed $xmlCount = 0

$xmlDData

public mixed $xmlDData

$xmlName

public mixed $xmlName

$xmlSData

public mixed $xmlSData

Methods

__construct()

public __construct(mixed $var[, string $forceType = "" ][, bool $bCollapsed = false ][, bool $varType = true ]) : mixed
Parameters
$var : mixed

Variable to dump

$forceType : string = ""

type to marshall $var to show

$bCollapsed : bool = false

should output be collapsed

$varType : bool = true
Tags
throws
ReflectionException
noinspection

PhpUnhandledExceptionInspection

Return values
mixed

checkType()

public checkType( $var) : mixed
Parameters
$var :
Tags
throws
Exception
Return values
mixed

closeTDRow()

public closeTDRow() : string
Return values
string

error()

public error( $type) : string
Parameters
$type :
Return values
string

getVariableName()

public getVariableName() : mixed|string
Return values
mixed|string

initializeHeader()

public initializeHeader( &$header) : mixed
Parameters
$header :
Return values
mixed

initJSandCSS()

public static initJSandCSS() : mixed
Return values
mixed

makeTableHeader()

public makeTableHeader(string $type, string $header[, int $colspan = 2 ]) : mixed
Parameters
$type : string

name of the style of the header cell

$header : string

the text of the header cell

$colspan : int = 2

colspan property for the header cell

Return values
mixed

makeTDHeader()

public makeTDHeader(string $type, string $header) : mixed
Parameters
$type : string

name of the style of the key cell

$header : string

the text of the key cell

Return values
mixed

renderDBData()

public renderDBData(mixed &$objectType, mixed &$structure, mixed &$data) : mixed
Parameters
$objectType : mixed
$structure : mixed
$data : mixed
Tags
noinspection

PhpSingleStatementWithBracesInspection

Return values
mixed

renderPrimitiveType()

public renderPrimitiveType(string $headerStyle, string $header, string $value[, string $valueStyle = null ], int $colspan) : mixed
Parameters
$headerStyle : string

name of the style of the header cell

$header : string

the text of the header cell

$value : string

the text of the value cell

$valueStyle : string = null

name of the style of the value cell

$colspan : int

colspan property for the header cell

Return values
mixed

renderTableHeader()

public renderTableHeader(string $type, string $text, int $colspan) : mixed
Parameters
$type : string

name of the style of the header cell

$text : string

the text of the header cell

$colspan : int

colspan property for the header cell

Return values
mixed

varIsArray()

public varIsArray( &$var) : mixed
Parameters
$var :
Return values
mixed

varIsBoolean()

public varIsBoolean( &$var) : mixed
Parameters
$var :
Return values
mixed

varIsCurlEasyResource()

public varIsCurlEasyResource(mixed &$var) : mixed
Parameters
$var : mixed
Tags
noinspection

PhpComposerExtensionStubsInspection

Return values
mixed

varIsCurlMultiResource()

public varIsCurlMultiResource( &$var) : mixed
Parameters
$var :
Return values
mixed

varIsDBObject()

public varIsDBObject(mixed $var) : mixed
Parameters
$var : mixed
Tags
name

database results rendering functions

Return values
mixed

varIsDBResource()

public varIsDBResource( $var[, string $db = 'mysql' ]) : mixed
Parameters
$var :
$db : string = 'mysql'
Return values
mixed

varIsException()

Renders exceptions : at first basic fields, then custom fields.

public varIsException(mixed &$var) : mixed

Custom private and protected fields are rendered if reflection api is available

Parameters
$var : mixed
Return values
mixed

varIsGDResource()

public varIsGDResource( &$var) : mixed
Parameters
$var :
Return values
mixed

varIsNULL()

public varIsNULL() : mixed
Return values
mixed

varIsNumeric()

public varIsNumeric( $var,  $type) : mixed
Parameters
$var :
$type :
Return values
mixed

varIsObject()

public varIsObject( &$var) : int|null
Parameters
$var :
Return values
int|null

varIsResource()

public varIsResource( $var) : mixed
Parameters
$var :
Tags
throws
Exception
Return values
mixed

varIsSpecialObject()

public varIsSpecialObject( &$var) : int
Parameters
$var :
Return values
int

varIsString()

renders string either as primitive type (if it is short (less than $embeddedStringMaxLength chars) and contains of one line) or line-by-line (otherwise)

public varIsString(mixed &$var) : mixed
Parameters
$var : mixed
Return values
mixed

varIsXml()

public varIsXml(mixed $var) : mixed
Parameters
$var : mixed
Tags
name

xml rendering functions

Return values
mixed

varIsXmlResource()

public varIsXmlResource( $var) : mixed
Parameters
$var :
Tags
throws
Exception
Return values
mixed

xmlCharacterData()

public xmlCharacterData( $parser,  $data) : mixed
Parameters
$parser :
$data :
Return values
mixed

xmlDefaultHandler()

public xmlDefaultHandler( $parser,  $data) : mixed
Parameters
$parser :
$data :
Return values
mixed

xmlEndElement()

public xmlEndElement( $parser,  $name) : mixed
Parameters
$parser :
$name :
Return values
mixed

xmlParse()

public xmlParse( $xml_parser,  $data,  $bFinal) : mixed
Parameters
$xml_parser :
$data :
$bFinal :
Tags
throws
Exception
Return values
mixed

xmlStartElement()

public xmlStartElement( $parser,  $name,  $attribs) : mixed
Parameters
$parser :
$name :
$attribs :
Return values
mixed

Search results