[Cs-content-commits] SF.net SVN: cs-content:[370] trunk/1.0/cs_globalFunctions.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-03-27 14:56:13
|
Revision: 370 http://cs-content.svn.sourceforge.net/cs-content/?rev=370&view=rev Author: crazedsanity Date: 2009-03-27 14:56:04 +0000 (Fri, 27 Mar 2009) Log Message: ----------- Minor additional method for debugging. /cs_globalFunctions.class.php: * debug_var_dump() [NEW]: -- similar to debug_print(), except it uses var_dump() instead of print_r() to display information. Allows for easy viewing of what data is in a variable in a web-centric sort of way (for live debugging). Modified Paths: -------------- trunk/1.0/cs_globalFunctions.class.php Modified: trunk/1.0/cs_globalFunctions.class.php =================================================================== --- trunk/1.0/cs_globalFunctions.class.php 2009-03-03 19:07:51 UTC (rev 369) +++ trunk/1.0/cs_globalFunctions.class.php 2009-03-27 14:56:04 UTC (rev 370) @@ -838,6 +838,19 @@ return($realVals[$index]); }//end interpret_bool() //########################################################################## + + + //########################################################################## + public function debug_var_dump($data, $printItForMe=null, $removeHr=null) { + + ob_start(); + var_dump($data); + $printThis = ob_get_contents(); + ob_end_clean(); + + return($this->debug_print($printThis, $printItForMe, $removeHr)); + }//end debug_var_dump() + //########################################################################## }//end cs_globalFunctions{} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |