php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
DOMXPath Class Reference

Public Member Functions

 __construct (DOMDocument $document, bool $registerNodeNS=true)
 
 evaluate (string $expression, ?DOMNode $contextNode=null, bool $registerNodeNS=true)
 
 query (string $expression, ?DOMNode $contextNode=null, bool $registerNodeNS=true)
 
 registerNamespace (string $prefix, string $namespace)
 
 registerPhpFunctions (string|array|null $restrict=null)
 
 registerPhpFunctionNS (string $namespaceURI, string $name, callable $callable)
 

Static Public Member Functions

static quote (string $str)
 

Data Fields

DOMDocument $document
 
bool $registerNodeNamespaces
 

Detailed Description

@not-serializable

Definition at line 1205 of file php_dom.stub.php.

Constructor & Destructor Documentation

◆ __construct()

DOMXPath::__construct ( DOMDocument $document,
bool $registerNodeNS = true )

Definition at line 1216 of file php_dom.stub.php.

Member Function Documentation

◆ evaluate()

DOMXPath::evaluate ( string $expression,
?DOMNode $contextNode = null,
bool $registerNodeNS = true )

@tentative-return-type

Definition at line 1219 of file php_dom.stub.php.

◆ query()

DOMXPath::query ( string $expression,
?DOMNode $contextNode = null,
bool $registerNodeNS = true )

@tentative-return-type

Definition at line 1222 of file php_dom.stub.php.

◆ quote()

static DOMXPath::quote ( string $str)
static

Definition at line 1232 of file php_dom.stub.php.

◆ registerNamespace()

DOMXPath::registerNamespace ( string $prefix,
string $namespace )

@tentative-return-type

Definition at line 1225 of file php_dom.stub.php.

◆ registerPhpFunctionNS()

DOMXPath::registerPhpFunctionNS ( string $namespaceURI,
string $name,
callable $callable )

Definition at line 1230 of file php_dom.stub.php.

◆ registerPhpFunctions()

DOMXPath::registerPhpFunctions ( string|array|null $restrict = null)

@tentative-return-type

Definition at line 1228 of file php_dom.stub.php.

Field Documentation

◆ $document

DOMDocument DOMXPath::$document

@readonly @virtual

Definition at line 1211 of file php_dom.stub.php.

◆ $registerNodeNamespaces

bool DOMXPath::$registerNodeNamespaces

@virtual

Definition at line 1214 of file php_dom.stub.php.


The documentation for this class was generated from the following file: