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
Показать файл Открыть проект

Открытые методы

Метод Описание
__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