You are here

protected function Dbug::xmlEndElement in dBug for Drupal 8

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

Xml: initiated when an end tag is encountered.

Parameters

string $parser: The parser.

string $name: The name.

File

src/Dbug.php, line 651

Class

Dbug
Implementation of dBug for Drupal.

Namespace

Drupal\dbug

Code

protected function xmlEndElement($parser, $name) {
  for ($i = 0; $i < $this->xmlCount; $i++) {
    eval($this->xmlSData[$i]);
    $this
      ->makeTdHeader("xml", "xmlText");
    $this->output[] = !empty($this->xmlCData[$i]) ? $this->xmlCData[$i] : "&nbsp;";
    $this->output[] = $this
      ->closeTdRow();
    $this
      ->makeTdHeader("xml", "xmlComment");
    $this->output[] = !empty($this->xmlDData[$i]) ? $this->xmlDData[$i] : "&nbsp;";
    $this->output[] = $this
      ->closeTdRow();
    $this
      ->makeTdHeader("xml", "xmlChildren");
    unset($this->xmlCData[$i], $this->xmlDData[$i]);
  }
  $this->output[] = $this
    ->closeTdRow();
  $this->output[] = "</table>";
  $this->xmlCount = 0;
}