[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/includes/domit/ -> xml_domit_getelementsbypath.php (sommaire)

(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: 278 lignes (9 kb)
Inclus ou requis: 6 fois
Référencé: 0 fois
Nécessite: 1 fichier
 includes/domit/xml_domit_nodemaps.php

Définit 2 classes

DOMIT_GetElementsByPath:: (6 méthodes):
  DOMIT_GetElementsByPath()
  parsePattern()
  determineSearchType()
  setContextNode()
  splitPattern()
  selectNamedChild()

DOMIT_GetElementsByAttributePath:: (2 méthodes):
  DOMIT_GetElementsByAttributePath()
  parsePattern()


Classe: 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

Classe: 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



Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics