You are here

function dba_statpack_columns in Database Administration 7

Display statpack columns.

4 calls to dba_statpack_columns()
dba_mysql_statpack_format in database/mysql.statpack.inc
dba_mysql_statpack_output in database/mysql.statpack.inc
dba_mysql_statpack_statement in database/mysql.statpack.inc
dba_statpack_header in ./dba.statpack.inc
Display report header.

File

./dba.statpack.inc, line 145

Code

function dba_statpack_columns($columns = array()) {
  $output = '';
  for ($col = 0; $col < 4; $col++) {
    switch ($col) {
      case 0:
        $output .= sprintf('%28s', $columns[$col]);
        break;
      case 1:
        $output .= sprintf('%17s', $columns[$col]);
        break;
      case 2:
      case 3:
        $output .= sprintf('%25s', $columns[$col]);
        break;
    }
  }
  return $output;
}