lib/Mongo/MongoCollection.php 1 location
|
@@ 106-112 (lines=7) @@
|
103 |
|
* @param string $name |
104 |
|
* @param mixed $value |
105 |
|
*/ |
106 |
|
public function __set($name, $value) |
107 |
|
{ |
108 |
|
if ($name === 'w' || $name === 'wtimeout') { |
109 |
|
$this->setWriteConcernFromArray([$name => $value] + $this->getWriteConcern()); |
110 |
|
$this->createCollectionObject(); |
111 |
|
} |
112 |
|
} |
113 |
|
|
114 |
|
/** |
115 |
|
* @link http://www.php.net/manual/en/mongocollection.aggregate.php |
lib/Mongo/MongoDB.php 1 location
|
@@ 108-114 (lines=7) @@
|
105 |
|
* @param string $name |
106 |
|
* @param mixed $value |
107 |
|
*/ |
108 |
|
public function __set($name, $value) |
109 |
|
{ |
110 |
|
if ($name === 'w' || $name === 'wtimeout') { |
111 |
|
$this->setWriteConcernFromArray([$name => $value] + $this->getWriteConcern()); |
112 |
|
$this->createDatabaseObject(); |
113 |
|
} |
114 |
|
} |
115 |
|
|
116 |
|
/** |
117 |
|
* (PECL mongo >= 1.3.0)<br/> |