dibi::dump PHP Method

dump() public static method

Prints out a syntax highlighted version of the SQL command or Result.
public static dump ( $sql = NULL, $return = FALSE ) : string
return string
    public static function dump($sql = NULL, $return = FALSE)
    {
        return Dibi\Helpers::dump($sql, $return);
    }

Usage Example

Example #1
0
 /**
  * Returns custom panels.
  * @return array
  */
 public function getPanels()
 {
     $panels = array();
     if ($this->sql !== NULL) {
         $panels['SQL'] = array('expanded' => TRUE, 'content' => dibi::dump($this->sql, TRUE));
     }
     return $panels;
 }
All Usage Examples Of dibi::dump