| [ Index ] |
|
Code source de Joomla 1.0.13 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Author: | John Heinstein <johnkarl@nbnet.nb.ca> |
| Copyright: | (C) 2004 John Heinstein. All rights reserved |
| License: | http://www.gnu.org/copyleft/lesser.html LGPL License |
| Poids: | 1047 lignes (32 kb) |
| Inclus ou requis: | 1 fois |
| Référencé: | 0 fois |
| Nécessite: | 1 fichier includes/domit/xml_domit_nodemaps.php |
DOMIT_XPath:: (30 méthodes):
DOMIT_XPath()
parsePattern()
processPatternSegment()
updateNodeContainers()
parsePredicate()
predicateToPHP()
expressionToPHP()
filterByPHPExpression()
hasNamedChildElement()
hasNamedChildElementEqualToValue()
hasNamedChildElementGreaterThanOrEqualToValue()
hasNamedChildElementLessThanOrEqualToValue()
hasNamedChildElementNotEqualToValue()
hasNamedChildElementGreaterThanValue()
hasNamedChildElementLessThanValue()
refilterByIndex()
filterByIndex()
_filterByIndex()
filterByChildName()
_filterByChildName()
selectAttribute()
_selectAttribute()
selectNamedChild()
_selectNamedChild()
selectParent()
_selectParent()
selectNodesByFunction()
splitPattern()
normalize()
initSearch()
Classe: DOMIT_XPath - X-Ref
DOMIT! XPath is an XPath parser.| DOMIT_XPath() X-Ref |
| Constructor - creates an empty DOMIT_NodeList to store matching nodes |
| parsePattern(&$node, $pattern, $nodeIndex = 0) X-Ref |
| Parses the supplied "path"-based pattern param: Object The node from which the search is called param: string The pattern return: Object The NodeList containing matching nodes |
| processPatternSegment() X-Ref |
| Generates a new globalNodeContainer of matches |
| updateNodeContainers() X-Ref |
| Replaces the global node container with the local node container |
| parsePredicate($nodeName, $patternSegment) X-Ref |
| Parses a predicate expression [...] param: string The pattern segment containing the node expression param: string The pattern segment containing the predicate expression |
| predicateToPHP($predicate) X-Ref |
| Converts the predicate into PHP evaluable code param: string The predicate return: string The converted PHP expression |
| expressionToPHP($expression) X-Ref |
| Converts the predicate expression into a PHP expression param: string The predicate expression return: string The converted PHP expression |
| filterByPHPExpression($expression) X-Ref |
| Selects nodes that match the predicate expression param: string The predicate expression, formatted as a PHP expression |
| hasNamedChildElement(&$parentNode, $nodeName) X-Ref |
| Selects nodes with child elements that match the specified name param: object The parent node of the child elements to match param: string The tag name to match on return: boolean True if a matching child element exists |
| hasNamedChildElementEqualToValue(&$parentNode, $nodeName, $nodeValue) X-Ref |
| Selects nodes with child elements that match the specified name and text value param: object The parent node of the child elements to match param: string The tag name to match on param: string The text string to match on return: boolean True if a matching child element exists |
| hasNamedChildElementGreaterThanOrEqualToValue(&$parentNode, $nodeName, $nodeValue) X-Ref |
| Selects nodes with child elements that are greater than or equal to the specified name and value param: object The parent node of the child elements to match param: string The tag name to match on param: string The text string to match on return: boolean True if a matching child element exists |
| hasNamedChildElementLessThanOrEqualToValue(&$parentNode, $nodeName, $nodeValue) X-Ref |
| Selects nodes with child elements that are less than or equal to the specified name and value param: object The parent node of the child elements to match param: string The tag name to match on param: string The text string to match on return: boolean True if a matching child element exists |
| hasNamedChildElementNotEqualToValue(&$parentNode, $nodeName, $nodeValue) X-Ref |
| Selects nodes with child elements that are not equal to the specified name and value param: object The parent node of the child elements to match param: string The tag name to match on param: string The text string to match on return: boolean True if a matching child element exists |
| hasNamedChildElementGreaterThanValue(&$parentNode, $nodeName, $nodeValue) X-Ref |
| Selects nodes with child elements that are greater than the specified name and value param: object The parent node of the child elements to match param: string The tag name to match on param: string The text string to match on return: boolean True if a matching child element exists |
| hasNamedChildElementLessThanValue(&$parentNode, $nodeName, $nodeValue) X-Ref |
| Selects nodes with child elements that are less than the specified name and value param: object The parent node of the child elements to match param: string The tag name to match on param: string The text string to match on return: boolean True if a matching child element exists |
| refilterByIndex($index) X-Ref |
| Selects named elements of the specified index param: string The pattern segment containing the node expression param: int The index (base 1) of the matching node param: boolean True if the selection is to be performed recursively |
| filterByIndex($nodeName, $index, $deep) X-Ref |
| Selects named elements of the specified index param: string The pattern segment containing the node expression param: int The index (base 1) of the matching node param: boolean True if the selection is to be performed recursively |
| _filterByIndex(&$contextNode, $nodeName, $index, $deep) X-Ref |
| Selects named elements of the specified index param: object The context node param: string The pattern segment containing the node expression param: int The index (base 1) of the matching node param: boolean True if the selection is to be performed recursively |
| filterByChildName($nodeName, $childName, $deep) X-Ref |
| Selects named elements with the specified named child param: string The pattern segment containing the node expression param: string The tag name of the matching child param: boolean True if the selection is to be performed recursively |
| _filterByChildName(&$contextNode, $nodeName, $childName, $deep) X-Ref |
| Selects named elements with the specified named child param: object The context node param: string The pattern segment containing the node expression param: string The tag name of the matching child param: boolean True if the selection is to be performed recursively |
| selectAttribute($attrName) X-Ref |
| Selects named attributes of the current context nodes param: string The attribute name, or * to match all attributes |
| _selectAttribute(&$contextNode, $attrName, $deep) X-Ref |
| Selects all attributes of the context nodes param: object The context node param: string The attribute name, or * to match all attributes param: boolean True if the selection is to be performed recursively |
| selectNamedChild($tagName) X-Ref |
| Selects all child nodes of the current context nodes param: string The element name |
| _selectNamedChild(&$contextNode, $tagName, $deep = false) X-Ref |
| Selects all child nodes of the context node param: object The context node param: string The element name param: boolean True if the selection is to be performed recursively |
| selectParent() X-Ref |
| Selects parent node of the current context nodes |
| _selectParent(&$contextNode, $deep = false) X-Ref |
| Selects parent node of the current context nodes param: object The context node param: boolean True if the selection is to be performed recursively |
| selectNodesByFunction() X-Ref |
| Selects any nodes of the current context nodes which match the given function |
| splitPattern($pattern) X-Ref |
| Splits the supplied pattern into searchable segments param: string The pattern |
| normalize($pattern) X-Ref |
| Converts long XPath syntax into abbreviated XPath syntax param: string The pattern return: string The normalized pattern |
| initSearch(&$currArPathSegments) X-Ref |
| Initializes the contextNode and searchType param: array The current array of path segments return: int The index of the first array item to begin the search at |
| Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
|