diff options
author | xue <> | 2006-03-31 16:53:44 +0000 |
---|---|---|
committer | xue <> | 2006-03-31 16:53:44 +0000 |
commit | f5c14fc4d955c8ea2a98e05be448b08fa5c5616c (patch) | |
tree | c1f5268fdc344587fad2776354aca113fdda4f92 /framework/PradoBase.php | |
parent | cf5bdd1f8f3919f06ee3f8de9d71ff156fada0ab (diff) |
Fixed #110.
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r-- | framework/PradoBase.php | 9 |
1 files changed, 6 insertions, 3 deletions
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','>='))
{
/**
|