@@ 464-472 (lines=9) @@ | ||
461 | $query['$readPreference'] = $v; |
|
462 | } |
|
463 | ||
464 | if (is_string($p['where'])) { |
|
465 | $query['where'] = new \MongoCode($p['where']); |
|
466 | } |
|
467 | elseif ( |
|
468 | is_object($p['where']) |
|
469 | || sizeof($p['where']) |
|
470 | ) { |
|
471 | $query['query'] = $p['where']; |
|
472 | } |
|
473 | $cb = CallbackWrapper::wrap($cb); |
|
474 | if ($this->safeMode) { |
|
475 | static::safeModeEnc($query); |
|
@@ 707-715 (lines=9) @@ | ||
704 | $query['$max'] = $p['max']; |
|
705 | } |
|
706 | ||
707 | if (is_string($p['where'])) { |
|
708 | $query['where'] = new \MongoCode($p['where']); |
|
709 | } |
|
710 | elseif ( |
|
711 | is_object($p['where']) |
|
712 | || sizeof($p['where']) |
|
713 | ) { |
|
714 | $query['query'] = $p['where']; |
|
715 | } |
|
716 | ||
717 | $cb = CallbackWrapper::wrap($cb); |
|
718 | if ($this->safeMode) { |