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