Zend Framework
3.0
|
Class used to initialize DomDocument from string, with proper verifications. More...
Public Member Functions | |
__construct ($document=null, $type=null, $encoding=null) | |
Constructor. | |
getStringDocument () | |
Get raw set document. | |
getType () | |
Get raw document type. | |
getDomDocument () | |
Get DOMDocument generated from set raw document. | |
getEncoding () | |
Get set document encoding. | |
setEncoding ($encoding) | |
Set raw document encoding for DOMDocument generation. | |
getErrors () | |
Get DOMDocument generation errors. | |
getXpathNamespaces () | |
Get Document's registered XPath namespaces. | |
registerXpathNamespaces ($xpathNamespaces) | |
Register XPath namespaces. | |
getXpathPhpFunctions () | |
Get Document's registered XPath PHP Functions. | |
registerXpathPhpFunctions ($xpathPhpFunctions=true) | |
Register PHP Functions to use in internal DOMXPath. | |
Public Attributes | |
const | DOC_HTML = 'DOC_HTML' |
#@+ Document types | |
const | DOC_XHTML = 'DOC_XHTML' |
const | DOC_XML = 'DOC_XML' |
Protected Member Functions | |
setStringDocument ($document, $forcedType=null, $forcedEncoding=null) | |
Set raw document. | |
setType ($type) | |
Set raw document type. | |
setDomDocument (DOMDocument $domDocument) | |
Set DOMDocument. | |
setErrors ($errors) | |
Set document errors from DOMDocument generation. | |
getDomDocumentFromString ($stringDocument) | |
Get DOMDocument from set raw document. | |
Protected Attributes | |
$stringDocument | |
$domDocument | |
$type | |
$errors = [] | |
$xpathNamespaces = [] | |
$xpathPhpFunctions | |
$encoding | |
Class used to initialize DomDocument from string, with proper verifications.
__construct | ( | $document = null , |
|
$type = null , |
|||
$encoding = null |
|||
) |
Constructor.
string | null | $document | String containing the document |
string | null | $type | Force the document to be of a certain type, bypassing setStringDocument's detection |
string | null | $encoding | Encoding for the document (used for DOMDocument generation) |
getDomDocument | ( | ) |
Get DOMDocument generated from set raw document.
Exception\RuntimeException | If cannot get DOMDocument; no document registered |
|
protected |
Get DOMDocument from set raw document.
Exception\RuntimeException |
getEncoding | ( | ) |
Get set document encoding.
getErrors | ( | ) |
Get DOMDocument generation errors.
getStringDocument | ( | ) |
Get raw set document.
getType | ( | ) |
Get raw document type.
getXpathNamespaces | ( | ) |
Get Document's registered XPath namespaces.
getXpathPhpFunctions | ( | ) |
Get Document's registered XPath PHP Functions.
registerXpathNamespaces | ( | $xpathNamespaces | ) |
Register XPath namespaces.
array | $xpathNamespaces |
registerXpathPhpFunctions | ( | $xpathPhpFunctions = true | ) |
|
protected |
setEncoding | ( | $encoding | ) |
Set raw document encoding for DOMDocument generation.
string | null | $encoding |
|
protected |
Set document errors from DOMDocument generation.
array | $errors |
|
protected |
Set raw document.
string | null | $document | |
string | null | $forcedType | Type for the provided document (see constants) |
string | null | $forcedEncoding | Encoding for the provided document |
|
protected |
Set raw document type.
string | $type |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const DOC_HTML = 'DOC_HTML' |
#@+ Document types
const DOC_XHTML = 'DOC_XHTML' |
const DOC_XML = 'DOC_XML' |