PHP Class Phalcon\Db\Adapter\MongoDB\Operation\ListDatabases

See also: MongoDB\Client::listDatabases()
See also: http://docs.mongodb.org/manual/reference/command/ListDatabases/
Inheritance: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
Show file Open project: phalcon/incubator Class Usage Examples

Public Methods

Method Description
__construct ( array $options = [] ) Constructs a listDatabases command.
execute ( MongoDB\Driver\Server $server ) : Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoIterator Execute the operation.

Method Details

__construct() public method

Supported options: * maxTimeMS (integer): The maximum amount of time to allow the query to run.
public __construct ( array $options = [] )
$options array Command options

execute() public method

Execute the operation.
See also: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoIterator
$server MongoDB\Driver\Server
return Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoIterator