Beispiel #1
0
 /**
  * Register method as requiring a post method.
  *
  * @param T_Text_Element $node
  */
 protected function registerForPostMethod(T_Text_Element $node)
 {
     if (!$node->isChildren()) {
         $name = explode('_', get_class($node));
         array_shift($name);
         $method = 'post' . implode('', $name);
         $this->{$method}($node);
     } else {
         $this->parent[$this->depth] = $node;
     }
 }
Beispiel #2
0
 /**
  * Visit a formatted text node.
  *
  * @param T_Text_Element $element
  */
 function visitTextPlain($element)
 {
     if (!$element->isContainedBy('T_Text_Paragraph') && !$element->isContainedBy('T_Text_Header')) {
         $this->parse($element);
     }
 }