gt() public method

Specify $gt criteria for the current field.
See also: Builder::gt()
See also: http://docs.mongodb.org/manual/reference/operator/gt/
public gt ( mixed $value )
$value mixed
コード例 #1
0
ファイル: Match.php プロジェクト: doctrine/mongodb
 /**
  * Specify $gt criteria for the current field.
  *
  * @see Expr::gt()
  * @see http://docs.mongodb.org/manual/reference/operator/gt/
  * @param mixed $value
  * @return $this
  */
 public function gt($value)
 {
     $this->query->gt($value);
     return $this;
 }
コード例 #2
0
ファイル: Builder.php プロジェクト: Wizkunde/mongodb
 /**
  * Specify $gt criteria for the current field.
  *
  * @see Expr::gt()
  * @see http://docs.mongodb.org/manual/reference/operator/gt/
  * @param mixed $value
  * @return self
  */
 public function gt($value)
 {
     $this->expr->gt($value);
     return $this;
 }
コード例 #3
0
ファイル: ExprTest.php プロジェクト: im286er/ent
 public function testPullWithExpression()
 {
     $expr = new Expr();
     $nestedExpr = new Expr();
     $nestedExpr->gt(3);
     $this->assertSame($expr, $expr->field('a')->pull($nestedExpr));
     $this->assertEquals(array('$pull' => array('a' => array('$gt' => 3))), $expr->getNewObj());
 }