PHP Класс Doctrine\MongoDB\Aggregation\Stage\Operator

С версии: 1.2
Автор: alcaeus ([email protected])
Наследование: extends Doctrine\MongoDB\Aggregation\Stage
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$expr Doctrine\MongoDB\Aggregation\Expr

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

Метод Описание
__construct ( Builder $builder )
abs ( mixed | Expr $number ) Returns the absolute value of a number.
add ( mixed | Expr $expression1, mixed | Expr $expression2 ) Adds numbers together or adds numbers and a date. If one of the arguments is a date, $add treats the other arguments as milliseconds to add to the date.
addAnd ( array | Expr $expression ) Add one or more $and clauses to the current expression.
addOr ( array | Expr $expression ) Add one or more $or clauses to the current expression.
allElementsTrue ( mixed | Expr $expression ) Evaluates an array as a set and returns true if no element in the array is false. Otherwise, returns false. An empty array returns true.
anyElementTrue ( array | Expr $expression ) Evaluates an array as a set and returns true if any of the elements are true and false otherwise. An empty array returns false.
arrayElemAt ( mixed | Expr $array, mixed | Expr $index ) Returns the element at the specified array index.
ceil ( mixed | Expr $number ) Returns the smallest integer greater than or equal to the specified number.
cmp ( mixed | Expr $expression1, mixed | Expr $expression2 ) Compares two values and returns: -1 if the first value is less than the second.
concat ( mixed | Expr $expression1, mixed | Expr $expression2 ) Concatenates strings and returns the concatenated string.
concatArrays ( mixed | Expr $array1, mixed | Expr $array2 ) Concatenates arrays to return the concatenated array.
cond ( mixed | Expr $if, mixed | Expr $then, mixed | Expr $else ) Evaluates a boolean expression to return one of the two specified return expressions.
dateToString ( string $format, mixed | Expr $expression ) Converts a date object to a string according to a user-specified format.
dayOfMonth ( mixed | Expr $expression ) Returns the day of the month for a date as a number between 1 and 31.
dayOfWeek ( mixed | Expr $expression ) Returns the day of the week for a date as a number between 1 (Sunday) and 7 (Saturday).
dayOfYear ( mixed | Expr $expression ) Returns the day of the year for a date as a number between 1 and 366.
divide ( mixed | Expr $expression1, mixed | Expr $expression2 ) Divides one number by another and returns the result. The first argument is divided by the second argument.
eq ( mixed | Expr $expression1, mixed | Expr $expression2 ) Compares two values and returns whether they are equivalent.
exp ( mixed | Expr $exponent ) Raises Euler’s number to the specified exponent and returns the result.
expression ( mixed | Expr $value ) Used to use an expression as field value. Can be any expression
field ( string $fieldName ) Set the current field for building the expression.
filter ( mixed | Expr $input, mixed | Expr $as, mixed | Expr $cond ) Selects a subset of the array to return based on the specified condition.
floor ( mixed | Expr $number ) Returns the largest integer less than or equal to the specified number.
gt ( mixed | Expr $expression1, mixed | Expr $expression2 ) Compares two values and returns: true when the first value is greater than the second value.
gte ( mixed | Expr $expression1, mixed | Expr $expression2 ) Compares two values and returns: true when the first value is greater than or equivalent to the second value.
hour ( mixed | Expr $expression ) Returns the hour portion of a date as a number between 0 and 23.
ifNull ( mixed | Expr $expression, mixed | Expr $replacementExpression ) Evaluates an expression and returns the value of the expression if the expression evaluates to a non-null value. If the expression evaluates to a null value, including instances of undefined values or missing fields, returns the value of the replacement expression.
isArray ( mixed | Expr $expression ) Determines if the operand is an array. Returns a boolean.
let ( mixed | Expr $vars, mixed | Expr $in ) Binds variables for use in the specified expression, and returns the result of the expression.
literal ( mixed | Expr $value ) Returns a value without parsing. Use for values that the aggregation pipeline may interpret as an expression.
ln ( mixed | Expr $number ) Calculates the natural logarithm ln (i.e loge) of a number and returns the result as a double.
log ( mixed | Expr $number, mixed | Expr $base ) Calculates the log of a number in the specified base and returns the result as a double.
log10 ( mixed | Expr $number ) Calculates the log base 10 of a number and returns the result as a double.
lt ( mixed | Expr $expression1, mixed | Expr $expression2 ) Compares two values and returns: true when the first value is less than the second value.
lte ( mixed | Expr $expression1, mixed | Expr $expression2 ) Compares two values and returns: true when the first value is less than or equivalent to the second value.
map ( mixed | Expr $input, string $as, mixed | Expr $in ) Applies an expression to each item in an array and returns an array with the applied results.
meta ( $metaDataKeyword ) Returns the metadata associated with a document in a pipeline operations.
millisecond ( mixed | Expr $expression ) Returns the millisecond portion of a date as an integer between 0 and 999.
minute ( mixed | Expr $expression ) Returns the minute portion of a date as a number between 0 and 59.
mod ( mixed | Expr $expression1, mixed | Expr $expression2 ) Divides one number by another and returns the remainder. The first argument is divided by the second argument.
month ( mixed | Expr $expression ) Returns the month of a date as a number between 1 and 12.
multiply ( mixed | Expr $expression1, mixed | Expr $expression2 ) Multiplies numbers together and returns the result.
ne ( mixed | Expr $expression1, mixed | Expr $expression2 ) Compares two values and returns: true when the values are not equivalent.
not ( mixed | Expr $expression ) Evaluates a boolean and returns the opposite boolean value.
pow ( mixed | Expr $number, mixed | Expr $exponent ) Raises a number to the specified exponent and returns the result.
second ( mixed | Expr $expression ) Returns the second portion of a date as a number between 0 and 59, but can be 60 to account for leap seconds.
setDifference ( mixed | Expr $expression1, mixed | Expr $expression2 ) Takes two sets and returns an array containing the elements that only exist in the first set.
setEquals ( mixed | Expr $expression1, mixed | Expr $expression2 ) Compares two or more arrays and returns true if they have the same distinct elements and false otherwise.
setIntersection ( mixed | Expr $expression1, mixed | Expr $expression2 ) Takes two or more arrays and returns an array that contains the elements that appear in every input array.
setIsSubset ( mixed | Expr $expression1, mixed | Expr $expression2 ) Takes two arrays and returns true when the first array is a subset of the second, including when the first array equals the second array, and false otherwise.
setUnion ( mixed | Expr $expression1, mixed | Expr $expression2 ) Takes two or more arrays and returns an array containing the elements that appear in any input array.
size ( mixed | Expr $expression ) Counts and returns the total the number of items in an array.
slice ( mixed | Expr $array, mixed | Expr $n, mixed | Expr | null $position = null ) Returns a subset of an array.
sqrt ( mixed | Expr $expression ) Calculates the square root of a positive number and returns the result as a double.
strcasecmp ( mixed | Expr $expression1, mixed | Expr $expression2 ) Performs case-insensitive comparison of two strings. Returns 1 if first string is “greater than” the second string.
substr ( mixed | Expr $string, mixed | Expr $start, mixed | Expr $length ) Returns a substring of a string, starting at a specified index position and including the specified number of characters. The index is zero-based.
subtract ( mixed | Expr $expression1, mixed | Expr $expression2 ) Subtracts two numbers to return the difference. The second argument is subtracted from the first argument.
toLower ( mixed | Expr $expression ) Converts a string to lowercase, returning the result.
toUpper ( mixed | Expr $expression ) Converts a string to uppercase, returning the result.
trunc ( mixed | Expr $number ) Truncates a number to its integer.
week ( mixed | Expr $expression ) Returns the week of the year for a date as a number between 0 and 53.
year ( mixed | Expr $expression ) Returns the year portion of a date.

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

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

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

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

The argument can be any valid expression as long as it resolves to a number.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/abs/
См. также: Expr::abs
С версии: 1.3
public abs ( mixed | Expr $number )
$number mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they resolve to either all numbers or to numbers and a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/add/
См. также: Expr::add
public add ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

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

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

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

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

The expression must resolve to an array.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/allElementsTrue/
См. также: Expr::allElementsTrue
public allElementsTrue ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression must resolve to an array.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/anyElementTrue/
См. также: Expr::anyElementTrue
public anyElementTrue ( array | Expr $expression )
$expression array | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to an array. The expression can be any valid expression as long as it resolves to an integer.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/arrayElemAt/
См. также: Expr::arrayElemAt
С версии: 1.3
public arrayElemAt ( mixed | Expr $array, mixed | Expr $index )
$array mixed | Doctrine\MongoDB\Aggregation\Expr
$index mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to a number.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/ceil/
См. также: Expr::ceil
С версии: 1.3
public ceil ( mixed | Expr $number )
$number mixed | Doctrine\MongoDB\Aggregation\Expr

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

1 if the first value is greater than the second. 0 if the two values are equivalent.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/cmp/
См. также: Expr::cmp
public cmp ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they resolve to strings. If the argument resolves to a value of null or refers to a field that is missing, $concat returns null.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/concat/
См. также: Expr::concat
public concat ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expressions can be any valid expression as long as they resolve to an array.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/concatArrays/
См. также: Expr::concatArrays
С версии: 1.3
public concatArrays ( mixed | Expr $array1, mixed | Expr $array2 )
$array1 mixed | Doctrine\MongoDB\Aggregation\Expr
$array2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/cond/
См. также: Expr::cond
public cond ( mixed | Expr $if, mixed | Expr $then, mixed | Expr $else )
$if mixed | Doctrine\MongoDB\Aggregation\Expr
$then mixed | Doctrine\MongoDB\Aggregation\Expr
$else mixed | Doctrine\MongoDB\Aggregation\Expr

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

The format string can be any string literal, containing 0 or more format specifiers. The date argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/dateToString/
См. также: Expr::dateToString
public dateToString ( string $format, mixed | Expr $expression )
$format string
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfMonth/
См. также: Expr::dayOfMonth
public dayOfMonth ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfWeek/
См. также: Expr::dayOfWeek
public dayOfWeek ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfYear/
См. также: Expr::dayOfYear
public dayOfYear ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as the resolve to numbers.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/divide/
См. также: Expr::divide
public divide ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

Compares two values and returns whether they are equivalent.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/eq/
См. также: Expr::eq
public eq ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to a number.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/exp/
См. также: Expr::exp
С версии: 1.3
public exp ( mixed | Expr $exponent )
$exponent mixed | Doctrine\MongoDB\Aggregation\Expr

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

Used to use an expression as field value. Can be any expression
См. также: http://docs.mongodb.org/manual/meta/aggregation-quick-reference/#aggregation-expressions
См. также: Expr::expression
public expression ( mixed | Expr $value )
$value mixed | Doctrine\MongoDB\Aggregation\Expr

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

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

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

Returns an array with only those elements that match the condition. The returned elements are in the original order.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/filter/
См. также: Expr::filter
С версии: 1.3
public filter ( mixed | Expr $input, mixed | Expr $as, mixed | Expr $cond )
$input mixed | Doctrine\MongoDB\Aggregation\Expr
$as mixed | Doctrine\MongoDB\Aggregation\Expr
$cond mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to a number.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/floor/
См. также: Expr::floor
С версии: 1.3
public floor ( mixed | Expr $number )
$number mixed | Doctrine\MongoDB\Aggregation\Expr

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

false when the first value is less than or equivalent to the second value.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/gt/
См. также: Expr::gt
public gt ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

false when the first value is less than the second value.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/gte/
См. также: Expr::gte
public gte ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/hour/
См. также: Expr::hour
public hour ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/ifNull/
См. также: Expr::ifNull
public ifNull ( mixed | Expr $expression, mixed | Expr $replacementExpression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
$replacementExpression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The can be any valid expression.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/isArray/
См. также: Expr::isArray
С версии: 1.3
public isArray ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

Binds variables for use in the specified expression, and returns the result of the expression.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/let/
См. также: Expr::let
public let ( mixed | Expr $vars, mixed | Expr $in )
$vars mixed | Doctrine\MongoDB\Aggregation\Expr Assignment block for the variables accessible in the in expression. To assign a variable, specify a string for the variable name and assign a valid expression for the value.
$in mixed | Doctrine\MongoDB\Aggregation\Expr The expression to evaluate.

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

Returns a value without parsing. Use for values that the aggregation pipeline may interpret as an expression.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/literal/
См. также: Expr::literal
public literal ( mixed | Expr $value )
$value mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to a non-negative number.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/log/
См. также: Expr::ln
С версии: 1.3
public ln ( mixed | Expr $number )
$number mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to a non-negative number. The expression can be any valid expression as long as it resolves to a positive number greater than 1.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/log/
См. также: Expr::log
С версии: 1.3
public log ( mixed | Expr $number, mixed | Expr $base )
$number mixed | Doctrine\MongoDB\Aggregation\Expr
$base mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to a non-negative number. The expression can be any valid expression as long as it resolves to a positive number greater than 1.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/log/
См. также: Expr::log10
С версии: 1.3
public log10 ( mixed | Expr $number )
$number mixed | Doctrine\MongoDB\Aggregation\Expr

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

false when the first value is greater than or equivalent to the second value.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/lt/
См. также: Expr::lt
public lt ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

false when the first value is greater than the second value.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/lte/
См. также: Expr::lte
public lte ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

Applies an expression to each item in an array and returns an array with the applied results.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/map/
См. также: Expr::map
public map ( mixed | Expr $input, string $as, mixed | Expr $in )
$input mixed | Doctrine\MongoDB\Aggregation\Expr An expression that resolves to an array.
$as string The variable name for the items in the input array. The in expression accesses each item in the input array by this variable.
$in mixed | Doctrine\MongoDB\Aggregation\Expr The expression to apply to each item in the input array. The expression accesses the item by its variable name.

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

Returns the metadata associated with a document in a pipeline operations.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/meta/
См. также: Expr::meta
public meta ( $metaDataKeyword )
$metaDataKeyword

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/millisecond/
См. также: Expr::millisecond
public millisecond ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/minute/
См. также: Expr::minute
public minute ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they resolve to numbers.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/mod/
См. также: Expr::mod
public mod ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/month/
См. также: Expr::month
public month ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they resolve to numbers.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/multiply/
См. также: Expr::multiply
public multiply ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

false when the values are equivalent.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/ne/
См. также: Expr::ne
public ne ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

Evaluates a boolean and returns the opposite boolean value.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/not/
См. также: Expr::not
public not ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to a non-negative number. The expression can be any valid expression as long as it resolves to a number.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/pow/
См. также: Expr::pow
С версии: 1.3
public pow ( mixed | Expr $number, mixed | Expr $exponent )
$number mixed | Doctrine\MongoDB\Aggregation\Expr
$exponent mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/second/
См. также: Expr::second
public second ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they each resolve to an array.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/setDifference/
См. также: Expr::setDifference
public setDifference ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they each resolve to an array.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/setEquals/
См. также: Expr::setEquals
public setEquals ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they each resolve to an array.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/setIntersection/
См. также: Expr::setIntersection
public setIntersection ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they each resolve to an array.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/setIsSubset/
См. также: Expr::setIsSubset
public setIsSubset ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they each resolve to an array.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/setUnion/
См. также: Expr::setUnion
public setUnion ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to an array.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/size/
См. также: Expr::size
public size ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

Returns a subset of an array.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/slice/
См. также: Expr::slice
С версии: 1.3
public slice ( mixed | Expr $array, mixed | Expr $n, mixed | Expr | null $position = null )
$array mixed | Doctrine\MongoDB\Aggregation\Expr
$n mixed | Doctrine\MongoDB\Aggregation\Expr
$position mixed | Doctrine\MongoDB\Aggregation\Expr | null

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

The argument can be any valid expression as long as it resolves to a non-negative number.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/sqrt/
См. также: Expr::sqrt
public sqrt ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

0 if the two strings are equal. -1 if the first string is “less than” the second string. The arguments can be any valid expression as long as they resolve to strings.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/strcasecmp/
См. также: Expr::strcasecmp
public strcasecmp ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as long as the first argument resolves to a string, and the second and third arguments resolve to integers.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/substr/
См. также: Expr::substr
public substr ( mixed | Expr $string, mixed | Expr $start, mixed | Expr $length )
$string mixed | Doctrine\MongoDB\Aggregation\Expr
$start mixed | Doctrine\MongoDB\Aggregation\Expr
$length mixed | Doctrine\MongoDB\Aggregation\Expr

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

The arguments can be any valid expression as long as they resolve to numbers and/or dates.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/subtract/
См. также: Expr::subtract
public subtract ( mixed | Expr $expression1, mixed | Expr $expression2 )
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
$expression2 mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a string.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/toLower/
См. также: Expr::toLower
public toLower ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a string.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/toUpper/
См. также: Expr::toUpper
public toUpper ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The expression can be any valid expression as long as it resolves to a number.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/trunc/
См. также: Expr::trunc
С версии: 1.3
public trunc ( mixed | Expr $number )
$number mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/week/
См. также: Expr::week
public week ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

The argument can be any expression as long as it resolves to a date.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/year/
См. также: Expr::year
public year ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

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

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

protected Expr,Doctrine\MongoDB\Aggregation $expr
Результат Doctrine\MongoDB\Aggregation\Expr