PHP 클래스 Prado\Collections\TQueueIterator

TQueueIterator implements \Iterator interface. TQueueIterator is used by TQueue. It allows TQueue to return a new iterator for traversing the items in the queue.
부터: 3.1
저자: Qiang Xue ([email protected])
상속: implements Iterator
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( &$data ) 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 ( &$data )

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