[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/domit/ -> xml_domit_getelementsbypath.php (summary)

(no 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
File Size: 278 lines (8 kb)
Included or required: 6 times
Referenced: 0 times
Includes or requires: 1 file
 libraries/domit/xml_domit_nodemaps.php

Defines 2 classes

DOMIT_GetElementsByPath:: (6 methods):
  DOMIT_GetElementsByPath()
  parsePattern()
  determineSearchType()
  setContextNode()
  splitPattern()
  selectNamedChild()

DOMIT_GetElementsByAttributePath:: (2 methods):
  DOMIT_GetElementsByAttributePath()
  parsePattern()


Class: DOMIT_GetElementsByPath  - X-Ref

getElementsByPath is a simple utility for path-based access to nodes in a DOMIT! document.

DOMIT_GetElementsByPath()   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
param: int The node level of the current search
return: Object The NodeList containing matching nodes

determineSearchType($pattern)   X-Ref
Determines the type of search to be performed: absolute, relative, or variable

param: string The pattern

setContextNode()   X-Ref
Sets the context node, i.e., the node from which the search begins


splitPattern($pattern)   X-Ref
Splits the supplied pattern into searchable segments

param: string The pattern

selectNamedChild(&$node, $pIndex)   X-Ref
Matches the current path segment against the child nodes of the current context node

param: Object The context node
param: int The index in the arPathSegments array of the current path segment

Class: DOMIT_GetElementsByAttributePath  - X-Ref

getElementsByAttributePath is a temporary utility requested by a DOMIT! user for path-based access to attributes in a DOMIT! document.
This class may be absent from future versions of DOMIT!

DOMIT_GetElementsByAttributePath()   X-Ref
Constructor - creates an empty DOMIT_NodeList to store matching nodes


parsePattern(&$node, $pattern, $nodeIndex = 0)   X-Ref
Matches the current path segment against the child nodes of the current context node

param: Object The context node
param: string The pattern
param: int The index of the current path segment



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1