/** * Dumps information about a variable in a way that can be used with Doctrine recursive objects.). * * @param $o * @param bool $maxDepth */ function var_dump_safe($o, $echo = true, $maxDepth = true) { return Doctrine\Common\Util\Debug::dump($o, $maxDepth, true, $echo); }
/** * Convenience debug shortcut * functions as var_dump for non-doctrine vars * * @param unknown $var * @return string */ public static function dump($var, $maxDepth = 2, $stripTags = true) { echo "<pre style='text-align:left'>"; Doctrine\Common\Util\Debug::dump($var, $maxDepth, $stripTags); echo "</pre>"; }
static function Dump($Object) { // use Doctrine\Common\Util\Debug; Doctrine\Common\Util\Debug::dump($Object); }