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