PHP 클래스 Doctrine\MongoDB\Aggregation\Stage\Match

부터: 1.2
저자: alcaeus ([email protected])
상속: extends Doctrine\MongoDB\Aggregation\Stage
파일 보기 프로젝트 열기: doctrine/mongodb 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$query Doctrine\MongoDB\Query\Expr

공개 메소드들

메소드 설명
__clone ( )
__construct ( Builder $builder )
addAnd ( array | Expr $expression ) Add one or more $and clauses to the current query.
addNor ( array | Expr $expression ) Add one or more $nor clauses to the current query.
addOr ( array | Expr $expression ) Add one or more $or clauses to the current query.
all ( array $values ) Specify $all criteria for the current field.
debug ( string $name = null ) : mixed Return an array of information about the Builder state for debugging.
elemMatch ( array | Expr $expression ) Specify $elemMatch criteria for the current field.
equals ( mixed $value ) Specify an equality match for the current field.
exists ( boolean $bool ) Specify $exists criteria for the current field.
expr ( ) : Expr Create a new Expr instance that can be used to build partial expressions for other operator methods.
field ( string $field ) Set the current field for building the expression.
geoIntersects ( array | GeoJson\Geometry\Geometry $geometry ) Add $geoIntersects criteria with a GeoJSON geometry to the query.
geoWithin ( GeoJson\Geometry\Geometry $geometry ) Add $geoWithin criteria with a GeoJSON geometry to the query.
geoWithinBox ( float $x1, float $y1, float $x2, float $y2 ) Add $geoWithin criteria with a $box shape to the query.
geoWithinCenter ( float $x, float $y, float $radius ) Add $geoWithin criteria with a $center shape to the query.
geoWithinCenterSphere ( float $x, float $y, float $radius ) Add $geoWithin criteria with a $centerSphere shape to the query.
geoWithinPolygon ( ) Add $geoWithin criteria with a $polygon shape to the query.
getExpression ( )
gt ( mixed $value ) Specify $gt criteria for the current field.
gte ( mixed $value ) Specify $gte criteria for the current field.
in ( array $values ) Specify $in criteria for the current field.
language ( string $language ) Set the $language option for $text criteria.
lt ( mixed $value ) Specify $lt criteria for the current field.
lte ( mixed $value ) Specify $lte criteria for the current field.
maxDistance ( float $maxDistance ) Add $maxDistance criteria to the query.
minDistance ( float $minDistance ) Add $minDistance criteria to the query.
mod ( float | integer $divisor, float | integer $remainder ) Specify $mod criteria for the current field.
not ( array | Expr $expression ) Negates an expression for the current field.
notEqual ( mixed $value ) Specify $ne criteria for the current field.
notIn ( array $values ) Specify $nin criteria for the current field.
range ( mixed $start, mixed $end ) Specify $gte and $lt criteria for the current field.
size ( integer $size ) Specify $size criteria for the current field.
text ( string $search ) Specify $text criteria for the current field.
type ( integer $type ) Specify $type criteria for the current field.

메소드 상세

__clone() 공개 메소드

또한 보기: http://php.net/manual/en/language.oop5.cloning.php
public __clone ( )

__construct() 공개 메소드

public __construct ( Builder $builder )
$builder Doctrine\MongoDB\Aggregation\Builder

addAnd() 공개 메소드

You can create a new expression using the {@link Builder::matchExpr()} method.
또한 보기: Expr::addAnd()
또한 보기: http://docs.mongodb.org/manual/reference/operator/and/
public addAnd ( array | Expr $expression )
$expression array | Doctrine\MongoDB\Query\Expr

addNor() 공개 메소드

You can create a new expression using the {@link Builder::matchExpr()} method.
또한 보기: Expr::addNor()
또한 보기: http://docs.mongodb.org/manual/reference/operator/nor/
public addNor ( array | Expr $expression )
$expression array | Doctrine\MongoDB\Query\Expr

addOr() 공개 메소드

You can create a new expression using the {@link Builder::matchExpr()} method.
또한 보기: Expr::addOr()
또한 보기: http://docs.mongodb.org/manual/reference/operator/or/
public addOr ( array | Expr $expression )
$expression array | Doctrine\MongoDB\Query\Expr

all() 공개 메소드

Specify $all criteria for the current field.
또한 보기: Expr::all()
또한 보기: http://docs.mongodb.org/manual/reference/operator/all/
public all ( array $values )
$values array

debug() 공개 메소드

The $name parameter may be used to return a specific key from the internal $query array property. If omitted, the entire array will be returned.
public debug ( string $name = null ) : mixed
$name string
리턴 mixed

elemMatch() 공개 메소드

You can create a new expression using the {@link Builder::matchExpr()} method.
또한 보기: Expr::elemMatch()
또한 보기: http://docs.mongodb.org/manual/reference/operator/elemMatch/
public elemMatch ( array | Expr $expression )
$expression array | Doctrine\MongoDB\Query\Expr

equals() 공개 메소드

Specify an equality match for the current field.
또한 보기: Expr::equals()
public equals ( mixed $value )
$value mixed

exists() 공개 메소드

Specify $exists criteria for the current field.
또한 보기: Expr::exists()
또한 보기: http://docs.mongodb.org/manual/reference/operator/exists/
public exists ( boolean $bool )
$bool boolean

expr() 공개 메소드

Create a new Expr instance that can be used to build partial expressions for other operator methods.
public expr ( ) : Expr
리턴 Doctrine\MongoDB\Query\Expr $expr

field() 공개 메소드

Set the current field for building the expression.
또한 보기: Expr::field()
public field ( string $field )
$field string

geoIntersects() 공개 메소드

The geometry parameter GeoJSON object or an array corresponding to the geometry's JSON representation.
또한 보기: Expr::geoIntersects()
또한 보기: http://docs.mongodb.org/manual/reference/operator/geoIntersects/
public geoIntersects ( array | GeoJson\Geometry\Geometry $geometry )
$geometry array | GeoJson\Geometry\Geometry

geoWithin() 공개 메소드

The geometry parameter GeoJSON object or an array corresponding to the geometry's JSON representation.
또한 보기: Expr::geoWithin()
또한 보기: http://docs.mongodb.org/manual/reference/operator/geoWithin/
public geoWithin ( GeoJson\Geometry\Geometry $geometry )
$geometry GeoJson\Geometry\Geometry

geoWithinBox() 공개 메소드

A rectangular polygon will be constructed from a pair of coordinates corresponding to the bottom left and top right corners. Note: the $box operator only supports legacy coordinate pairs and 2d indexes. This cannot be used with 2dsphere indexes and GeoJSON shapes.
또한 보기: Expr::geoWithinBox()
또한 보기: http://docs.mongodb.org/manual/reference/operator/box/
public geoWithinBox ( float $x1, float $y1, float $x2, float $y2 )
$x1 float
$y1 float
$x2 float
$y2 float

geoWithinCenter() 공개 메소드

Note: the $center operator only supports legacy coordinate pairs and 2d indexes. This cannot be used with 2dsphere indexes and GeoJSON shapes.
또한 보기: Expr::geoWithinCenter()
또한 보기: http://docs.mongodb.org/manual/reference/operator/center/
public geoWithinCenter ( float $x, float $y, float $radius )
$x float
$y float
$radius float

geoWithinCenterSphere() 공개 메소드

Note: the $centerSphere operator supports both 2d and 2dsphere indexes.
또한 보기: Expr::geoWithinCenterSphere()
또한 보기: http://docs.mongodb.org/manual/reference/operator/centerSphere/
public geoWithinCenterSphere ( float $x, float $y, float $radius )
$x float
$y float
$radius float

geoWithinPolygon() 공개 메소드

Point coordinates are in x, y order (easting, northing for projected coordinates, longitude, latitude for geographic coordinates). The last point coordinate is implicitly connected with the first. Note: the $polygon operator only supports legacy coordinate pairs and 2d indexes. This cannot be used with 2dsphere indexes and GeoJSON shapes.
또한 보기: Expr::geoWithinPolygon()
또한 보기: http://docs.mongodb.org/manual/reference/operator/polygon/
public geoWithinPolygon ( )

getExpression() 공개 메소드

public getExpression ( )

gt() 공개 메소드

Specify $gt criteria for the current field.
또한 보기: Expr::gt()
또한 보기: http://docs.mongodb.org/manual/reference/operator/gt/
public gt ( mixed $value )
$value mixed

gte() 공개 메소드

Specify $gte criteria for the current field.
또한 보기: Expr::gte()
또한 보기: http://docs.mongodb.org/manual/reference/operator/gte/
public gte ( mixed $value )
$value mixed

in() 공개 메소드

Specify $in criteria for the current field.
또한 보기: Expr::in()
또한 보기: http://docs.mongodb.org/manual/reference/operator/in/
public in ( array $values )
$values array

language() 공개 메소드

This method must be called after text().
또한 보기: Expr::language()
또한 보기: http://docs.mongodb.org/manual/reference/operator/text/
public language ( string $language )
$language string

lt() 공개 메소드

Specify $lt criteria for the current field.
또한 보기: Expr::lte()
또한 보기: http://docs.mongodb.org/manual/reference/operator/lte/
public lt ( mixed $value )
$value mixed

lte() 공개 메소드

Specify $lte criteria for the current field.
또한 보기: Expr::lte()
또한 보기: http://docs.mongodb.org/manual/reference/operator/lte/
public lte ( mixed $value )
$value mixed

maxDistance() 공개 메소드

If the query uses GeoJSON points, $maxDistance will be interpreted in meters. If legacy point coordinates are used, $maxDistance will be interpreted in radians.
또한 보기: Expr::maxDistance()
또한 보기: http://docs.mongodb.org/manual/reference/command/geoNear/
또한 보기: http://docs.mongodb.org/manual/reference/operator/maxDistance/
또한 보기: http://docs.mongodb.org/manual/reference/operator/near/
또한 보기: http://docs.mongodb.org/manual/reference/operator/nearSphere/
public maxDistance ( float $maxDistance )
$maxDistance float

minDistance() 공개 메소드

If the query uses GeoJSON points, $minDistance will be interpreted in meters. If legacy point coordinates are used, $minDistance will be interpreted in radians.
또한 보기: Expr::minDistance()
또한 보기: http://docs.mongodb.org/manual/reference/command/geoNear/
또한 보기: http://docs.mongodb.org/manual/reference/operator/minDistance/
또한 보기: http://docs.mongodb.org/manual/reference/operator/near/
또한 보기: http://docs.mongodb.org/manual/reference/operator/nearSphere/
public minDistance ( float $minDistance )
$minDistance float

mod() 공개 메소드

Specify $mod criteria for the current field.
또한 보기: Expr::mod()
또한 보기: http://docs.mongodb.org/manual/reference/operator/mod/
public mod ( float | integer $divisor, float | integer $remainder )
$divisor float | integer
$remainder float | integer

not() 공개 메소드

You can create a new expression using the {@link Builder::matchExpr()} method.
또한 보기: Expr::not()
또한 보기: http://docs.mongodb.org/manual/reference/operator/not/
public not ( array | Expr $expression )
$expression array | Doctrine\MongoDB\Query\Expr

notEqual() 공개 메소드

Specify $ne criteria for the current field.
또한 보기: Expr::notEqual()
또한 보기: http://docs.mongodb.org/manual/reference/operator/ne/
public notEqual ( mixed $value )
$value mixed

notIn() 공개 메소드

Specify $nin criteria for the current field.
또한 보기: Expr::notIn()
또한 보기: http://docs.mongodb.org/manual/reference/operator/nin/
public notIn ( array $values )
$values array

range() 공개 메소드

This method is shorthand for specifying $gte criteria on the lower bound and $lt criteria on the upper bound. The upper bound is not inclusive.
또한 보기: Expr::range()
public range ( mixed $start, mixed $end )
$start mixed
$end mixed

size() 공개 메소드

Specify $size criteria for the current field.
또한 보기: Expr::size()
또한 보기: http://docs.mongodb.org/manual/reference/operator/size/
public size ( integer $size )
$size integer

text() 공개 메소드

The $language option may be set with {@link Builder::language()}. You can only use this in the first $match stage of a pipeline.
또한 보기: Expr::text()
또한 보기: http://docs.mongodb.org/master/reference/operator/query/text/
public text ( string $search )
$search string

type() 공개 메소드

Specify $type criteria for the current field.
또한 보기: Expr::type()
또한 보기: http://docs.mongodb.org/manual/reference/operator/type/
public type ( integer $type )
$type integer

프로퍼티 상세

$query 보호되어 있는 프로퍼티

protected Expr,Doctrine\MongoDB\Query $query
리턴 Doctrine\MongoDB\Query\Expr