@@ 1160-1162 (lines=3) @@ | ||
1157 | */ |
|
1158 | public function update($col, $cond, $data, $flags = 0, $cb = null, $params = []) |
|
1159 | { |
|
1160 | if (mb_orig_strpos($col, '.') === false) { |
|
1161 | $col = $this->dbname . '.' . $col; |
|
1162 | } |
|
1163 | ||
1164 | if (is_string($cond)) { |
|
1165 | $cond = new \MongoCode($cond); |
|
@@ 1280-1282 (lines=3) @@ | ||
1277 | */ |
|
1278 | public function insert($col, $doc = [], $cb = null, $params = []) |
|
1279 | { |
|
1280 | if (mb_orig_strpos($col, '.') === false) { |
|
1281 | $col = $this->dbname . '.' . $col; |
|
1282 | } |
|
1283 | ||
1284 | if (!isset($doc['_id'])) { |
|
1285 | $doc['_id'] = new \MongoId; |
|
@@ 1345-1347 (lines=3) @@ | ||
1342 | */ |
|
1343 | public function insertMulti($col, $docs = [], $cb = null, $params = []) |
|
1344 | { |
|
1345 | if (mb_orig_strpos($col, '.') === false) { |
|
1346 | $col = $this->dbname . '.' . $col; |
|
1347 | } |
|
1348 | ||
1349 | $ids = []; |
|
1350 | $bson = ''; |
|
@@ 1394-1396 (lines=3) @@ | ||
1391 | */ |
|
1392 | public function remove($col, $cond = [], $cb = null, $params = []) |
|
1393 | { |
|
1394 | if (mb_orig_strpos($col, '.') === false) { |
|
1395 | $col = $this->dbname . '.' . $col; |
|
1396 | } |
|
1397 | ||
1398 | if (is_string($cond)) { |
|
1399 | $cond = new \MongoCode($cond); |
|
@@ 1439-1441 (lines=3) @@ | ||
1436 | */ |
|
1437 | public function getMore($col, $id, $number, $conn) |
|
1438 | { |
|
1439 | if (mb_orig_strpos($col, '.') === false) { |
|
1440 | $col = $this->dbname . '.' . $col; |
|
1441 | } |
|
1442 | ||
1443 | $this->request( |
|
1444 | self::OP_GETMORE, |