lib/Alcaeus/MongoDbAdapter/Helper/WriteConcern.php 1 location
|
@@ 69-75 (lines=7) @@
|
66 |
|
* @param array $writeConcernArray |
67 |
|
* @return bool |
68 |
|
*/ |
69 |
|
protected function setWriteConcernFromArray($writeConcernArray) |
70 |
|
{ |
71 |
|
$wstring = $writeConcernArray['w']; |
72 |
|
$wtimeout = isset($writeConcernArray['wtimeout']) ? $writeConcernArray['wtimeout'] : 0; |
73 |
|
|
74 |
|
return $this->setWriteConcernFromParameters($wstring, $wtimeout); |
75 |
|
} |
76 |
|
} |
77 |
|
|
lib/Alcaeus/MongoDbAdapter/Helper/WriteConcernRaw.php 1 location
|
@@ 40-46 (lines=7) @@
|
37 |
|
* @param array $writeConcernArray |
38 |
|
* @return \MongoDB\Driver\WriteConcern |
39 |
|
*/ |
40 |
|
protected function createWriteConcernFromArray($writeConcernArray) |
41 |
|
{ |
42 |
|
$wstring = isset($writeConcernArray['w']) ? $writeConcernArray['w'] : 1; |
43 |
|
$wtimeout = isset($writeConcernArray['wtimeout']) ? $writeConcernArray['wtimeout'] : 0; |
44 |
|
|
45 |
|
return $this->createWriteConcernFromParameters($wstring, $wtimeout); |
46 |
|
} |
47 |
|
} |
48 |
|
|