コード例 #1
0
ファイル: Builder.php プロジェクト: cosmow/riak
 /**
  * Add $within criteria with a $centerSphere shape to the query.
  *
  * @deprecated 1.1 Riak 2.4 deprecated $within in favor of $geoWithin
  * @see Builder::geoWithinCenterSphere()
  * @see Expr::withinCenterSphere()
  * @see http://docs.mongodb.org/manual/reference/operator/centerSphere/
  * @param float $x
  * @param float $y
  * @param float $radius
  * @return self
  */
 public function withinCenterSphere($x, $y, $radius)
 {
     $this->expr->withinCenterSphere($x, $y, $radius);
     return $this;
 }
コード例 #2
0
ファイル: Expr.php プロジェクト: cosmow/riak
 /**
  * Negates an expression for the current field.
  *
  * @see Builder::not()
  * @see http://docs.mongodb.org/manual/reference/operator/not/
  * @param array|Expr $expression
  * @return self
  */
 public function not($expression)
 {
     return $this->operator('$not', $expression instanceof Expr ? $expression->getQuery() : $expression);
 }
コード例 #3
0
ファイル: Match.php プロジェクト: cosmow/riak
 /**
  * Specify $type criteria for the current field.
  *
  * @see Expr::type()
  * @see http://docs.mongodb.org/manual/reference/operator/type/
  * @param integer $type
  * @return self
  */
 public function type($type)
 {
     $this->query->type($type);
     return $this;
 }