From f5c14fc4d955c8ea2a98e05be448b08fa5c5616c Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 31 Mar 2006 16:53:44 +0000 Subject: Fixed #110. --- framework/PradoBase.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'framework/PradoBase.php') diff --git a/framework/PradoBase.php b/framework/PradoBase.php index 09dcc9e9..59ab5b14 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -511,16 +511,19 @@ class PradoBase * 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. + * @param boolean whether to syntax highlight the output. Defaults to false. * @return string the string representation of the variable */ - public static function varDump($var,$depth=10) + public static function varDump($var,$depth=10,$highlight=false) { require_once(PRADO_DIR.'/Util/TVarDumper.php'); - return TVarDumper::dump($var,$depth); + return TVarDumper::dump($var,$depth,$highlight); } } - +/** + * The following code is meant to fill the gaps between different PHP versions. + */ if(version_compare(phpversion(),'5.1.0','>=')) { /** -- cgit v1.2.3