Document: ezcDocumentRstTextRole
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentRstTextRole
|
Visitor for RST text roles [
source]
Descendents
Member Variables
|
protected ezcDocumentRstDocumentNode |
$ast
Complete RST abstract syntax tree, if this is necessary to render the text role. |
|
protected ezcDocumentRstTextRoleNode |
$node
Current text role RST AST node. |
|
protected string |
$path
Current document base path, especially relevant for file inclusions. |
|
protected ezcDocumentRstVisitor |
$visitor
The calling visitor. |
Method Summary
|
public void |
__construct(
$ast, $path, $node )
Construct text role from AST and node |
|
protected void |
appendText(
$root )
Append text from interpreted text node to given DOMElement |
|
public void |
setSourceVisitor(
$visitor )
Set the calling vaisitor |
|
public abstract void |
toDocbook(
$document, $root )
Transform text role to docbook |
Methods
__construct
void __construct(
$ast, string
$path,
$node )
Construct text role from AST and node
Parameters
| Name |
Type |
Description |
$ast |
ezcDocumentRstDocumentNode |
|
$path |
string |
|
$node |
ezcDocumentRstMarkupInterpretedTextNode |
|
appendText
void appendText(
$root )
Append text from interpreted text node to given DOMElement
Parameters
| Name |
Type |
Description |
$root |
DOMElement |
|
setSourceVisitor
Set the calling vaisitor
Pass the visitor which called the rendering function on the text role for optional reference.
Parameters
toDocbook
void toDocbook(
$document,
$root )
Transform text role to docbook
Create a docbook XML structure at the text roles position in the document.
Parameters
| Name |
Type |
Description |
$document |
DOMDocument |
|
$root |
DOMElement |
|
Redefined in descendants as
Last updated: Mon, 27 Jul 2009