/**
* 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
*/
public function characterData($parser, $data)
{
$tag = $this->getLastTag();
switch ($tag) {
case 'ITEM':
$this->items[] = $data;
break;
case 'SECURITY':
case 'FIX':
case 'LANGUAGE':
case 'ADDITION':
case 'CHANGE':
case 'REMOVE':
case 'NOTE':
break;
default:
// Throw the data for this item together
$tag = strtolower($tag);
if (isset($this->currentChangelog->{$tag})) {
$this->currentChangelog->{$tag}->data .= $data;
}
break;
}
}