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

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

Public Methods

Method Description
__construct ( string $databaseName, string $collectionName, string $indexName, array $options = [] ) Constructs a dropIndexes command.
execute ( MongoDB\Driver\Server $server ) : array | object Execute the operation.

Method Details

__construct() public method

Supported options: * typeMap (array): Type map for BSON deserialization. This will be used for the returned command result document.
public __construct ( string $databaseName, string $collectionName, string $indexName, array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$indexName string Index name (use "*" to drop all indexes)
$options array Command options

execute() public method

Execute the operation.
See also: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : array | object
$server MongoDB\Driver\Server
return array | object Command result document