Skip to content

Commit 664b545

Browse files
committed
folding
1 parent bb17999 commit 664b545

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/MongoDB/Collection.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace MongoDB;
33

4-
/* phongo includes */
4+
/* {{{ phongo includes */
55
use MongoDB\Manager;
66
use MongoDB\Query;
77
use MongoDB\Command;
@@ -10,8 +10,10 @@
1010

1111
use MongoDB\QueryFlags;
1212
use MongoDB\CursorType;
13+
/* }}} */
1314

1415
class Collection {
16+
/* {{{ consts & vars */
1517
const INSERT = 0x01;
1618
const UPDATE = 0x02;
1719
const DELETE = 0x04;
@@ -23,13 +25,16 @@ class Collection {
2325

2426
protected $dbname;
2527
protected $collname;
26-
function __construct(Manager $manager, $ns, WriteConcern $wc = null, ReadPreference $rp = null) {
28+
/* }}} */
29+
30+
31+
function __construct(Manager $manager, $ns, WriteConcern $wc = null, ReadPreference $rp = null) { /* {{{ */
2732
$this->manager = $manager;
2833
$this->ns = $ns;
2934
$this->wc = $wc;
3035
$this->rp = $rp;
3136
list($this->dbname, $this->collname) = explode(".", $ns, 2);
32-
}
37+
} /* }}} */
3338

3439
function find(array $filter = array(), array $options = array()) { /* {{{ {{{ */
3540
$options = array_merge($this->getFindOptions(), $options);
@@ -350,14 +355,15 @@ function getAggregateOptions() { /* {{{ */
350355
/* FIXME: Add a version check for useCursor */
351356
return $opts;
352357
} /* }}} */
353-
protected function _massageAggregateOptions($options) {
358+
protected function _massageAggregateOptions($options) { /* {{{ */
354359
if ($options["useCursor"]) {
355360
$options["cursor"] = array("batchSize" => $options["batchSize"]);
356361
}
357362
unset($options["useCursor"], $options["batchSize"]);
358363

359364
return $options;
360-
}
365+
} /* }}} */
366+
361367

362368
protected function _generateCommandException($doc) { /* {{{ */
363369
if ($doc["errmsg"]) {

0 commit comments

Comments
 (0)