[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

DOMIT node maps are structures for storing and accessing collections of DOMIT_Nodes.

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

Définit 3 classes

DOMIT_NodeList:: (9 méthodes):
  item()
  getLength()
  appendNode()
  removeNode()
  forHTML()
  toArray()
  createClone()
  toString()
  toNormalizedString()

DOMIT_NamedNodeMap:: (15 méthodes):
  getNamedItem()
  reindexNodeMap()
  setNamedItem()
  removeNamedItem()
  getNamedItemNS()
  setNamedItemNS()
  removeNamedItemNS()
  getKeyNS()
  item()
  getLength()
  forHTML()
  toArray()
  createClone()
  toString()
  toNormalizedString()

DOMIT_NamedNodeMap_Attr:: (2 méthodes):
  toArray()
  toString()


Classe: DOMIT_NodeList  - X-Ref

A DOM NodeList implementation

item($index)   X-Ref
Return the node at the specified index

param: int The index of the requested node
return: Object A reference to the requested node, or null

getLength()   X-Ref
Returns the number of nodes in the list

return: int The number of nodes in the list

appendNode(&$node)   X-Ref
Appends a node to the list

return: Object The appended node

removeNode(&$node)   X-Ref
Removes the specified node from the list

param: Object A reference to the node to be removed
return: Object A reference to the removed node

forHTML($str, $doPrint = false)   X-Ref
Formats a string for presentation as HTML

param: string The string to be formatted
param: boolean True if the string is to be sent directly to output
return: string The HTML formatted string

toArray()   X-Ref
Generates an array representation of the node and its children

return: Array A representation of the node and its children

createClone($deep = false)   X-Ref
Copies a node and/or its children

param: boolean True if all child nodes are also to be cloned
return: Object A copy of the node and/or its children

toString($htmlSafe = false, $subEntities=false)   X-Ref
Generates a string representation of the node and its children

param: boolean True if HTML readable output is desired
param: boolean True if illegal xml characters in text nodes and attributes should be converted to entities
return: string The string representation

toNormalizedString($htmlSafe = false, $subEntities=false)   X-Ref
Generates a normalized (formatted for readability) representation of the node collection

param: boolean True if HTML readable output is desired
param: boolean True if illegal xml characters in text nodes and attributes should be converted to entities
return: string The string representation

Classe: DOMIT_NamedNodeMap  - X-Ref

A DOM NamedNodeMap implementation

getNamedItem($name)   X-Ref
Gets a node with the specifed name

param: string The name of the node
return: mixed A reference to the requested node, or null

reindexNodeMap()   X-Ref
Reindexes the numerical index for the named node map


setNamedItem(&$arg)   X-Ref
Assigns a node to the list

param: Object A reference to the node to be assigned
return: Object A reference to the assigned node

removeNamedItem($name)   X-Ref
Removes a node from the list, by name

param: string The name of the node to be removed
return: mixed A reference to the removed node, or null

getNamedItemNS($namespaceURI, $localName)   X-Ref
Gets a node with the specifed name, taking into account namespaces

param: string The namespaceURI of the node
param: string The localName of the node
return: mixed A reference to the requested node, or null

setNamedItemNS(&$arg)   X-Ref
Assigns a node to the list, using its namespaceURI and localName

param: Object A reference to the node to be assigned
return: Object A reference to the assigned node

removeNamedItemNS($namespaceURI, $localName)   X-Ref
Removes a node from the list, by name, by local name and namespace URI

param: string The namespaceURI of the node to be removed
param: string The localName of the node to be removed
return: mixed A reference to the removed node, or null

getKeyNS($namespaceURI, $localName)   X-Ref
Returns the key of the NamedNodeMap, given the namespaceURI and localName

param: string The namespaceURI of the node to be removed
param: string The localName of the node to be removed
return: string The key of the NamedNodeMap

item($index)   X-Ref
Return the node at the specified index

param: int The index of the requested node
return: mixed A reference to the requested node, or null

getLength()   X-Ref
Returns the number of nodes in the map

return: int The number of nodes in the map

forHTML($str, $doPrint = false)   X-Ref
Formats a string for presentation as HTML

param: string The string to be formatted
param: boolean True if the string is to be sent directly to output
return: string The HTML formatted string

toArray()   X-Ref
Generates an array representation of the node and its children

return: Array A representation of the node and its children

createClone($deep = false)   X-Ref
Copies a node and/or its children

param: boolean True if all child nodes are also to be cloned
return: Object A copy of the node and/or its children

toString($htmlSafe = false, $subEntities=false)   X-Ref
Generates a string representation of the node and its children

param: boolean True if HTML readable output is desired
param: boolean True if illegal xml characters in text nodes and attributes should be converted to entities
return: string The string representation

toNormalizedString($htmlSafe = false, $subEntities=false)   X-Ref
Generates a normalized (formatted for readability) representation of the node collection

param: boolean True if HTML readable output is desired
param: boolean True if illegal xml characters in text nodes and attributes should be converted to entities
return: string The string representation

Classe: DOMIT_NamedNodeMap_Attr  - X-Ref

A NamedNodeMap with specialized funtionality for Attribute nodes

toArray()   X-Ref
Generates an array representation of the node and its children

return: Array A representation of the node and its children

toString($htmlSafe = false, $subEntities=false)   X-Ref
Generates a string representation of the node and its children

param: boolean True if HTML readable output is desired
param: boolean True if illegal xml characters in text nodes and attributes should be converted to entities
return: string The string representation



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