Exemplo n.º 1
0
 /**
  * Accept visitor.
  *
  * @param IdmlVisitor $visitor
  * @param int $depth
  */
 public function accept(IdmlVisitor $visitor, $depth = 0)
 {
     $visitor->visitParagraphRange($this, $depth);
     // Reset the tab index to zero; this property is used to determine when the last tab on a row is reached.
     $this->tabIndex = 0;
     foreach ($this->childrenElements as $child) {
         $child->accept($visitor, $depth + 1);
     }
     $visitor->visitParagraphRangeEnd($this, $depth);
 }