| Parses the supplied "path"-based pattern and returns an array of DOMIT_Elements, or a single DOMIT_Element. |
Signature: &parsePattern(&$node, $pattern, $nodeIndex = 0) |
Parameters:
DOMIT_Node node - The DOMIT_Node from which getElementsByPath was called.
String pattern - The pattern to evaluate.
int nodeIndex - The index of the element to be returned from the results array. If nodeIndex is 0, the entire array is returned.
|
Returns:
DOMIT_Node - The DOMIT_Node or a DOMIT_NodeList of DOMIT_Nodes which match the supplied "path" pattern.
|
| Determines whether the pattern search is relative, absolute, or variable. |
Signature: determineSearchType($pattern) |
Parameters:
String pattern - The "path"-based pattern to evaluate.
|
| Sets the node from which the pattern search is to begin. |
Signature: setContextNode() |
| Splits the supplied pattern into segments, based on the "/" separator. |
Signature: splitPattern($pattern) |
Parameters:
String pattern - The "path"-based pattern to evaluate.
|
| Selects all children of the elements in arNodeList which have a nodeName of $name. |
Signature: selectNamedChild(&$node, $pIndex) |
Parameters:
DOMIT_Node node - The context node.
int pIndex - The index in the arPathSegments array of the current path segment.
|