PHP Class Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoLegacyIterator

This iterator may be used to wrap the array returned within the listDatabases command's single-document result.
See also: MongoDB\Client::listDatabases()
See also: http://docs.mongodb.org/manual/reference/command/listDatabases/
Inheritance: implements Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoIterator
Datei anzeigen Open project: phalcon/incubator

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

current() public method

Return the current element as a DatabaseInfo instance.
See also: DatabaseInfoIterator::current()
See also: http://php.net/iterator.current
public current ( ) : DatabaseInfo
return DatabaseInfo

key() public method

Return the key of the current element.
See also: http://php.net/iterator.key
public key ( ) : integer
return integer

next() public method

Move forward to next element.
See also: http://php.net/iterator.next
public next ( )

rewind() public method

Rewind the Iterator to the first element.
See also: http://php.net/iterator.rewind
public rewind ( )

valid() public method

Checks if current position is valid.
See also: http://php.net/iterator.valid
public valid ( ) : boolean
return boolean