PHP 클래스 Phalcon\Db\Adapter\MongoDB\Operation\Count

또한 보기: MongoDB\Collection::count()
또한 보기: http://docs.mongodb.org/manual/reference/command/count/
상속: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $databaseName, string $collectionName, array | object $filter = [], array $options = [] ) Constructs a count command.
execute ( MongoDB\Driver\Server $server ) : integer Execute the operation.

비공개 메소드들

메소드 설명
createCommand ( MongoDB\Driver\Server $server ) : MongoDB\Driver\Command Create the count command.

메소드 상세

__construct() 공개 메소드

Supported options: * hint (string|document): The index to use. If a document, it will be interpretted as an index specification and a name will be generated. * limit (integer): The maximum number of documents to count. * maxTimeMS (integer): The maximum amount of time to allow the query to run. * readConcern (MongoDB\Driver\ReadConcern): Read concern. For servers < 3.2, this option is ignored as read concern is not available. * readPreference (MongoDB\Driver\ReadPreference): Read preference. * skip (integer): The number of documents to skip before returning the documents.
public __construct ( string $databaseName, string $collectionName, array | object $filter = [], array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$filter array | object Query by which to filter documents
$options array Command options

execute() 공개 메소드

Execute the operation.
또한 보기: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : integer
$server MongoDB\Driver\Server
리턴 integer