[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Util/ -> TVarDumper.php (sommaire)

TVarDumper class file

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TVarDumper.php 1397 2006-09-07 07:55:53Z wei $
Poids: 130 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TVarDumper:: (2 méthodes):
  dump()
  dumpInternal()


Classe: TVarDumper  - X-Ref

TVarDumper class.

TVarDumper is intended to replace the buggy PHP function var_dump and print_r.
It can correctly identify the recursively referenced objects in a complex
object structure. It also has a recurisve depth control to avoid indefinite
recursive display of some peculiar variables.

TVarDumper can be used as follows,
<code>
echo TVarDumper::dump($var);
</code>

dump($var,$depth=10,$highlight=false)   X-Ref
Converts a variable into a string representation.
This method achieves the similar functionality as var_dump and print_r
but is more robust when handling complex objects such as PRADO controls.

param: mixed variable to be dumped
param: integer maximum depth that the dumper should go into the variable. Defaults to 10.
return: string the string representation of the variable

dumpInternal($var,$level)   X-Ref
Pas de description



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7