deprecated |
|
see |
\Zend\Dom\Document\Query |
Methods
Constructor
__construct(null | string $document, null | string $encoding)
Parameters
$document
nullstring
$encoding
nullstring
Perform a CSS selector query
execute(string $query) : \Zend\Dom\NodeList
Parameters
$query
string
Returns
Retrieve current document
getDocument() : string
Get any DOMDocument errors found
getDocumentErrors() : false | array
Get document type
getDocumentType() : string
Get document encoding
getEncoding() : null | string
Perform an XPath query
queryXpath(string | array $xpathQuery, string | null $query) : \Zend\Dom\NodeList
Parameters
$xpathQuery
stringarray
$query
stringnull
CSS selector query
Exceptions
Returns
Register XPath namespaces
registerXpathNamespaces(array $xpathNamespaces) : void
Parameters
$xpathNamespaces
array
Register PHP Functions to use in internal DOMXPath
registerXpathPhpFunctions(bool $xpathPhpFunctions) : void
Parameters
$xpathPhpFunctions
bool
Set document to query
setDocument(string $document, null | string $encoding) : \Zend\Dom\Query
Parameters
$document
string
$encoding
nullstring
Document encoding
Returns
Register HTML document
setDocumentHtml(string $document, null | string $encoding) : \Zend\Dom\Query
Parameters
$document
string
$encoding
nullstring
Document encoding
Returns
Register XHTML document
setDocumentXhtml(string $document, null | string $encoding) : \Zend\Dom\Query
Parameters
$document
string
$encoding
nullstring
Document encoding
Returns
Register XML document
setDocumentXml(string $document, null | string $encoding) : \Zend\Dom\Query
Parameters
$document
string
$encoding
nullstring
Document encoding
Returns
Set document encoding
setEncoding(string $encoding) : \Zend\Dom\Query
Parameters
$encoding
string
Returns
Prepare node list
getNodeList(\DOMDocument $document, string | array $xpathQuery) : \DOMNodeList
Parameters
$xpathQuery
stringarray
Exceptions
Returns
Properties
Document type
$docType : string
$document
$document : string
DOMDocument errors, if any
$documentErrors : false | array
Document encoding
$encoding : null | string
XPath namespaces
$xpathNamespaces : array
XPath PHP Functions
$xpathPhpFunctions : mixed
Constants