Document: ezcDocumentDocbookToOdtConverter
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentDocbookToOdtConverter
|
Converter for docbook to ODT with a PHP callback based mechanism, for fast and easy PHP based extensible transformations. [
source]
This converter does not support the full docbook standard, but only a subset commonly used in the document component.
Parents
ezcDocumentConverter
|
--ezcDocumentElementVisitorConverter
|
--ezcDocumentDocbookToOdtConverter
Member Variables
|
protected ezcDocumentOdtTextProcessor |
$textProcessor
Text node processor. |
Inherited Member Variables
From
ezcDocumentElementVisitorConverter:
From
ezcDocumentConverter:
Method Summary
|
public void |
__construct(
[$options = null] )
Construct converter |
|
public ezcDocumentOdt |
convert(
$source )
Converts the given DocBook $source to an ODT document. |
|
protected ezcDocumentDocument |
createDocument(
$content )
Create document from structure |
|
public ezcDocumentOdtImageLocator |
getImageLocator(
)
Returns the image locator for the current conversion. |
|
protected mixed |
initializeDocument(
)
Initialize destination document |
|
protected mixed |
visitText(
$node, $root )
Visit text node. |
Inherited Methods
From
ezcDocumentElementVisitorConverter :
From
ezcDocumentConverter :
Methods
__construct
Construct converter
Construct converter from XSLT file, which is used for the actual
Parameters
Redefinition of
convert
Converts the given DocBook $source to an ODT document.
This method receives a DocBook $source document and returns the converters ODT document.
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
getImageLocator
ezcDocumentOdtImageLocator getImageLocator(
)
Returns the image locator for the current conversion.
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
Last updated: Tue, 23 Mar 2010