MIOLO25
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe dBug

Membros públicos

 dBug ($var, $forceType="")
 
 __construct ($var, $forceType="")
 
 makeTableHeader ($type, $header, $colspan=2)
 
 makeTDHeader ($type, $header)
 
 closeTDRow ()
 
 error ($type)
 
 checkType ($var)
 
 varIsBoolean ($var)
 
 varIsArray ($var)
 
 varIsObject ($var)
 
 varIsResource ($var)
 
 varIsXml ($var)
 
 varIsXmlResource ($var)
 
 xmlParse ($xml_parser, $data, $bFinal)
 
 xmlStartElement ($parser, $name, $attribs)
 
 xmlEndElement ($parser, $name)
 
 xmlCharacterData ($parser, $data)
 
 xmlDefaultHandler ($parser, $data)
 
 varIsDBResource ($var, $db="mysql")
 
 varIsGDResource ($var)
 

Campos de Dados

 $xmlDepth = array()
 
 $xmlCData
 
 $xmlSData
 
 $xmlDData
 
 $xmlCount = 0
 
 $xmlAttrib
 
 $xmlName
 
 $arrType = array( "array", "object", "resource", "boolean" )
 

Descrição detalhada

Var Dump class. This class Dumps/Displays the contents of a variable in a colored tabular format Based on the idea, javascript and css code of Macromedia's ColdFusion cfdump tag A much better presentation of a variable's contents than PHP's var_dump and print_r functions

Thanks to Andrew Hewitt (rudeb.nosp@m.woy@.nosp@m.hotma.nosp@m.il.c.nosp@m.om) for the idea and suggestion

All the credit goes to ColdFusion's brilliant cfdump tag Hope the next version of PHP can implement this or have something similar

Autor
Kwaku Otchere [ospin.nosp@m.to@h.nosp@m.otmai.nosp@m.l.co.nosp@m.m] [http://dbug.ospinto.com]

Maintainers
Armando Taffarel Neto [taffa.nosp@m.rel@.nosp@m.solis.nosp@m..coo.nosp@m.p.br] Daniel Hartmann [danie.nosp@m.l@so.nosp@m.lis.c.nosp@m.oop..nosp@m.br]

Desde
Introduced in MIOLO on July,25 2006

@organization
SOLIS - Cooperativa de Soluções Livres
The MIOLO development team

Copyright
Copyright (c) 2006-2011 - SOLIS - Cooperativa de Soluções Livres
License
Licensed under GPL (for further details read the COPYING file or http://www.gnu.org/copyleft/gpl.html )

History
See history in SVN repository

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/utils/mutil.class.php.

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $var,
$forceType = "" )

Documentação das funções

◆ checkType()

checkType ( $var)

Check variable type. TODO: create constants for types.

Parâmetros
string$var

◆ closeTDRow()

closeTDRow ( )
Retorna
string Close table row.

◆ dBug()

dBug ( $var,
$forceType = "" )

Constructor.

Parâmetros
mixed$var
string$forceTypeType to force. Can be array, object or xml.

◆ error()

error ( $type)

Generate error message. TODO: create constants for errors.

Parâmetros
string$typeError type.
Retorna
string Error message.

◆ makeTableHeader()

makeTableHeader ( $type,
$header,
$colspan = 2 )

Create the main table header.

Parâmetros
string$type
string$header
integer$colspanNumber of columns.

◆ makeTDHeader()

makeTDHeader ( $type,
$header )

Create the table row header.

Parâmetros
type$type
type$header

◆ varIsArray()

varIsArray ( $var)

Check if variable is an array type.

Parâmetros
mixed$var

◆ varIsBoolean()

varIsBoolean ( $var)

Print string representation of boolean

Parâmetros
integer$varZero or one.

◆ varIsDBResource()

varIsDBResource ( $var,
$db = "mysql" )

Check if variable is a database resource type.

Parâmetros
mixed$var
string$db

◆ varIsGDResource()

varIsGDResource ( $var)

Check if variable is an image/gd resource type.

Parâmetros
mixed$var

◆ varIsObject()

varIsObject ( $var)

Check if variable is an object type.

Parâmetros
mixed$var

◆ varIsResource()

varIsResource ( $var)

Check if variable is a resource type.

Parâmetros
mixed$var

◆ varIsXml()

varIsXml ( $var)

Check if variable is an xml type.

Parâmetros
mixed$var

◆ varIsXmlResource()

varIsXmlResource ( $var)

Check if variable is an xml resource type.

Parâmetros
mixed$var

◆ xmlCharacterData()

xmlCharacterData ( $parser,
$data )

XML: initiated when text between tags is encountered.

Parâmetros
type$parser
type$data

◆ xmlDefaultHandler()

xmlDefaultHandler ( $parser,
$data )

XML: initiated when a comment or other miscellaneous texts is encountered.

Parâmetros
type$parser
type$data

◆ xmlEndElement()

xmlEndElement ( $parser,
$name )

XML: initiated when an end tag is encountered.

Parâmetros
type$parser
type$name

◆ xmlParse()

xmlParse ( $xml_parser,
$data,
$bFinal )

Parse XML.

Parâmetros
resource$xml_parser
string$data
boolean$bFinal

◆ xmlStartElement()

xmlStartElement ( $parser,
$name,
$attribs )

XML: inititiated when a start tag is encountered.

Parâmetros
type$parser
type$name
type$attribs

Documentação dos campos e atributos

◆ $arrType

$arrType = array( "array", "object", "resource", "boolean" )

◆ $xmlAttrib

$xmlAttrib

◆ $xmlCData

$xmlCData

◆ $xmlCount

$xmlCount = 0

◆ $xmlDData

$xmlDData

◆ $xmlDepth

$xmlDepth = array()

◆ $xmlName

$xmlName

◆ $xmlSData

$xmlSData

A documentação para esta classe foi gerada a partir do seguinte ficheiro: