示例#1
0
 protected function parseText(dom\text $node, $bTrim = true)
 {
     if (!$this->allowText()) {
         $this->throwException('Text node not allowed here', array($node->asToken()));
     }
     return $bTrim ? $this->trimString($node->getValue()) : $node->getValue();
 }
示例#2
0
 protected function parseChildrenText(dom\text $node, array &$aResult)
 {
     $aResult[] = $node->getValue();
 }
示例#3
0
 protected function parseText(dom\text $node, $bTrim = true)
 {
     $this->throwException('Mixed element (element and text) or multiple text node not allowed here', array($node->getParent()->asToken()));
 }