next() public method Moves the internal pointer to the next dataset. This method is required by the interface Iterator. public void next ( )
key() public method Returns the index of the current dataset. This method is required by the interface Iterator. public integer key ( )return integer The index of the current row.
fetchData() protected method Fetches the next batch of data. protected array fetchData ( )return array The data fetched
current() public method Returns the current dataset. This method is required by the interface Iterator. public mixed current ( )return mixed The current dataset.
$query public property The query object associated with this batch query. Do not modify this property directly unless after reset() is called explicitly. public yii\db\Query $query = null
$each public property Whether to return a single row during each iteration. If false, a whole batch of rows will be returned in each iteration. public boolean $each = false
$db public property The DB connection to be used when performing batch query. If null, the "db" application component will be used. public yii\db\Connection $db = null
$batchSize public property The number of rows to be returned in each batch. public integer $batchSize = 100
__unset() public method Sets a component property to be null. This method overrides the parent implementation by clearing the specified attribute value. public void __unset ( $name )$name string The property name or the event name
__set() public method PHP setter magic method. This method is overridden so that AR attributes can be accessed like properties. public void __set ( $name, $value )$name string Property name $value mixed Property value
Page 460 of 633