Docbook visitor for the BBCode AST.
Source for this file: /Document/src/document/bbcode/visitor/docbook.php
ezcDocumentBBCodeVisitor | --ezcDocumentBBCodeDocbookVisitor
Version: | //autogen// |
protected DOMDocument |
$document
DOM document |
protected array |
$visitMapping
= array(
Mapping of AST nodes to the visitor methods, which are sued to transform the respective node into Docbook |
From ezcDocumentBBCodeVisitor | |
---|---|
protected |
ezcDocumentBBCodeVisitor::$ast
|
protected |
ezcDocumentBBCodeVisitor::$bbcode
|
protected |
ezcDocumentBBCodeVisitor::$errors
|
public mixed |
visit(
$ast
)
Docarate BBCode AST |
protected void |
visitBulletList(
$root
, $node
)
Visit bullet list |
protected void |
visitEnumeratedList(
$root
, $node
)
Visit enumerated list |
protected void |
visitInlineLiteral(
$root
, $node
)
Visit inlien literal markup |
protected void |
visitListItems(
$list
, $node
)
Visit list items in a list |
protected void |
visitLiteralBlock(
$root
, $node
)
Visit literal block markup |
public void |
visitNode(
$root
, $node
)
Visit single AST node |
protected void |
visitParagraph(
$root
, $node
)
Visit paragraph markup |
protected void |
visitTag(
$root
, $node
)
Visit simple BBCode tag |
From ezcDocumentBBCodeVisitor | |
---|---|
public void |
ezcDocumentBBCodeVisitor::__construct()
Create visitor from BBCode document handler. |
public array |
ezcDocumentBBCodeVisitor::getErrors()
Return list of errors occured during visiting the document. |
public void |
ezcDocumentBBCodeVisitor::triggerError()
Trigger visitor error |
public mixed |
ezcDocumentBBCodeVisitor::visit()
Docarate BBCode AST |
protected void |
ezcDocumentBBCodeVisitor::visitText()
Visit text node |
Docarate BBCode AST
Visit the BBCode abstract syntax tree.
Name | Type | Description |
---|---|---|
$ast |
ezcDocumentBBCodeDocumentNode |
Method | Description |
---|---|
ezcDocumentBBCodeVisitor::visit() |
Docarate BBCode AST |
Visit bullet list
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentBBCodeNode |
Visit enumerated list
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentBBCodeNode |
Visit inlien literal markup
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentBBCodeNode |
Visit list items in a list
Name | Type | Description |
---|---|---|
$list |
DOMNode | |
$node |
ezcDocumentBBCodeListNode |
Visit literal block markup
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentBBCodeNode |
Visit single AST node
Visit a single AST node, may be called for each node found anywhere as child. The current position in the DOMDocument is passed by a reference to the current DOMNode, which is operated on.
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentBBCodeNode |
Visit paragraph markup
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentBBCodeNode |
Visit simple BBCode tag
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentBBCodeNode |