src/Log/Debug.php
public static function getDumpQueryResult($var)
  {
    $header = true;
    $dump = '<table cellpadding=5 cellspacing=0>';
    $i = 1;
    foreach ($var as $ligne) {
      // Affichage du header
      if ($header) {
        $dump .= '<tr>';
        foreach ($ligne as $key => $value) {
          if (!is_numeric($key)) {
            $dump .= '<th>' . $key . '</th>';
          }
        }
        $dump .= '</tr>';
        $header = false;
      }
      // Affichage des données
      $class = '';
      if (!($i % 2)) {
        $class = 'highlight';
      }
      $dump .= '<tr class="' . $class . '">';
      foreach ($ligne as $key => $value) {
        if (!is_numeric($key)) {
          if ($value != '') {
            $dump .= '<td>' . $value . '</td>';
          } else {
            $dump .= '<td>&nbsp;</td>';
          }
        }
      }
      $dump .= '</tr>';
      $i++;
    }
    $dump .= '</table>';
    return $dump;
  }
public static function getDumpQueryResult($var)
  {
    $header = true;
    $dump = '<table cellpadding=5 cellspacing=0>';
    $i = 1;
    foreach ($var as $ligne) {
      // Affichage du header
      if ($header) {
        $dump .= '<tr>';
        foreach ($ligne as $key => $value) {
          if (!is_numeric($key)) {
            $dump .= '<th>' . $key . '</th>';
          }
        }
        $dump .= '</tr>';
        $header = false;
      }
      // Affichage des données
      $class = '';
      if (!($i % 2)) {
        $class = 'highlight';
      }
      $dump .= '<tr class="' . $class . '">';
      foreach ($ligne as $key => $value) {
        if (!is_numeric($key)) {
          if ($value != '') {
            $dump .= '<td>' . $value . '</td>';
          } else {
            $dump .= '<td>&nbsp;</td>';
          }
        }
      }
      $dump .= '</tr>';
      $i++;
    }
    $dump .= '</table>';
    return $dump;
  }
Retourne le dump d'une query

@param  Query $var  Instance de Jin2\query\Query
@return string      Code HTML du dump de la Query