PHP Класс Doctrine\MongoDB\Query\Expr

С версии: 1.0
Автор: Jonathan H. Wage ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$currentField string The current field we are operating on.
$newObj array The "new object" array containing either a full document or a number of atomic update operators.
$query string The query criteria array.

Открытые методы

Метод Описание
addAnd ( array | Expr $expression ) Add one or more $and clauses to the current query.
addManyToSet ( array $values ) Append multiple values to the current array field only if they do not already exist in the array.
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.
addToSet ( mixed | Expr $valueOrExpression ) Append one or more values to the current array field only if they do not already exist in the array.
all ( array $values ) Specify $all criteria for the current field.
bitAnd ( integer $value ) Apply a bitwise and operation on the current field.
bitOr ( integer $value ) Apply a bitwise or operation on the current field.
bitXor ( integer $value ) Apply a bitwise xor operation on the current field.
bitsAllClear ( integer | array | MongoBinData $value ) Matches documents where all of the bit positions given by the query are clear.
bitsAllSet ( integer | array | MongoBinData $value ) Matches documents where all of the bit positions given by the query are set.
bitsAnyClear ( integer | array | MongoBinData $value ) Matches documents where any of the bit positions given by the query are clear.
bitsAnySet ( integer | array | MongoBinData $value ) Matches documents where any of the bit positions given by the query are set.
caseSensitive ( boolean $caseSensitive ) A boolean flag to enable or disable case sensitive search for $text criteria.
comment ( string $comment ) Associates a comment to any expression taking a query predicate.
currentDate ( string $type = 'date' ) Sets the value of the current field to the current date, either as a date or a timestamp.
diacriticSensitive ( boolean $diacriticSensitive ) A boolean flag to enable or disable diacritic sensitive search for $text criteria.
each ( array $values ) Add $each criteria to the expression for a $push operation.
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.
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 expression.
geoWithin ( array | GeoJson\Geometry\Geometry $geometry ) Add $geoWithin criteria with a GeoJSON geometry to the expression.
geoWithinBox ( float $x1, float $y1, float $x2, float $y2 ) Add $geoWithin criteria with a $box shape to the expression.
geoWithinCenter ( float $x, float $y, float $radius ) Add $geoWithin criteria with a $center shape to the expression.
geoWithinCenterSphere ( float $x, float $y, float $radius ) Add $geoWithin criteria with a $centerSphere shape to the expression.
geoWithinPolygon ( ) Add $geoWithin criteria with a $polygon shape to the expression.
getCurrentField ( ) : string Return the current field.
getNewObj ( ) : array Return the "new object".
getQuery ( ) : array Return the query criteria.
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.
inc ( float | integer $value ) Increment 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.
max ( mixed $value ) Updates the value of the field to a specified value if the specified value is greater than the current value of the field.
maxDistance ( float $maxDistance ) Set the $maxDistance option for $near or $nearSphere criteria.
min ( mixed $value ) Updates the value of the field to a specified value if the specified value is less than the current value of the field.
minDistance ( float $minDistance ) Set the $minDistance option for $near or $nearSphere criteria.
mod ( float | integer $divisor, float | integer $remainder ) Specify $mod criteria for the current field.
mul ( float | integer $value ) Multiply the current field.
near ( float | array | GeoJson\Geometry\Point $x, float $y = null ) Add $near criteria to the expression.
nearSphere ( float | array | GeoJson\Geometry\Point $x, float $y = null ) Add $nearSphere criteria to the expression.
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.
operator ( string $operator, mixed $value ) Defines an operator and value on the expression.
popFirst ( ) Remove the first element from the current array field.
popLast ( ) Remove the last element from the current array field.
position ( integer $position ) Add $position criteria to the expression for a $push operation.
pull ( mixed | Expr $valueOrExpression ) Remove all elements matching the given value or expression from the current array field.
pullAll ( array $values ) Remove all elements matching any of the given values from the current array field.
push ( mixed | Expr $valueOrExpression ) Append one or more values to the current array field.
pushAll ( array $values ) Append multiple values to the current array field.
range ( mixed $start, mixed $end ) Specify $gte and $lt criteria for the current field.
rename ( string $name ) Rename the current field.
set ( mixed $value, boolean $atomic = true ) Set the current field to a value.
setNewObj ( array $newObj ) Set the "new object".
setOnInsert ( mixed $value ) Set the current field to the value if the document is inserted in an upsert operation.
setQuery ( array $query ) Set the query criteria.
size ( integer $size ) Specify $size criteria for the current field.
slice ( integer $slice ) Add $slice criteria to the expression for a $push operation.
sort ( array | string $fieldName, integer | string $order = null ) Add $sort criteria to the expression for a $push operation.
text ( string $search ) Specify $text criteria for the current query.
type ( integer $type ) Specify $type criteria for the current field.
unsetField ( ) Unset the current field.
where ( string | MongoCode $javascript ) Specify a JavaScript expression to use for matching documents.
withinBox ( float $x1, float $y1, float $x2, float $y2 ) Add $within criteria with a $box shape to the expression.
withinCenter ( float $x, float $y, float $radius ) Add $within criteria with a $center shape to the expression.
withinCenterSphere ( float $x, float $y, float $radius ) Add $within criteria with a $centerSphere shape to the expression.
withinPolygon ( ) Add $within criteria with a $polygon shape to the expression.

Защищенные методы

Метод Описание
bit ( string $operator, integer $value ) Apply a bitwise operation on the current field

Приватные методы

Метод Описание
requiresCurrentField ( ) Ensure that a current field has been set.
wrapEqualityCriteria ( ) Wraps equality criteria with an operator.

Описание методов

addAnd() публичный Метод

Add one or more $and clauses to the current query.
См. также: Builder::addAnd()
См. также: http://docs.mongodb.org/manual/reference/operator/and/
public addAnd ( array | Expr $expression )
$expression array | Expr

addManyToSet() публичный Метод

If the field does not exist, it will be set to an array containing the unique values in the argument. If the field is not an array, the query will yield an error.
См. также: Builder::addManyToSet()
См. также: http://docs.mongodb.org/manual/reference/operator/addToSet/
См. также: http://docs.mongodb.org/manual/reference/operator/each/
Устаревший: 1.1 Use {@link Expr::addToSet()} with {@link Expr::each()}; Will be removed in 2.0
public addManyToSet ( array $values )
$values array

addNor() публичный Метод

Add one or more $nor clauses to the current query.
См. также: Builder::addNor()
См. также: http://docs.mongodb.org/manual/reference/operator/nor/
public addNor ( array | Expr $expression )
$expression array | Expr

addOr() публичный Метод

Add one or more $or clauses to the current query.
См. также: Builder::addOr()
См. также: http://docs.mongodb.org/manual/reference/operator/or/
public addOr ( array | Expr $expression )
$expression array | Expr

addToSet() публичный Метод

If the field does not exist, it will be set to an array containing the unique value(s) in the argument. If the field is not an array, the query will yield an error. Multiple values may be specified by provided an Expr object and using {@link Expr::each()}.
См. также: Builder::addToSet()
См. также: http://docs.mongodb.org/manual/reference/operator/addToSet/
См. также: http://docs.mongodb.org/manual/reference/operator/each/
public addToSet ( mixed | Expr $valueOrExpression )
$valueOrExpression mixed | Expr

all() публичный Метод

Specify $all criteria for the current field.
См. также: Builder::all()
См. также: http://docs.mongodb.org/manual/reference/operator/all/
public all ( array $values )
$values array

bit() защищенный Метод

Apply a bitwise operation on the current field
См. также: http://docs.mongodb.org/manual/reference/operator/update/bit/
protected bit ( string $operator, integer $value )
$operator string
$value integer

bitAnd() публичный Метод

Apply a bitwise and operation on the current field.
См. также: Builder::bitAnd()
См. также: http://docs.mongodb.org/manual/reference/operator/update/bit/
public bitAnd ( integer $value )
$value integer

bitOr() публичный Метод

Apply a bitwise or operation on the current field.
См. также: Builder::bitOr()
См. также: http://docs.mongodb.org/manual/reference/operator/update/bit/
public bitOr ( integer $value )
$value integer

bitXor() публичный Метод

Apply a bitwise xor operation on the current field.
См. также: Builder::bitXor()
См. также: http://docs.mongodb.org/manual/reference/operator/update/bit/
public bitXor ( integer $value )
$value integer

bitsAllClear() публичный Метод

Matches documents where all of the bit positions given by the query are clear.
См. также: Builder::bitsAllClear()
См. также: https://docs.mongodb.org/manual/reference/operator/query/bitsAllClear/
public bitsAllClear ( integer | array | MongoBinData $value )
$value integer | array | MongoBinData

bitsAllSet() публичный Метод

Matches documents where all of the bit positions given by the query are set.
См. также: Builder::bitsAllSet()
См. также: https://docs.mongodb.org/manual/reference/operator/query/bitsAllSet/
public bitsAllSet ( integer | array | MongoBinData $value )
$value integer | array | MongoBinData

bitsAnyClear() публичный Метод

Matches documents where any of the bit positions given by the query are clear.
См. также: Builder::bitsAnyClear()
См. также: https://docs.mongodb.org/manual/reference/operator/query/bitsAnyClear/
public bitsAnyClear ( integer | array | MongoBinData $value )
$value integer | array | MongoBinData

bitsAnySet() публичный Метод

Matches documents where any of the bit positions given by the query are set.
См. также: Builder::bitsAnySet()
См. также: https://docs.mongodb.org/manual/reference/operator/query/bitsAnySet/
public bitsAnySet ( integer | array | MongoBinData $value )
$value integer | array | MongoBinData

caseSensitive() публичный Метод

This method must be called after text().
См. также: Builder::caseSensitive()
См. также: http://docs.mongodb.org/manual/reference/operator/text/
С версии: 1.3
public caseSensitive ( boolean $caseSensitive )
$caseSensitive boolean

comment() публичный Метод

Associates a comment to any expression taking a query predicate.
См. также: Builder::comment()
См. также: http://docs.mongodb.org/manual/reference/operator/query/comment/
public comment ( string $comment )
$comment string

currentDate() публичный Метод

Sets the value of the current field to the current date, either as a date or a timestamp.
См. также: Builder::currentDate()
См. также: http://docs.mongodb.org/manual/reference/operator/update/currentDate/
public currentDate ( string $type = 'date' )
$type string

diacriticSensitive() публичный Метод

This method must be called after text().
См. также: Builder::diacriticSensitive()
См. также: http://docs.mongodb.org/manual/reference/operator/text/
С версии: 1.3
public diacriticSensitive ( boolean $diacriticSensitive )
$diacriticSensitive boolean

each() публичный Метод

Add $each criteria to the expression for a $push operation.
См. также: Expr::push()
См. также: http://docs.mongodb.org/manual/reference/operator/each/
public each ( array $values )
$values array

elemMatch() публичный Метод

Specify $elemMatch criteria for the current field.
См. также: Builder::elemMatch()
См. также: http://docs.mongodb.org/manual/reference/operator/elemMatch/
public elemMatch ( array | Expr $expression )
$expression array | Expr

equals() публичный Метод

Specify an equality match for the current field.
См. также: Builder::equals()
public equals ( mixed $value )
$value mixed

exists() публичный Метод

Specify $exists criteria for the current field.
См. также: Builder::exists()
См. также: http://docs.mongodb.org/manual/reference/operator/exists/
public exists ( boolean $bool )
$bool boolean

field() публичный Метод

Set the current field for building the expression.
См. также: Builder::field()
public field ( string $field )
$field string

geoIntersects() публичный Метод

The geometry parameter GeoJSON object or an array corresponding to the geometry's JSON representation.
См. также: Builder::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.
См. также: Builder::geoWithin()
См. также: http://docs.mongodb.org/manual/reference/operator/geoIntersects/
public geoWithin ( array | GeoJson\Geometry\Geometry $geometry )
$geometry array | 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.
См. также: Builder::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.
См. также: Builider::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.
См. также: Builder::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.
См. также: Builder::geoWithinPolygon()
См. также: http://docs.mongodb.org/manual/reference/operator/polygon/
public geoWithinPolygon ( )

getCurrentField() публичный Метод

Return the current field.
public getCurrentField ( ) : string
Результат string

getNewObj() публичный Метод

Return the "new object".
См. также: Builder::getNewObj()
public getNewObj ( ) : array
Результат array

getQuery() публичный Метод

Return the query criteria.
См. также: Builder::getQueryArray()
public getQuery ( ) : array
Результат array

gt() публичный Метод

Specify $gt criteria for the current field.
См. также: Builder::gt()
См. также: http://docs.mongodb.org/manual/reference/operator/gt/
public gt ( mixed $value )
$value mixed

gte() публичный Метод

Specify $gte criteria for the current field.
См. также: Builder::gte()
См. также: http://docs.mongodb.org/manual/reference/operator/gte/
public gte ( mixed $value )
$value mixed

in() публичный Метод

Specify $in criteria for the current field.
См. также: Builder::in()
См. также: http://docs.mongodb.org/manual/reference/operator/in/
public in ( array $values )
$values array

inc() публичный Метод

If the field does not exist, it will be set to this value.
См. также: Builder::inc()
См. также: http://docs.mongodb.org/manual/reference/operator/inc/
public inc ( float | integer $value )
$value float | integer

language() публичный Метод

This method must be called after text().
См. также: Builder::language()
См. также: http://docs.mongodb.org/manual/reference/operator/text/
public language ( string $language )
$language string

lt() публичный Метод

Specify $lt criteria for the current field.
См. также: Builder::lte()
См. также: http://docs.mongodb.org/manual/reference/operator/lte/
public lt ( mixed $value )
$value mixed

lte() публичный Метод

Specify $lte criteria for the current field.
См. также: Builder::lte()
См. также: http://docs.mongodb.org/manual/reference/operator/lte/
public lte ( mixed $value )
$value mixed

max() публичный Метод

Updates the value of the field to a specified value if the specified value is greater than the current value of the field.
См. также: Builder::max()
См. также: http://docs.mongodb.org/manual/reference/operator/update/max/
public max ( mixed $value )
$value mixed

maxDistance() публичный Метод

This method must be called after near() or nearSphere(), since placement of the $maxDistance option depends on whether a GeoJSON point or legacy coordinates were provided for $near/$nearSphere.
См. также: http://docs.mongodb.org/manual/reference/operator/maxDistance/
public maxDistance ( float $maxDistance )
$maxDistance float

min() публичный Метод

Updates the value of the field to a specified value if the specified value is less than the current value of the field.
См. также: Builder::min()
См. также: http://docs.mongodb.org/manual/reference/operator/update/min/
public min ( mixed $value )
$value mixed

minDistance() публичный Метод

This method must be called after near() or nearSphere(), since placement of the $minDistance option depends on whether a GeoJSON point or legacy coordinates were provided for $near/$nearSphere.
См. также: http://docs.mongodb.org/manual/reference/operator/minDistance/
public minDistance ( float $minDistance )
$minDistance float

mod() публичный Метод

Specify $mod criteria for the current field.
См. также: Builder::mod()
См. также: http://docs.mongodb.org/manual/reference/operator/mod/
public mod ( float | integer $divisor, float | integer $remainder )
$divisor float | integer
$remainder float | integer

mul() публичный Метод

If the field does not exist, it will be set to 0.
См. также: Builder::mul()
См. также: http://docs.mongodb.org/manual/reference/operator/mul/
public mul ( float | integer $value )
$value float | integer

near() публичный Метод

A GeoJSON point may be provided as the first and only argument for 2dsphere queries. This single parameter may be a GeoJSON point object or an array corresponding to the point's JSON representation.
См. также: Builder::near()
См. также: http://docs.mongodb.org/manual/reference/operator/near/
public near ( float | array | GeoJson\Geometry\Point $x, float $y = null )
$x float | array | GeoJson\Geometry\Point
$y float

nearSphere() публичный Метод

A GeoJSON point may be provided as the first and only argument for 2dsphere queries. This single parameter may be a GeoJSON point object or an array corresponding to the point's JSON representation.
См. также: Builder::nearSphere()
См. также: http://docs.mongodb.org/manual/reference/operator/nearSphere/
public nearSphere ( float | array | GeoJson\Geometry\Point $x, float $y = null )
$x float | array | GeoJson\Geometry\Point
$y float

not() публичный Метод

Negates an expression for the current field.
См. также: Builder::not()
См. также: http://docs.mongodb.org/manual/reference/operator/not/
public not ( array | Expr $expression )
$expression array | Expr

notEqual() публичный Метод

Specify $ne criteria for the current field.
См. также: Builder::notEqual()
См. также: http://docs.mongodb.org/manual/reference/operator/ne/
public notEqual ( mixed $value )
$value mixed

notIn() публичный Метод

Specify $nin criteria for the current field.
См. также: Builder::notIn()
См. также: http://docs.mongodb.org/manual/reference/operator/nin/
public notIn ( array $values )
$values array

operator() публичный Метод

If there is a current field, the operator will be set on it; otherwise, the operator is set at the top level of the query.
public operator ( string $operator, mixed $value )
$operator string
$value mixed

popFirst() публичный Метод

Remove the first element from the current array field.
См. также: Builder::popFirst()
См. также: http://docs.mongodb.org/manual/reference/operator/pop/
public popFirst ( )

popLast() публичный Метод

Remove the last element from the current array field.
См. также: Builder::popLast()
См. также: http://docs.mongodb.org/manual/reference/operator/pop/
public popLast ( )

position() публичный Метод

This is useful in conjunction with {@link Expr::each()} for a {@link Expr::push()} operation.
См. также: http://docs.mongodb.org/manual/reference/operator/update/position/
public position ( integer $position )
$position integer

pull() публичный Метод

Remove all elements matching the given value or expression from the current array field.
См. также: Builder::pull()
См. также: http://docs.mongodb.org/manual/reference/operator/pull/
public pull ( mixed | Expr $valueOrExpression )
$valueOrExpression mixed | Expr

pullAll() публичный Метод

Remove all elements matching any of the given values from the current array field.
См. также: Builder::pullAll()
См. также: http://docs.mongodb.org/manual/reference/operator/pullAll/
public pullAll ( array $values )
$values array

push() публичный Метод

If the field does not exist, it will be set to an array containing the value(s) in the argument. If the field is not an array, the query will yield an error. Multiple values may be specified by providing an Expr object and using {@link Expr::each()}. {@link Expr::slice()} and {@link Expr::sort()} may also be used to limit and order array elements, respectively.
См. также: Builder::push()
См. также: http://docs.mongodb.org/manual/reference/operator/push/
См. также: http://docs.mongodb.org/manual/reference/operator/each/
См. также: http://docs.mongodb.org/manual/reference/operator/slice/
См. также: http://docs.mongodb.org/manual/reference/operator/sort/
public push ( mixed | Expr $valueOrExpression )
$valueOrExpression mixed | Expr

pushAll() публичный Метод

If the field does not exist, it will be set to an array containing the values in the argument. If the field is not an array, the query will yield an error. This operator is deprecated in MongoDB 2.4. {@link Expr::push()} and {@link Expr::each()} should be used in its place.
См. также: Builder::pushAll()
См. также: http://docs.mongodb.org/manual/reference/operator/pushAll/
public pushAll ( 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.
См. также: Builder::range()
public range ( mixed $start, mixed $end )
$start mixed
$end mixed

rename() публичный Метод

Rename the current field.
См. также: Builder::rename()
См. также: http://docs.mongodb.org/manual/reference/operator/rename/
public rename ( string $name )
$name string

set() публичный Метод

This is only relevant for insert, update, or findAndUpdate queries. For update and findAndUpdate queries, the $atomic parameter will determine whether or not a $set operator is used.
См. также: Builder::set()
См. также: http://docs.mongodb.org/manual/reference/operator/set/
public set ( mixed $value, boolean $atomic = true )
$value mixed
$atomic boolean

setNewObj() публичный Метод

Set the "new object".
См. также: Builder::setNewObj()
public setNewObj ( array $newObj )
$newObj array

setOnInsert() публичный Метод

If an update operation with upsert: true results in an insert of a document, then $setOnInsert assigns the specified values to the fields in the document. If the update operation does not result in an insert, $setOnInsert does nothing.
См. также: Builder::setOnInsert()
См. также: https://docs.mongodb.org/manual/reference/operator/update/setOnInsert/
public setOnInsert ( mixed $value )
$value mixed

setQuery() публичный Метод

Set the query criteria.
См. также: Builder::setQueryArray()
public setQuery ( array $query )
$query array

size() публичный Метод

Specify $size criteria for the current field.
См. также: Builder::size()
См. также: http://docs.mongodb.org/manual/reference/operator/size/
public size ( integer $size )
$size integer

slice() публичный Метод

This is useful in conjunction with {@link Expr::each()} for a {@link Expr::push()} operation. {@link Builder::selectSlice()} should be used for specifying $slice for a query projection.
См. также: http://docs.mongodb.org/manual/reference/operator/slice/
public slice ( integer $slice )
$slice integer

sort() публичный Метод

If sorting by multiple fields, the first argument should be an array of field name (key) and order (value) pairs. This is useful in conjunction with {@link Expr::each()} for a {@link Expr::push()} operation. {@link Builder::sort()} should be used to sort the results of a query.
См. также: http://docs.mongodb.org/manual/reference/operator/sort/
public sort ( array | string $fieldName, integer | string $order = null )
$fieldName array | string Field name or array of field/order pairs
$order integer | string Field order (if one field is specified)

text() публичный Метод

The $language option may be set with {@link Expr::language()}.
См. также: Builder::text()
См. также: http://docs.mongodb.org/master/reference/operator/query/text/
public text ( string $search )
$search string

type() публичный Метод

Specify $type criteria for the current field.
См. также: Builder::type()
См. также: http://docs.mongodb.org/manual/reference/operator/type/
public type ( integer $type )
$type integer

unsetField() публичный Метод

The field will be removed from the document (not set to null).
См. также: Builder::unsetField()
См. также: http://docs.mongodb.org/manual/reference/operator/unset/
public unsetField ( )

where() публичный Метод

Specify a JavaScript expression to use for matching documents.
См. также: Builder::where()
См. также: http://docs.mongodb.org/manual/reference/operator/where/
public where ( string | MongoCode $javascript )
$javascript string | MongoCode

withinBox() публичный Метод

Add $within criteria with a $box shape to the expression.
См. также: Expr::geoWithinBox()
См. также: http://docs.mongodb.org/manual/reference/operator/box/
Устаревший: 1.1 MongoDB 2.4 deprecated $within in favor of $geoWithin
public withinBox ( float $x1, float $y1, float $x2, float $y2 )
$x1 float
$y1 float
$x2 float
$y2 float

withinCenter() публичный Метод

Add $within criteria with a $center shape to the expression.
См. также: Expr::geoWithinCenter()
См. также: http://docs.mongodb.org/manual/reference/operator/center/
Устаревший: 1.1 MongoDB 2.4 deprecated $within in favor of $geoWithin
public withinCenter ( float $x, float $y, float $radius )
$x float
$y float
$radius float

withinCenterSphere() публичный Метод

Add $within criteria with a $centerSphere shape to the expression.
См. также: Expr::geoWithinCenterSphere()
См. также: http://docs.mongodb.org/manual/reference/operator/centerSphere/
Устаревший: 1.1 MongoDB 2.4 deprecated $within in favor of $geoWithin
public withinCenterSphere ( float $x, float $y, float $radius )
$x float
$y float
$radius float

withinPolygon() публичный Метод

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.
См. также: Expr::geoWithinPolygon()
См. также: http://docs.mongodb.org/manual/reference/operator/polygon/
Устаревший: 1.1 MongoDB 2.4 deprecated $within in favor of $geoWithin
public withinPolygon ( )

Описание свойств

$currentField защищенное свойство

The current field we are operating on.
protected string $currentField
Результат string

$newObj защищенное свойство

The "new object" array containing either a full document or a number of atomic update operators.
protected array $newObj
Результат array

$query защищенное свойство

The query criteria array.
protected string $query
Результат string