Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
NodeList Class Reference

DOMNodeList wrapper for Zend results. More...

Public Member Functions

 __construct (DOMNodeList $list)
 Constructor.
 
 rewind ()
 Iterator: rewind to first element.
 
 valid ()
 Iterator: is current position valid?
 
 current ()
 Iterator: return current element.
 
 key ()
 Iterator: return key of current element.
 
 next ()
 Iterator: move to next element.
 
 count ()
 Countable: get count.
 
 offsetExists ($key)
 ArrayAccess: offset exists.
 
 offsetGet ($key)
 ArrayAccess: get offset.
 
 offsetSet ($key, $value)
 ArrayAccess: set offset.
 
 offsetUnset ($key)
 ArrayAccess: unset offset.
 

Protected Attributes

 $list
 
 $position = 0
 

Detailed Description

DOMNodeList wrapper for Zend results.

Constructor & Destructor Documentation

__construct ( DOMNodeList  $list)

Constructor.

Parameters
DOMNodeList$list

Member Function Documentation

count ( )

Countable: get count.

Returns
int
current ( )

Iterator: return current element.

Returns
DOMNode
key ( )

Iterator: return key of current element.

Returns
int
next ( )

Iterator: move to next element.

Returns
DOMNode
offsetExists (   $key)

ArrayAccess: offset exists.

Parameters
int$key
Returns
bool
offsetGet (   $key)

ArrayAccess: get offset.

Parameters
int$key
Returns
mixed
offsetSet (   $key,
  $value 
)

ArrayAccess: set offset.

Parameters
mixed$key
mixed$value
Exceptions
Exception\BadMethodCallExceptionwhen attempting to write to a read-only item
offsetUnset (   $key)

ArrayAccess: unset offset.

Parameters
mixed$key
Exceptions
Exception\BadMethodCallExceptionwhen attempting to unset a read-only item
rewind ( )

Iterator: rewind to first element.

Returns
DOMNode
valid ( )

Iterator: is current position valid?

Returns
bool

Member Data Documentation

$list
protected
$position = 0
protected