You are here

protected function Dbug::makeTableHeader in dBug for Drupal 2.0.x

Same name and namespace in other branches
  1. 8 src/Dbug.php \Drupal\dbug\Dbug::makeTableHeader()
  2. 1.0.x src/Dbug.php \Drupal\dbug\Dbug::makeTableHeader()

Create the main table header.

Parameters

string $type: The header type.

string $header: The header.

int $colspan: The colspan.

6 calls to Dbug::makeTableHeader()
Dbug::varIsArray in src/Dbug.php
If variable is an array type.
Dbug::varIsDbResource in src/Dbug.php
If variable is a database resource type.
Dbug::varIsGdResource in src/Dbug.php
If variable is an image/gd resource type.
Dbug::varIsObject in src/Dbug.php
If variable is an object type.
Dbug::varIsResource in src/Dbug.php
If variable is a resource type.

... See full list

File

src/Dbug.php, line 254

Class

Dbug
Implementation of dBug for Drupal.

Namespace

Drupal\dbug

Code

protected function makeTableHeader($type, $header, $colspan = 2) {
  if (!$this->bInitialized) {
    $header = $this
      ->getVariableName() . " (" . $header . ")";
    $this->bInitialized = TRUE;
  }
  $str_i = $this->bCollapsed ? "style=\"font-style:italic\" " : "";
  $this->output[] = "<table cellspacing=2 cellpadding=3 class=\"dBug_" . $type . "\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td " . $str_i . "class=\"dBug_" . $type . "Header\" colspan=" . $colspan . " onClick='dBug_toggleTable(this)'>" . $header . "</td>\n\t\t\t\t</tr>";
}