abstract class IRProcessor

Constants

XMLNS_XSL

XSL namespace

Properties

protected DOMXPath $xpath

Methods

appendElement(DOMElement $parentNode, string $name, string $value = '')

Create and append an element to given node in the IR

void
createXPath(DOMDocument $dom)

Create and store an instance of DOMXPath for given document

mixed
evaluate(string $expr, DOMNode|null $node = null)

Evaluate an XPath expression and return its result

query(string $query, DOMNode|null $node = null)

Run an XPath query and return its result

Details

at line 35
protected DOMElement appendElement(DOMElement $parentNode, string $name, string $value = '')

Create and append an element to given node in the IR

Parameters

DOMElement $parentNode

Parent node of the element

string $name

Tag name of the element

string $value

Value of the element

Return Value

DOMElement

The created element

at line 46
protected void createXPath(DOMDocument $dom)

Create and store an instance of DOMXPath for given document

Parameters

DOMDocument $dom

Return Value

void

at line 58
protected mixed evaluate(string $expr, DOMNode|null $node = null)

Evaluate an XPath expression and return its result

Parameters

string $expr

XPath expression

DOMNode|null $node

Context node

Return Value

mixed

at line 70
protected DOMNodeList query(string $query, DOMNode|null $node = null)

Run an XPath query and return its result

Parameters

string $query

XPath query

DOMNode|null $node

Context node

Return Value

DOMNodeList