예제 #1
0
/**
 * 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);
}
예제 #2
0
파일: System.php 프로젝트: Silwereth/core
 /**
  * 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>";
 }
예제 #3
0
 static function Dump($Object)
 {
     // 		use Doctrine\Common\Util\Debug;
     Doctrine\Common\Util\Debug::dump($Object);
 }