CHttpSessionIterator
| Package | system.web |
|---|---|
| Inheritance | class CHttpSessionIterator |
| Implements | Iterator, Traversable |
| Since | 1.0 |
| Version | $Id: CHttpSessionIterator.php 1678 2010-01-07 21:02:00Z qiang.xue $ |
CHttpSessionIterator implements an interator for CHttpSession.
It allows CHttpSession to return a new iterator for traversing the session variables.
It allows CHttpSession to return a new iterator for traversing the session variables.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Constructor. | CHttpSessionIterator |
| current() | Returns the current array element. | CHttpSessionIterator |
| key() | Returns the key of the current array element. | CHttpSessionIterator |
| next() | Moves the internal pointer to the next array element. | CHttpSessionIterator |
| rewind() | Rewinds internal array pointer. | CHttpSessionIterator |
| valid() | Returns whether there is an element at current position. | CHttpSessionIterator |
Method Details
__construct()
method
|
public void __construct()
|
Constructor.
current()
method
|
public mixed current()
| ||
| {return} | mixed | the current array element |
Returns the current array element. This method is required by the interface Iterator.
key()
method
|
public mixed key()
| ||
| {return} | mixed | the key of the current array element |
Returns the key of the current array element. This method is required by the interface Iterator.
next()
method
|
public void next()
|
Moves the internal pointer to the next array element. This method is required by the interface Iterator.
rewind()
method
|
public void rewind()
|
Rewinds internal array pointer. This method is required by the interface Iterator.
valid()
method
|
public boolean valid()
| ||
| {return} | boolean | |
Returns whether there is an element at current position. This method is required by the interface Iterator.