summaryrefslogtreecommitdiff
path: root/framework/PradoBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r--framework/PradoBase.php9
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','>='))
{
/**