Back to ExtensionAdapter class

Method _characterData

protected void
_characterData
(mixed $parser, mixed $data)
Character Parser Function
Parameters
  • object $parser Parser object.
  • object $data The data.
Returns
  • void
Since
  • 1.7.0
-
  • This is public because its called externally.

Method _characterData - Source code

/**
 * Character Parser Function
 *
 * @param   object  $parser  Parser object.
 * @param   object  $data    The data.
 *
 * @return  void
 *
 * @note    This is public because its called externally.
 * @since   1.7.0
 */
protected function _characterData($parser, $data)
{
    $tag = $this->_getLastTag();
    if (\in_array($tag, $this->updatecols)) {
        $tag = strtolower($tag);
        $this->currentUpdate->{$tag} .= $data;
    }
    if ($tag === 'PHP_MINIMUM') {
        $this->currentUpdate->php_minimum = $data;
    }
    if ($tag === 'TAG') {
        $this->currentUpdate->stability = $this->stabilityTagToInteger((string) $data);
    }
}