Document: ezcDocumentDocbookToWikiConverter
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentDocbookToWikiConverter
|
Converter for docbook to Wiki with a PHP callback based mechanism, for fast and easy PHP based extensible transformations. [
source]
Parents
ezcDocumentConverter
|
--ezcDocumentElementVisitorConverter
|
--ezcDocumentDocbookToWikiConverter
Member Variables
|
public int |
$indentation
= 0
Current indentation document. |
|
public int |
$wordWrap
= 78
Maximum number of characters per line |
Inherited Member Variables
From
ezcDocumentElementVisitorConverter:
From
ezcDocumentConverter:
Method Summary
|
public void |
__construct(
[$options = null] )
Construct converter |
|
protected ezcDocumentDocument |
createDocument(
$content )
Create document from structure |
|
public static string |
escapeWikiText(
$string )
Escape RST text |
|
protected string |
finishDocument(
$root )
Finish document |
|
protected mixed |
initializeDocument(
)
Initialize destination document |
|
protected mixed |
visitText(
$node, $root )
Visit text node. |
|
public static string |
wordWrap(
$text, [$indentation = 0] )
Wrap given text |
Inherited Methods
From
ezcDocumentElementVisitorConverter :
From
ezcDocumentConverter :
Methods
__construct
Construct converter
Construct converter from XSLT file, which is used for the actual
Parameters
Redefinition of
createDocument
ezcDocumentDocument createDocument(
mixed
$content )
Create document from structure
Build a ezcDocumentDocument object from the structure created during the visiting process.
Parameters
| Name |
Type |
Description |
$content |
mixed |
|
Redefinition of
escapeWikiText
string escapeWikiText(
string
$string )
Escape RST text
Parameters
| Name |
Type |
Description |
$string |
string |
|
finishDocument
string finishDocument(
string
$root )
Finish document
Append the footnotes and citations to the end of the document. The footnotes are embedded directly in the text in docbook, aggregated during the processing of the document, and displayed at the bottom of the RST document.
Parameters
| Name |
Type |
Description |
$root |
string |
|
initializeDocument
mixed initializeDocument(
)
Initialize destination document
Initialize the structure which the destination document could be build with. This may be an initial DOMDocument with some default elements, or a string, or something else.
Redefinition of
visitText
mixed visitText(
$node, mixed
$root )
Visit text node.
Visit a text node in the source document and transform it to the destination result
Parameters
| Name |
Type |
Description |
$node |
DOMText |
|
$root |
mixed |
|
Redefinition of
wordWrap
string wordWrap(
string
$text, [int
$indentation = 0] )
Wrap given text
Wrap the given text to the line width specified in the converter options, with an optional indentation.
Parameters
| Name |
Type |
Description |
$text |
string |
|
$indentation |
int |
|
Last updated: Tue, 01 Sep 2009