Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /usr/local/apache_8080/htdocs/devel/Intra/class/phpdom/domxml_namednodemap.php
Document Object Model for PHP - phpDOM

NamedNodeMap

NamedNodeMap

The NamedNodeMap Class

 

private class NamedNodeMap

The NamedNodeMap Class
The NamedNodeMapObjects implementing the NamedNodeMap class are used to representcollections of nodes that can be accessed by name.NamedNodeMaps are not maintained in any particular order.Objects contained in an NamedNodeMap object may also be accessed by anindex. However, the order of the nodes in the Map may be different to the order inthe DOM-Tree.The specific usage for a NamedNodeMap is to retrieve attributes of an element.

AuthorsDietmar Glachs <dietmar.glachs@salzburgresearch.at>
Versiondevel.0.4
Copyright2000 Salzburg Research Gesellschaft m.b.H.

 

Public Method Summary

int

getLength()

the number of nodes in the list
object Node

item(int $index)

Returns the indexth item in the collection.
void

getNamedItem(string $name)

getNamedItem retrieves the item with name

Private Field Summary

array

$nodes

Public Method Details

getLength

public int getLength( )

  the number of nodes in the list
The number of nodes in the list. The range of valid child node indicesis 0 to length-1 inclusive.

Returns int


item

public object Node item( int $index )

  Returns the indexth item in the collection.
Returns the indexth item in the collection. If index is greater than orequal to the number of nodes in the list, this returns null.

Parameter
int $index
Returns object Node


getNamedItem

public void getNamedItem( string $name )

  getNamedItem retrieves the item with name

Parameter
string $name
The name of the requested item
Returns void


Private Field Details

$nodes

private array $nodes

>>array()<<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta