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
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
__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