Zend Framework
1.12
|
Public Member Functions | |
__construct ($document=null, $encoding=null) | |
Constructor. | |
setEncoding ($encoding) | |
Set document encoding. | |
getEncoding () | |
Get document encoding. | |
setDocument ($document, $encoding=null) | |
Set document to query. | |
setDocumentHtml ($document, $encoding=null) | |
Register HTML document. | |
setDocumentXhtml ($document, $encoding=null) | |
Register XHTML document. | |
setDocumentXml ($document, $encoding=null) | |
Register XML document. | |
getDocument () | |
Retrieve current document. | |
getDocumentType () | |
Get document type. | |
getDocumentErrors () | |
Get any DOMDocument errors found. | |
query ($query) | |
Perform a CSS selector query. | |
queryXpath ($xpathQuery, $query=null) | |
Perform an XPath query. | |
registerXpathNamespaces ($xpathNamespaces) | |
Register XPath namespaces. | |
Public Attributes | |
const | DOC_XML = 'docXml' |
#@+ Document types | |
const | DOC_HTML = 'docHtml' |
const | DOC_XHTML = 'docXhtml' |
Protected Member Functions | |
_getNodeList ($document, $xpathQuery) | |
Prepare node list. | |
Protected Attributes | |
$_document | |
$_documentErrors = false | |
$_docType | |
$_encoding | |
$_xpathNamespaces = array() | |
__construct | ( | $document = null , |
|
$encoding = null |
|||
) |
Constructor.
null | string | $document |
|
protected |
Prepare node list.
DOMDocument | $document | |
string | array | $xpathQuery |
getDocument | ( | ) |
Retrieve current document.
getDocumentErrors | ( | ) |
Get any DOMDocument errors found.
getDocumentType | ( | ) |
Get document type.
getEncoding | ( | ) |
Get document encoding.
query | ( | $query | ) |
queryXpath | ( | $xpathQuery, | |
$query = null |
|||
) |
Perform an XPath query.
string | array | $xpathQuery | |
string | $query | CSS selector query |
registerXpathNamespaces | ( | $xpathNamespaces | ) |
Register XPath namespaces.
array | $xpathNamespaces |
setDocument | ( | $document, | |
$encoding = null |
|||
) |
Set document to query.
string | $document | |
null | string | $encoding | Document encoding |
setDocumentHtml | ( | $document, | |
$encoding = null |
|||
) |
Register HTML document.
string | $document | |
null | string | $encoding | Document encoding |
setDocumentXhtml | ( | $document, | |
$encoding = null |
|||
) |
Register XHTML document.
string | $document | |
null | string | $encoding | Document encoding |
setDocumentXml | ( | $document, | |
$encoding = null |
|||
) |
Register XML document.
string | $document | |
null | string | $encoding | Document encoding |
setEncoding | ( | $encoding | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const DOC_HTML = 'docHtml' |
const DOC_XHTML = 'docXhtml' |
const DOC_XML = 'docXml' |
#@+ Document types