芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/giga.mgaplay.com.br/vendor/mongodb/mongodb/src/Operation/FindOne.php
find = new Find( $databaseName, $collectionName, $filter, ['limit' => 1] + $options ); } /** * Execute the operation. * * @see Executable::execute() * @param Server $server * @return array|object|null * @throws UnsupportedException if collation or read concern is used and unsupported * @throws DriverRuntimeException for other driver errors (e.g. connection errors) */ public function execute(Server $server) { $cursor = $this->find->execute($server); $document = current($cursor->toArray()); return $document === false ? null : $document; } /** * Returns the command document for this operation. * * @see Explainable::getCommandDocument() * @param Server $server * @return array */ public function getCommandDocument(Server $server) { return $this->find->getCommandDocument($server); } }