setasign\SetaPDF2\FormFiller\Xfa
Som The helper class working with SOM expressions.
File: /SetaPDF v2/FormFiller/Xfa/Som.php
Old class name (alias):
\SetaPDF_FormFiller_Xfa_Som
Class hierarchy
Summary
Static Methods
evaluateSomShortcuts()
public static Som::evaluateSomShortcuts (
string $som,
string $dataRoot = 'xfa.datasets.data'
): array|stringstring $dataRoot = 'xfa.datasets.data'
Translates SOM shortcuts in a SOM expression to their full names.
Parameters
- $som : string
- $dataRoot : string
Relative root path
Exceptions
Methods
_evaluateDirectMatch()
Evaluates a direct match by ignoring invisible/unnamed nodes.
Parameters
- $name : string
- $context : \DOMElement
- $result : array
_filterNode()
Filters a node list by given filter values.
Actually only numeric offsets or a wildcard filter are available.
Parameters
- $nodeList : array|\DOMNodeList
- $filter : mixed
Exceptions
evaluate()
Evaluates a SOM expression in the given context and returs the matched node(s).
Parameters
- $som : string
- $context : \DOMElement|\DOMElement[]
Exceptions
Throws \Exception