MongoDB\Driver\WriteConcern::getJournal

(mongodb >=1.0.0)

MongoDB\Driver\WriteConcern::getJournalReturns the WriteConcern's "journal" option

说明

final public MongoDB\Driver\WriteConcern::getJournal ( void ) : boolean|null

参数

此函数没有参数。

返回值

Returns the WriteConcern's "journal" option.

错误/异常

范例

Example #1 MongoDB\Driver\WriteConcern::getJournal() example

<?php

$wc 
= new MongoDB\Driver\WriteConcern(1);
var_dump($wc->getJournal());

$wc = new MongoDB\Driver\WriteConcern(10true);
var_dump($wc->getJournal());

$wc = new MongoDB\Driver\WriteConcern(10false);
var_dump($wc->getJournal());

?>

以上例程会输出:

NULL
bool(true)
bool(false)
相关文章
php mongodb driver the mongodb driver writeconcern classphp mongodb driver monitoring commandfailedevent returns the command s operation idphp mongodb driver monitoring commandfailedevent returns the command reply documentphp mongodb driver monitoring commandfailedevent returns the command s request idphp mongodb driver monitoring commandfailedevent returns the server on which the command was executedphp mongodb driver monitoring commandsucceededevent returns the command reply documentphp mongodb driver monitoring commandsucceededevent returns the command s request idphp mongodb driver monitoring commandsucceededevent returns the server on which the command was executedphp mongodb driver readconcern returns the readconcern s level optionphp mongodb driver readpreference returns the readpreference s maxstalenessseconds optionphp mongodb driver readpreference returns the readpreference s mode optionphp mongodb driver readpreference returns the readpreference s tagsets optionphp mongodb driver writeconcern returns an object for bson serializationphp mongodb driver writeconcern create a new writeconcernphp mongodb driver writeconcern returns the writeconcern s journal optionphp mongodb driver writeconcern returns the writeconcern s w optionphp mongodb driver writeconcern returns the writeconcern s wtimeout optionphp mongodb driver writeresult returns the number of documents selected for updatephp mongodb driver writeresult returns the number of existing documents updatedphp mongodb driver writeresult returns the server associated with this write result
关注编程学问公众号