|
|
|
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.
|
| |
|
|
|
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 |
|
|
| 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()<<
|
|
|
|
|
|
| PHPDoc 1.0beta |