Document: ezcDocumentXmlBase
[ ]
[ Conversion ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentXmlBase
|
A base class for XML based document type handlers. [
source]
Implemented Interfaces
Parents
ezcDocument
|
--ezcDocumentXmlBase
Descendents
Member Variables
|
protected DOMDocument |
$document
DOM tree as the internal representation for the loaded XML. |
Inherited Member Variables
From
ezcDocument:
Method Summary
|
public DOMDocument |
getDomDocument(
)
Get DOMDocument |
|
public void |
loadDomDocument(
$document )
Construct directly from DOMDocument |
|
public void |
loadString(
$string )
Create document from input string |
|
public string |
save(
)
Return document as string |
|
public void |
setDomDocument(
$document )
Set DOMDocument |
|
public mixed |
validateFile(
$file )
Validate the input file |
|
public mixed |
validateString(
$string )
Validate the input string |
Inherited Methods
From
ezcDocument :
Methods
getDomDocument
DOMDocument getDomDocument(
)
Get DOMDocument
Directly return the internally stored DOMDocument object, to spare additional XML parsing overhead.
loadDomDocument
void loadDomDocument(
$document )
Construct directly from DOMDocument
To save execution time this method offers the construction of XML documents directly from a DOM document instance.
Parameters
| Name |
Type |
Description |
$document |
DOMDocument |
|
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
Redefined in descendants as
save
string save(
)
Return document as string
Serialize the document to a string an return it.
Redefinition of
Redefined in descendants as
setDomDocument
void setDomDocument(
$document )
Set DOMDocument
Directly set the internally stored DOMDocument object, to spare additional XML parsing overhead. Setting a broken or invalid docbook document is not checked here, ebcause validation would cost too much performace on each set. Be careful what you set here, invalid documents may lead to unpredictable errors.
Parameters
| Name |
Type |
Description |
$document |
DOMDocument |
|
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: Wed, 18 Jun 2008