PHP Класс Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoLegacyIterator

This iterator may be used to wrap the array returned within the listDatabases command's single-document result.
См. также: MongoDB\Client::listDatabases()
См. также: http://docs.mongodb.org/manual/reference/command/listDatabases/
Наследование: implements Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoIterator
Показать файл Открыть проект

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

Метод Описание
__construct ( array $databases ) Constructor.
current ( ) : DatabaseInfo Return the current element as a DatabaseInfo instance.
key ( ) : integer Return the key of the current element.
next ( ) Move forward to next element.
rewind ( ) Rewind the Iterator to the first element.
valid ( ) : boolean Checks if current position is valid.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( array $databases )
$databases array

current() публичный Метод

Return the current element as a DatabaseInfo instance.
См. также: DatabaseInfoIterator::current()
См. также: http://php.net/iterator.current
public current ( ) : DatabaseInfo
Результат DatabaseInfo

key() публичный Метод

Return the key of the current element.
См. также: http://php.net/iterator.key
public key ( ) : integer
Результат integer

next() публичный Метод

Move forward to next element.
См. также: http://php.net/iterator.next
public next ( )

rewind() публичный Метод

Rewind the Iterator to the first element.
См. также: http://php.net/iterator.rewind
public rewind ( )

valid() публичный Метод

Checks if current position is valid.
См. также: http://php.net/iterator.valid
public valid ( ) : boolean
Результат boolean