system system.base system.caching system.caching.dependencies system.collections system.console system.db system.db.ar system.db.schema system.db.schema.mssql system.db.schema.mysql system.db.schema.oci system.db.schema.pgsql system.db.schema.sqlite system.i18n system.i18n.gettext system.logging system.utils system.validators system.web system.web.actions system.web.auth system.web.filters system.web.helpers system.web.renderers system.web.services system.web.widgets system.web.widgets.captcha system.web.widgets.pagers

CHttpSessionIterator

system.web
继承 class CHttpSessionIterator
实现 Iterator, Traversable
可用自 1.0
版本 $Id$
CHttpSessionIterator implements an interator for CHttpSession.

It allows CHttpSession to return a new iterator for traversing the session variables.

公共方法

隐藏继承的方法

方法描述被定义在
__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

方法详情

__construct() 方法
public void __construct()

Constructor.

current() 方法
public mixed current()
{return} mixed the current array element

Returns the current array element. This method is required by the interface Iterator.

key() 方法
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() 方法
public void next()

Moves the internal pointer to the next array element. This method is required by the interface Iterator.

rewind() 方法
public void rewind()

Rewinds internal array pointer. This method is required by the interface Iterator.

valid() 方法
public boolean valid()
{return} boolean

Returns whether there is an element at current position. This method is required by the interface Iterator.