* @copyright 2005 by gERD Schaufelberger * @package wombatSite * @subpackage debugger */ /** * Debugger_Html * * @version 1.0.0 * @package wombatSite * @subpackage debugger */ class wbDebugger_Html extends wbDebugger { /** * format string for output * * @abstract * @access public * @param string $var */ function sprint( $var ) { return nl2br( $var ); } /** * capture output of print_r to add it to debug info * * @access public * @param mixed &$var * @param string $type print_r|var_dump */ function sprint_r( &$var, $type = 'print_r' ) { ob_start(); echo '
'; $type( $var ); echo ''; $tmp = ob_get_contents(); ob_end_clean(); return $tmp; } /** * echo debug messages * * * @access private * @param string $part named part * @return boolean $result true on success */ function printMessages( $part = null ) { if( !$this->_active ) { return true; } $empty = true; echo '
'
. 'Debugger::Html ' . '[Wombat Web Bench http://wombat.exit0.net]' . ' | '
. '