没有命名空间的类 yii yii\base yii\behaviors yii\caching yii\captcha yii\console yii\console\controllers yii\console\widgets yii\data yii\db yii\db\conditions yii\db\cubrid yii\db\cubrid\conditions yii\db\mssql yii\db\mssql\conditions yii\db\mysql yii\db\oci yii\db\oci\conditions yii\db\pgsql yii\db\sqlite yii\db\sqlite\conditions yii\di yii\filters yii\filters\auth yii\grid yii\helpers yii\i18n yii\log yii\mail yii\mutex yii\rbac yii\rest yii\test yii\validators yii\web yii\widgets

Class yii\web\SessionIterator

继承yii\web\SessionIterator
实现Iterator
可用版本自2.0
源码 https://github.com/yiichina/yii2/blob/api/framework/web/SessionIterator.php

SessionIterator implements an iterator for traversing session variables managed by yii\web\Session.

公共方法

隐藏继承的方法

方法描述被定义在
__construct() Constructor. yii\web\SessionIterator
current() Returns the current array element. yii\web\SessionIterator
key() Returns the key of the current array element. yii\web\SessionIterator
next() Moves the internal pointer to the next array element. yii\web\SessionIterator
rewind() Rewinds internal array pointer. yii\web\SessionIterator
valid() Returns whether there is an element at current position. yii\web\SessionIterator

方法详情

__construct() 公共 方法

Constructor.

public void __construct()
current() 公共 方法

Returns the current array element.

This method is required by the interface Iterator.

public mixed current()
return mixed

The current array element

key() 公共 方法

Returns the key of the current array element.

This method is required by the interface Iterator.

public mixed key()
return mixed

The key of the current array element

next() 公共 方法

Moves the internal pointer to the next array element.

This method is required by the interface Iterator.

public void next()
rewind() 公共 方法

Rewinds internal array pointer.

This method is required by the interface Iterator.

public void rewind()
valid() 公共 方法

Returns whether there is an element at current position.

This method is required by the interface Iterator.

public boolean valid()