Метод |
Описание |
|
convertToArray ( mixed $mixed ) : array |
Transform expression in different formats to canonical array form |
|
expression ( ) : Expression |
Create new instance of expression |
|
intersects ( string $field, GeoJson\Geometry\Geometry $geometry ) : Expression |
Selects documents whose geospatial data intersects with a specified
GeoJSON object; i.e. where the intersection of the data and the
specified object is non-empty. This includes cases where the data
and the specified object share an edge. Uses spherical geometry. |
|
merge ( Expression $expression ) |
|
|
nearPoint ( string $field, float $longitude, float $latitude, integer | array $distance ) : Expression |
Find document near points in flat surface |
|
nearPointSpherical ( string $field, float $longitude, float $latitude, integer | array $distance ) : Expression |
Find document near points in spherical surface |
|
toArray ( ) |
|
|
where ( $field, $value ) : Cursor | Expression |
Return a expression |
|
whereAll ( string $field, array $values ) : Expression |
Find documents where the value of a field is an array
that contains all the specified elements. |
|
whereAnd ( array | Expression $expressions = null ) : Expression |
Select the documents that satisfy all the expressions in the array |
|
whereAny ( string $field, array $values ) : Expression |
Find documents where the value of a field is an array
that contains any of the specified elements. |
|
whereArray ( $field ) |
|
|
whereArrayOfArrays ( $field ) |
|
|
whereArraySize ( string $field, integer $length ) : Expression |
Selects documents if the array field is a specified size. |
|
whereBoolean ( $field ) |
|
|
whereDate ( $field ) |
|
|
whereDouble ( $field ) |
|
|
whereElemMatch ( string $field, Expression | callable | array $expression ) : Expression |
Matches documents in a collection that contain an array field with at
least one element that matches all the specified query criteria. |
|
whereElemNotMatch ( type $field, Expression | callable | array $expression ) : Expression |
Matches documents in a collection that contain an array field with elements
that do not matches all the specified query criteria. |
|
whereEmpty ( $field ) |
|
|
whereExists ( $field ) |
|
|
whereGreater ( $field, $value ) |
|
|
whereGreaterOrEqual ( $field, $value ) |
|
|
whereHasType ( $field, $type ) |
|
|
whereIn ( string $field, array $values ) : Expression |
Selects the documents where the value of a
field equals any value in the specified array. |
|
whereJsCondition ( $condition ) |
|
|
whereLess ( $field, $value ) |
|
|
whereLessOrEqual ( $field, $value ) |
|
|
whereLike ( $field, $regex, $caseInsensitive = true ) |
|
|
whereMod ( string $field, integer $divisor, integer $remainder ) |
Select documents where the value of a field divided by a divisor has the specified remainder (i.e. perform a modulo operation to select documents) |
|
whereNoneOf ( string $field, array $values ) : Expression |
Find documents where the value of a field is an array
that contains none of the specified elements. |
|
whereNor ( array | Expression $expressions = null ) : Expression |
Selects the documents that fail all the query expressions in the array |
|
whereNot ( Expression $expression ) |
|
|
whereNotEmpty ( $field ) |
|
|
whereNotEqual ( $field, $value ) |
|
|
whereNotExists ( $field ) |
|
|
whereNotIn ( $field, array $values ) |
|
|
whereNull ( $field ) |
|
|
whereObject ( $field ) |
|
|
whereObjectId ( $field ) |
|
|
whereOr ( array | Expression $expressions = null ) : Expression |
Selects the documents that satisfy at least one of the expressions |
|
whereString ( $field ) |
|
|
whereText ( $search, $language = null, boolean | false $caseSensitive = null, boolean | false $diacriticSensitive = null ) |
Perform fulltext search |
|
within ( string $field, GeoJson\Geometry\Geometry $geometry ) : Expression |
Selects documents with geospatial data that exists entirely within a specified shape. |
|
withinBox ( string $field, array $bottomLeftCoordinate, array $upperRightCoordinate ) : Expression |
Return documents that are within the bounds of the rectangle, according
to their point-based location data. |
|
withinCircle ( string $field, float $longitude, float $latitude, float $radius ) : Expression |
Select documents with geospatial data within circle defined
by center point and radius in flat surface |
|
withinCircleSpherical ( string $field, float $longitude, float $latitude, float $radiusInRadians ) : Expression |
Select documents with geospatial data within circle defined
by center point and radius in spherical surface |
|
withinPolygon ( string $field, array $points ) : Expression |
Return documents that are within the polygon, according
to their point-based location data. |
|