Zeta Components Manual :: Docs For Class ezcDocumentWikiDocbookVisitor
Document::ezcDocumentWikiDocbookVisitor
Class ezcDocumentWikiDocbookVisitor
Docbook visitor for the Wiki AST.
Source for this file: /Document/src/document/wiki/visitor/docbook.php
ezcDocumentWikiVisitor | --ezcDocumentWikiDocbookVisitor
Version: | //autogen// |
Member Variables
protected array |
$complexVisitMapping
= array(
Mapping of class names to internal visitors for the respective nodes. |
protected DOMDocument |
$document
DOM document |
protected array |
$simpleVisitMapping
= array(
Direct mapping of AST node class names to docbook element names. |
protected array |
$skipNodes
= array()
Array with nodes, which can be ignored during the transformation process, they only provide additional information during preprocessing. |
Inherited Member Variables
From ezcDocumentWikiVisitor | |
---|---|
protected |
ezcDocumentWikiVisitor::$ast
|
protected |
ezcDocumentWikiVisitor::$errors
|
protected |
ezcDocumentWikiVisitor::$footnoteCounter
|
protected |
ezcDocumentWikiVisitor::$footnotes
|
protected |
ezcDocumentWikiVisitor::$wiki
|
Method Summary
protected bool |
isInlineNode(
$node
)
Is inline node? |
public mixed |
visit(
$ast
)
Docarate Wiki AST |
protected void |
visitBlockquote(
$root
, $node
)
Visit blockquote |
protected void |
visitEmphasisMarkup(
$root
, $node
)
Visit emphasis markup |
protected void |
visitExternalLink(
$root
, $node
)
Visit external link node |
protected void |
visitFootnote(
$root
, $node
)
Visit footnote |
protected void |
visitImages(
$root
, $node
)
Visit images |
protected void |
visitLineBreak(
$root
, $node
)
Visit line break |
protected void |
visitLink(
$root
, $node
)
Visit link node |
protected void |
visitList(
$root
, $node
)
Visit list |
protected void |
visitLiteral(
$root
, $node
)
Visit literal |
protected void |
visitLiteralBlock(
$root
, $node
)
Visit literal block |
protected void |
visitNode(
$root
, $node
)
Visit single AST node |
protected void |
visitParagraph(
$root
, $node
)
Visit paragraph |
protected void |
visitPlugin(
$root
, $node
)
Visit plugin |
protected void |
visitTableCell(
$root
, $node
)
Visit table cell |
protected void |
visitTableRow(
$root
, $node
)
Visit table row |
protected void |
visitTitle(
$root
, $node
)
Visit section titles |
Inherited Methods
From ezcDocumentWikiVisitor | |
---|---|
public void |
ezcDocumentWikiVisitor::__construct()
Create visitor from Wiki document handler. |
protected void |
ezcDocumentWikiVisitor::addFootnote()
Add footnote |
public array |
ezcDocumentWikiVisitor::getErrors()
Return list of errors occured during visiting the document. |
public ezcDocumentWikiFootnoteNode |
ezcDocumentWikiVisitor::hasFootnoteTarget()
Check for internal footnote reference target |
protected string |
ezcDocumentWikiVisitor::nodeListToString()
Node list to string |
protected string |
ezcDocumentWikiVisitor::nodeToString()
Transform a node tree into a string |
protected void |
ezcDocumentWikiVisitor::preProcessAst()
Pre process AST |
public void |
ezcDocumentWikiVisitor::triggerError()
Trigger visitor error |
public mixed |
ezcDocumentWikiVisitor::visit()
Docarate Wiki AST |
protected void |
ezcDocumentWikiVisitor::visitChildren()
Visit children |
protected void |
ezcDocumentWikiVisitor::visitText()
Visit text node |
Methods
isInlineNode
Is inline node?
Check if contents of the current node are a inline node
Parameters:
Name | Type | Description |
---|---|---|
$node |
DOMNode |
visit
Docarate Wiki AST
Visit the Wiki abstract syntax tree.
Parameters:
Name | Type | Description |
---|---|---|
$ast |
ezcDocumentWikiDocumentNode |
Redefinition of:
Method | Description |
---|---|
ezcDocumentWikiVisitor::visit() |
Docarate Wiki AST |
visitBlockquote
Visit blockquote
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitEmphasisMarkup
Visit emphasis markup
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitExternalLink
Visit external link node
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitFootnote
Visit footnote
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitImages
Visit images
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitLineBreak
Visit line break
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitLink
Visit link node
Docbook has no support for description of links, so that the description elements in the AST are omitted.
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitList
Visit list
Ensure stacked lists are created inside another list item.
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitLiteral
Visit literal
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitLiteralBlock
Visit literal block
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitNode
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.
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitParagraph
Visit paragraph
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitPlugin
Visit plugin
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitTableCell
Visit table cell
Visit a table cell and additionally always create an inner paragraph.
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitTableRow
Visit table row
Visit a table row and decide if it belongs into a tbody or a thead section.
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |
visitTitle
Visit section titles
Parameters:
Name | Type | Description |
---|---|---|
$root |
DOMNode | |
$node |
ezcDocumentWikiNode |