You are here

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

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

Xml: initiated when text between tags is encountered.

Parameters

string $parser: The parser.

string $data: The data.

File

src/Dbug.php, line 676

Class

Dbug
Implementation of dBug for Drupal.

Namespace

Drupal\dbug

Code

protected function xmlCharacterData($parser, $data) {
  $count = $this->xmlCount - 1;
  if (!empty($this->xmlCData[$count])) {
    $this->xmlCData[$count] .= $data;
  }
  else {
    $this->xmlCData[$count] = $data;
  }
}