コード例 #1
0
ファイル: HorizontalRule.php プロジェクト: fluxbb/commonmark
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->visitHorizontalRule($this);
 }
コード例 #2
0
ファイル: String.php プロジェクト: fluxbb/commonmark
 /**
  * Accept a visit from a node visitor.
  *
  * This method should instrument the visitor to handle this node correctly, and also pass it on to any child nodes.
  *
  * @param NodeVisitorInterface $visitor
  * @return void
  */
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->visitString($this);
 }
コード例 #3
0
ファイル: HTMLBlock.php プロジェクト: fluxbb/commonmark
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->visitHTMLBlock($this);
 }
コード例 #4
0
ファイル: Paragraph.php プロジェクト: fluxbb/commonmark
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->enterParagraph($this);
     $visitor->leaveParagraph($this);
 }
コード例 #5
0
ファイル: RawHTML.php プロジェクト: fluxbb/commonmark
 /**
  * Accept a visit from a node visitor.
  *
  * This method should instrument the visitor to handle this node correctly, and also pass it on to any child nodes.
  *
  * @param NodeVisitorInterface $visitor
  * @return void
  */
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->visitRawHTML($this);
 }
コード例 #6
0
ファイル: Image.php プロジェクト: fluxbb/commonmark
 /**
  * Accept a visit from a node visitor.
  *
  * This method should instrument the visitor to handle this node correctly, and also pass it on to any child nodes.
  *
  * @param NodeVisitorInterface $visitor
  * @return void
  */
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->visitImage($this);
 }
コード例 #7
0
ファイル: Blockquote.php プロジェクト: fluxbb/commonmark
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->enterBlockquote($this);
     parent::visit($visitor);
     $visitor->leaveBlockquote($this);
 }
コード例 #8
0
ファイル: ListBlock.php プロジェクト: fluxbb/commonmark
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->enterListBlock($this);
     parent::visit($visitor);
     $visitor->leaveListBlock($this);
 }
コード例 #9
0
ファイル: Emphasis.php プロジェクト: fluxbb/commonmark
 /**
  * Accept a visit from a node visitor.
  *
  * This method should instrument the visitor to handle this node correctly, and also pass it on to any child nodes.
  *
  * @param NodeVisitorInterface $visitor
  * @return void
  */
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->visitEmphasis($this);
 }
コード例 #10
0
ファイル: HardBreak.php プロジェクト: fluxbb/commonmark
 /**
  * Accept a visit from a node visitor.
  *
  * This method should instrument the visitor to handle this node correctly, and also pass it on to any child nodes.
  *
  * @param NodeVisitorInterface $visitor
  * @return void
  */
 public function visit(NodeVisitorInterface $visitor)
 {
     $visitor->visitHardBreak($this);
 }