芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/cache/stores/mongodb/MongoDB/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; } public function getCommandDocument(Server $server) { return $this->find->getCommandDocument($server); } }