protected function Dbug::xmlStartElement in dBug for Drupal 8
Same name and namespace in other branches
- 2.0.x src/Dbug.php \Drupal\dbug\Dbug::xmlStartElement()
- 1.0.x src/Dbug.php \Drupal\dbug\Dbug::xmlStartElement()
Xml: inititiated when a start tag is encountered.
Parameters
string $parser: The parser.
string $name: The name.
string $attribs: The attributes.
File
- src/
Dbug.php, line 626
Class
- Dbug
- Implementation of dBug for Drupal.
Namespace
Drupal\dbugCode
protected function xmlStartElement($parser, $name, $attribs) {
$this->xmlAttrib[$this->xmlCount] = $attribs;
$this->xmlName[$this->xmlCount] = $name;
$this->xmlSData[$this->xmlCount] = '$this->makeTableHeader("xml","xml element",2);';
$this->xmlSData[$this->xmlCount] .= '$this->makeTDHeader("xml","xmlName");';
$this->xmlSData[$this->xmlCount] .= '$this->output[] = "<strong>' . $this->xmlName[$this->xmlCount] . '</strong>".$this->closeTDRow();';
$this->xmlSData[$this->xmlCount] .= '$this->makeTDHeader("xml","xmlAttributes");';
if (count($attribs) > 0) {
$this->xmlSData[$this->xmlCount] .= '$this->varIsArray($this->xmlAttrib[' . $this->xmlCount . ']);';
}
else {
$this->xmlSData[$this->xmlCount] .= '$this->output[] = " ";';
}
$this->xmlSData[$this->xmlCount] .= '$this->output[] = $this->closeTDRow();';
$this->xmlCount++;
}