コード例 #1
0
ファイル: Builder.php プロジェクト: cosmow/riak
 /**
  * Add $geoWithin criteria with a GeoJSON geometry to the query.
  *
  * The geometry parameter GeoJSON object or an array corresponding to the
  * geometry's JSON representation.
  *
  * @see Expr::geoWithin()
  * @see http://docs.mongodb.org/manual/reference/operator/geoWithin/
  * @param array|Geometry $geometry
  * @return self
  */
 public function geoWithin($geometry)
 {
     $this->expr->geoWithin($geometry);
     return $this;
 }
コード例 #2
0
ファイル: Match.php プロジェクト: cosmow/riak
 /**
  * Add $geoWithin criteria with a GeoJSON geometry to the query.
  *
  * The geometry parameter GeoJSON object or an array corresponding to the
  * geometry's JSON representation.
  *
  * @see Expr::geoWithin()
  * @see http://docs.mongodb.org/manual/reference/operator/geoWithin/
  * @param array|Geometry $geometry
  * @return self
  */
 public function geoWithin(Geometry $geometry)
 {
     $this->query->geoWithin($geometry);
     return $this;
 }