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

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

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

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

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

Метод Описание
executeCommand ( MongoDB\Driver\Server $server ) : IndexInfoIteratorIterator Returns information for all indexes for this collection using the listIndexes command.
executeLegacy ( MongoDB\Driver\Server $server ) : IndexInfoIteratorIterator Returns information for all indexes for this collection by querying the "system.indexes" collection (MongoDB <3.0).

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

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

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

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

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