示例#1
0
文件: Json.php 项目: nabble/ajde-core
 public function getBody()
 {
     $body = json_encode($this->get('body'));
     if (Config::get('debug')) {
         if (Dump::getAll()) {
             foreach (Dump::getAll() as $source => $var) {
                 //if ($var[1] === true) { $expand = true; }
                 $body .= "<pre class='xdebug-var-dump'>" . var_export($var[0], true) . "</pre>";
             }
         }
     }
     return $body;
 }