Document: ezcDocumentXhtml
[ ]
[ Conversion ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentXhtml
|
The document handler for XHTML document markup. [
source]
Implemented Interfaces
Parents
ezcDocument
|
--ezcDocumentXmlBase
|
--ezcDocumentXhtml
Member Variables
|
protected array(ezcDocumentXhtmlFilter) |
$filters
Array with filter objects for the input HTML document. |
Inherited Member Variables
From
ezcDocumentXmlBase:
From
ezcDocument:
Method Summary
|
protected DOMDocument |
buildDocbookDocument(
$document )
Build docbook document out of annotated XHtml document |
|
public void |
createFromDocbook(
$document )
Create document from docbook document |
|
public ezcDocumentDocbook |
getAsDocbook(
)
Return document compiled to the docbook format |
|
public void |
loadString(
$string )
Create document from input string |
|
public string |
save(
)
Return document as string |
|
public void |
setFilters(
$filters )
Set filters |
|
protected void |
transformToDocbook(
$xhtml, $docbook )
Recursively transform annotated XHtml elements to docbook |
|
public mixed |
validateFile(
$file )
Validate the input file |
|
public mixed |
validateString(
$string )
Validate the input string |
Inherited Methods
From
ezcDocumentXmlBase :
From
ezcDocument :
Methods
buildDocbookDocument
DOMDocument buildDocbookDocument(
$document )
Build docbook document out of annotated XHtml document
Parameters
| Name |
Type |
Description |
$document |
DOMDocument |
|
createFromDocbook
Create document from docbook document
A document of the docbook format is provided and the internal document structure should be created out of this.
This method is required for all formats to have one central format, so that each format can be compiled into each other format using docbook as an intermediate format.
You may of course just call an existing converter for this conversion.
Parameters
Redefinition of
getAsDocbook
Return document compiled to the docbook format
The internal document structure is compiled to the docbook format and the resulting docbook document is returned.
This method is required for all formats to have one central format, so that each format can be compiled into each other format using docbook as an intermediate format.
You may of course just call an existing converter for this conversion.
Redefinition of
loadString
void loadString(
string
$string )
Create document from input string
Create a document of the current type handler class and parse it into a usable internal structure.
Parameters
| Name |
Type |
Description |
$string |
string |
|
Redefinition of
save
string save(
)
Return document as string
Serialize the document to a string an return it.
Redefinition of
setFilters
void setFilters(
$filters )
Set filters
Set an array with filter objects, which extract the sematic information from the given XHtml document.
Parameters
| Name |
Type |
Description |
$filters |
array |
|
transformToDocbook
void transformToDocbook(
$xhtml,
$docbook )
Recursively transform annotated XHtml elements to docbook
Parameters
| Name |
Type |
Description |
$xhtml |
DOMElement |
|
$docbook |
DOMElement |
|
validateFile
mixed validateFile(
string
$file )
Validate the input file
Validate the input file against the specification of the current document format.
Returns true, if the validation succeded, and an array with ezcDocumentValidationError objects otherwise.
Parameters
| Name |
Type |
Description |
$file |
string |
|
validateString
mixed validateString(
string
$string )
Validate the input string
Validate the input string against the specification of the current document format.
Returns true, if the validation succeded, and an array with ezcDocumentValidationError objects otherwise.
Parameters
| Name |
Type |
Description |
$string |
string |
|
Last updated: Tue, 02 Dec 2008