示例#1
0
文件: Test.php 项目: kalkin/solarphp
 /**
  * 
  * Returns the output from Solar_Debug_Var::fetch() for a variable.
  * 
  * @param mixed $var The variable dump.
  * 
  * @return string
  * 
  */
 protected function _export($var)
 {
     return trim($this->_debug->fetch($var));
 }
 /**
  * 
  * Runs var_dump() on a variable and stores that
  * output to be displayed in the debugger
  * 
  * @param mixed $var Variable to be displayed
  * 
  * @param string $label Label for the variable
  * 
  * @return void
  * 
  */
 public function varDump($var, $label)
 {
     // put var_dump() output into an array with $label as the key
     $this->_debug['solar_debug_var'][$label] = $this->_debug_var->fetch($var);
 }