PHP 클래스 Prado\Collections\TStackIterator

TStackIterator implements \Iterator interface. TStackIterator is used by TStack. It allows TStack to return a new iterator for traversing the items in the list.
사용 중단: Issue 264 : ArrayIterator should be used instead
부터: 3.0
저자: 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