protected function Dbug::makeTableHeader in dBug for Drupal 2.0.x
Same name and namespace in other branches
- 8 src/Dbug.php \Drupal\dbug\Dbug::makeTableHeader()
- 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.
File
- src/
Dbug.php, line 254
Class
- Dbug
- Implementation of dBug for Drupal.
Namespace
Drupal\dbugCode
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>";
}