public addContent ( string $text ) : boolean | ||
$text | string | May include unparsed tags. |
Результат | boolean | False on parse error. |
public function addContent($text)
{
if (isset($this->private_content_tag)) {
$this->private_content_tag->addContent($text);
} else {
$this->addContentToAllOpenTags($text);
}
return true;
}
/** * Character data between tags regarded as * important. * @param string $token Incoming characters. * @param integer $event Lexer event type. * @return boolean False if parse error. * @access public */ function acceptTextToken($token, $event) { return $this->listener->addContent($token); }