PHP Класс Phalcon\Db\Adapter\MongoDB\Operation\ListCollections

См. также: MongoDB\Database::listCollections()
См. также: http://docs.mongodb.org/manual/reference/command/listCollections/
Наследование: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( string $databaseName, array $options = [] ) Constructs a listCollections command.
execute ( MongoDB\Driver\Server $server ) : Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoIterator Execute the operation.

Приватные методы

Метод Описание
executeCommand ( MongoDB\Driver\Server $server ) : CollectionInfoCommandIterator Returns information for all collections in this database using the listCollections command.
executeLegacy ( MongoDB\Driver\Server $server ) : CollectionInfoLegacyIterator Returns information for all collections in this database by querying the "system.namespaces" collection (MongoDB <3.0).

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

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

Supported options: * filter (document): Query by which to filter collections. * maxTimeMS (integer): The maximum amount of time to allow the query to run.
public __construct ( string $databaseName, array $options = [] )
$databaseName string Database name
$options array Command options

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

Execute the operation.
См. также: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoIterator
$server MongoDB\Driver\Server
Результат Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoIterator