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

See also: MongoDB\Collection::drop()
See also: MongoDB\Database::dropCollection()
See also: http://docs.mongodb.org/manual/reference/command/drop/
Inheritance: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
Exibir arquivo Open project: phalcon/incubator Class Usage Examples

Public Methods

Method Description
__construct ( string $databaseName, string $collectionName, array $options = [] ) Constructs a drop 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, array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$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