API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
getElementsByPath is a simple utility for path-based access to nodes in a DOMIT! document.
DOMIT_GetElementsByPath::determineSearchType | ( | $ | pattern | ) |
Determines the type of search to be performed: absolute, relative, or variable
string | The pattern |
Référencé par parsePattern().
DOMIT_GetElementsByPath::DOMIT_GetElementsByPath | ( | ) |
Constructor - creates an empty DOMIT_NodeList to store matching nodes
& DOMIT_GetElementsByPath::parsePattern | ( | &$ | node, |
$ | pattern, | ||
$ | nodeIndex = 0 |
||
) |
Parses the supplied "path"-based pattern
Object | The node from which the search is called |
string | The pattern |
int | The node level of the current search |
Références $i, determineSearchType(), selectNamedChild(), setContextNode(), et splitPattern().
DOMIT_GetElementsByPath::selectNamedChild | ( | &$ | node, |
$ | pIndex | ||
) |
Matches the current path segment against the child nodes of the current context node
Object | The context node |
int | The index in the arPathSegments array of the current path segment |
Référencé par parsePattern().
DOMIT_GetElementsByPath::setContextNode | ( | ) |
Sets the context node, i.e., the node from which the search begins
Référencé par parsePattern().
DOMIT_GetElementsByPath::splitPattern | ( | $ | pattern | ) |
Splits the supplied pattern into searchable segments
string | The pattern |
Référencé par parsePattern().
DOMIT_GetElementsByPath::$abortSearch = false |
DOMIT_GetElementsByPath::$arPathSegments = array() |
DOMIT_GetElementsByPath::$callingNode |
DOMIT_GetElementsByPath::$contextNode |
DOMIT_GetElementsByPath::$nodeList |
DOMIT_GetElementsByPath::$searchType |
DOMIT_GetElementsByPath::$targetIndex |