Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
DOMXPath Class Reference

Extends DOMXpath to throw ErrorExceptions instead of raising errors. More...

Public Member Functions

 queryWithErrorException ($expression,\DOMNode $contextNode=null)
 Evaluates an XPath expression; throws an ErrorException instead of raising an error.
 
 addError ($errno, $errstr= '', $errfile= '', $errline=0)
 Adds an error to the stack of errors.
 

Protected Attributes

 $errors = [null]
 

Detailed Description

Extends DOMXpath to throw ErrorExceptions instead of raising errors.

Member Function Documentation

addError (   $errno,
  $errstr = '',
  $errfile = '',
  $errline = 0 
)

Adds an error to the stack of errors.

Parameters
int$errno
string$errstr
string$errfile
int$errline
Returns
void
queryWithErrorException (   $expression,
\DOMNode  $contextNode = null 
)

Evaluates an XPath expression; throws an ErrorException instead of raising an error.

Parameters
string$expressionThe XPath expression to evaluate.
\DOMNode$contextNode
Returns
Exceptions
ErrorException

Member Data Documentation

$errors = [null]
protected