PHP 클래스 Prado\Collections\TDummyDataSourceIterator

TDummyDataSourceIterator implements \Iterator interface. TDummyDataSourceIterator is used by {@link TDummyDataSource}. It allows TDummyDataSource to return a new iterator for traversing its dummy items.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: implements Iterator
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( $count ) Constructor.
current ( ) : mixed Returns the current array item.
key ( ) : integer Returns the key of the current array item.
next ( ) Moves the internal pointer to the next array item.
rewind ( ) Rewinds internal array pointer.
valid ( ) : boolean Returns whether there is an item at current position.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $count )

current() 공개 메소드

This method is required by the interface Iterator.
public current ( ) : mixed
리턴 mixed the current array item

key() 공개 메소드

This method is required by the interface Iterator.
public key ( ) : integer
리턴 integer the key of the current array item

next() 공개 메소드

This method is required by the interface Iterator.
public next ( )

rewind() 공개 메소드

This method is required by the interface Iterator.
public rewind ( )

valid() 공개 메소드

This method is required by the interface Iterator.
public valid ( ) : boolean
리턴 boolean