PHP 클래스 Doctrine\MongoDB\Aggregation\Expr

부터: 1.2
저자: alcaeus ([email protected])
파일 보기 프로젝트 열기: doctrine/mongodb 1 사용 예제들

공개 메소드들

메소드 설명
abs ( mixed | self $number ) Returns the absolute value of a number.
add ( mixed | self $expression1, mixed | self $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 | self $expression ) Adds one or more $and clauses to the current expression.
addOr ( array | self $expression ) Adds one or more $or clause to the current expression.
addToSet ( mixed | self $expression ) Returns an array of all unique values that results from applying an expression to each document in a group of documents that share the same group by key. Order of the elements in the output array is unspecified.
allElementsTrue ( mixed | self $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 | self $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 | self $array, mixed | self $index ) Returns the element at the specified array index.
avg ( mixed | self $expression ) Returns the average value of the numeric values that result from applying a specified expression to each document in a group of documents that share the same group by key. Ignores nun-numeric values.
ceil ( mixed | self $number ) Returns the smallest integer greater than or equal to the specified number.
cmp ( mixed | self $expression1, mixed | self $expression2 ) Compares two values and returns: -1 if the first value is less than the second.
concat ( mixed | self $expression1, mixed | self $expression2 ) Concatenates strings and returns the concatenated string.
concatArrays ( mixed | self $array1, mixed | self $array2 ) Concatenates arrays to return the concatenated array.
cond ( mixed | self $if, mixed | self $then, mixed | self $else ) Evaluates a boolean expression to return one of the two specified return expressions.
dateToString ( string $format, mixed | self $expression ) Converts a date object to a string according to a user-specified format.
dayOfMonth ( mixed | self $expression ) Returns the day of the month for a date as a number between 1 and 31.
dayOfWeek ( mixed | self $expression ) Returns the day of the week for a date as a number between 1 (Sunday) and 7 (Saturday).
dayOfYear ( mixed | self $expression ) Returns the day of the year for a date as a number between 1 and 366.
divide ( mixed | self $expression1, mixed | self $expression2 ) Divides one number by another and returns the result. The first argument is divided by the second argument.
eq ( mixed | self $expression1, mixed | self $expression2 ) Compares two values and returns whether the are equivalent.
exp ( mixed | self $exponent ) Raises Euler’s number to the specified exponent and returns the result.
expr ( ) : static Returns a new expression object
expression ( mixed | self $value ) Allows any expression to be used as a field value.
field ( string $fieldName ) Set the current field for building the expression.
filter ( mixed | self $input, mixed | self $as, mixed | self $cond ) Selects a subset of the array to return based on the specified condition.
first ( mixed | self $expression ) Returns the value that results from applying an expression to the first document in a group of documents that share the same group by key. Only meaningful when documents are in a defined order.
floor ( mixed | self $number ) Returns the largest integer less than or equal to the specified number.
getExpression ( ) : array
gt ( mixed | self $expression1, mixed | self $expression2 ) Compares two values and returns: true when the first value is greater than the second value.
gte ( mixed | self $expression1, mixed | self $expression2 ) Compares two values and returns: true when the first value is greater than or equivalent to the second value.
hour ( mixed | self $expression ) Returns the hour portion of a date as a number between 0 and 23.
ifNull ( mixed | self $expression, mixed | self $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 | self $expression ) Determines if the operand is an array. Returns a boolean.
last ( mixed | self $expression ) Returns the value that results from applying an expression to the last document in a group of documents that share the same group by a field.
let ( mixed | self $vars, mixed | self $in ) Binds variables for use in the specified expression, and returns the result of the expression.
literal ( mixed | self $value ) Returns a value without parsing. Use for values that the aggregation pipeline may interpret as an expression.
ln ( mixed | self $number ) Calculates the natural logarithm ln (i.e loge) of a number and returns the result as a double.
log ( mixed | self $number, mixed | self $base ) Calculates the log of a number in the specified base and returns the result as a double.
log10 ( mixed | self $number ) Calculates the log base 10 of a number and returns the result as a double.
lt ( mixed | self $expression1, mixed | self $expression2 ) Compares two values and returns: true when the first value is less than the second value.
lte ( mixed | self $expression1, mixed | self $expression2 ) Compares two values and returns: true when the first value is less than or equivalent to the second value.
map ( mixed | self $input, string $as, mixed | self $in ) Applies an expression to each item in an array and returns an array with the applied results.
max ( mixed | self $expression ) Returns the highest value that results from applying an expression to each document in a group of documents that share the same group by key.
meta ( $metaDataKeyword ) Returns the metadata associated with a document in a pipeline operations.
millisecond ( mixed | self $expression ) Returns the millisecond portion of a date as an integer between 0 and 999.
min ( mixed | self $expression ) Returns the lowest value that results from applying an expression to each document in a group of documents that share the same group by key.
minute ( mixed | self $expression ) Returns the minute portion of a date as a number between 0 and 59.
mod ( mixed | self $expression1, mixed | self $expression2 ) Divides one number by another and returns the remainder. The first argument is divided by the second argument.
month ( mixed | self $expression ) Returns the month of a date as a number between 1 and 12.
multiply ( mixed | self $expression1, mixed | self $expression2 ) Multiplies numbers together and returns the result.
ne ( mixed | self $expression1, mixed | self $expression2 ) Compares two values and returns: true when the values are not equivalent.
not ( mixed | self $expression ) Evaluates a boolean and returns the opposite boolean value.
pow ( mixed | self $number, mixed | self $exponent ) Raises a number to the specified exponent and returns the result.
push ( mixed | self $expression ) Returns an array of all values that result from applying an expression to each document in a group of documents that share the same group by key.
second ( mixed | self $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 | self $expression1, mixed | self $expression2 ) Takes two sets and returns an array containing the elements that only exist in the first set.
setEquals ( mixed | self $expression1, mixed | self $expression2 ) Compares two or more arrays and returns true if they have the same distinct elements and false otherwise.
setIntersection ( mixed | self $expression1, mixed | self $expression2 ) Takes two or more arrays and returns an array that contains the elements that appear in every input array.
setIsSubset ( mixed | self $expression1, mixed | self $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 | self $expression1, mixed | self $expression2 ) Takes two or more arrays and returns an array containing the elements that appear in any input array.
size ( mixed | self $expression ) Counts and returns the total the number of items in an array.
slice ( mixed | self $array, mixed | self $n, mixed | self | null $position = null ) Returns a subset of an array.
sqrt ( mixed | self $expression ) Calculates the square root of a positive number and returns the result as a double.
stdDevPop ( mixed | self $expression1 ) Calculates the population standard deviation of the input values.
stdDevSamp ( mixed | self $expression1 ) Calculates the sample standard deviation of the input values.
strcasecmp ( mixed | self $expression1, mixed | self $expression2 ) Performs case-insensitive comparison of two strings. Returns 1 if first string is “greater than” the second string.
substr ( mixed | self $string, mixed | self $start, mixed | self $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 | self $expression1, mixed | self $expression2 ) Subtracts two numbers to return the difference. The second argument is subtracted from the first argument.
sum ( mixed | self $expression ) Calculates and returns the sum of all the numeric values that result from applying a specified expression to each document in a group of documents that share the same group by key. Ignores nun-numeric values.
toLower ( mixed | self $expression ) Converts a string to lowercase, returning the result.
toUpper ( mixed | self $expression ) Converts a string to uppercase, returning the result.
trunc ( mixed | self $number ) Truncates a number to its integer.
week ( mixed | self $expression ) Returns the week of the year for a date as a number between 0 and 53.
year ( mixed | self $expression ) Returns the year portion of a date.

보호된 메소드들

메소드 설명
ensureArray ( mixed | self $expression ) : mixed Ensures an array or operator expression is converted to an array.

비공개 메소드들

메소드 설명
operator ( string $operator, array | self[] | self $expression ) Defines an operator and value on the expression.
requiresCurrentField ( string $method = null ) Ensure that a current field has been set.

메소드 상세

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/
부터: 1.3
public abs ( mixed | self $number )
$number mixed | self

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/
public add ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

addAnd() 공개 메소드

Adds one or more $and clauses to the current expression.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/and/
public addAnd ( array | self $expression )
$expression array | self

addOr() 공개 메소드

Adds one or more $or clause to the current expression.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/or/
public addOr ( array | self $expression )
$expression array | self

addToSet() 공개 메소드

AddToSet is an accumulator operation only available in the group stage.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/addToSet/
public addToSet ( mixed | self $expression )
$expression mixed | self

allElementsTrue() 공개 메소드

The expression must resolve to an array.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/allElementsTrue/
public allElementsTrue ( mixed | self $expression )
$expression mixed | self

anyElementTrue() 공개 메소드

The expression must resolve to an array.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/anyElementTrue/
public anyElementTrue ( array | self $expression )
$expression array | self

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/
부터: 1.3
public arrayElemAt ( mixed | self $array, mixed | self $index )
$array mixed | self
$index mixed | self

avg() 공개 메소드

Returns the average value of the numeric values that result from applying a specified expression to each document in a group of documents that share the same group by key. Ignores nun-numeric values.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/avg/
public avg ( mixed | self $expression )
$expression mixed | self

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/
부터: 1.3
public ceil ( mixed | self $number )
$number mixed | self

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/
public cmp ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
public concat ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
부터: 1.3
public concatArrays ( mixed | self $array1, mixed | self $array2 )
$array1 mixed | self
$array2 mixed | self

cond() 공개 메소드

The arguments can be any valid expression.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/cond/
public cond ( mixed | self $if, mixed | self $then, mixed | self $else )
$if mixed | self
$then mixed | self
$else mixed | self

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/
public dateToString ( string $format, mixed | self $expression )
$format string
$expression mixed | self

dayOfMonth() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfMonth/
public dayOfMonth ( mixed | self $expression )
$expression mixed | self

dayOfWeek() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfWeek/
public dayOfWeek ( mixed | self $expression )
$expression mixed | self

dayOfYear() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfYear/
public dayOfYear ( mixed | self $expression )
$expression mixed | self

divide() 공개 메소드

The arguments can be any valid expression as long as the resolve to numbers.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/divide/
public divide ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

ensureArray() 보호된 메소드

Ensures an array or operator expression is converted to an array.
protected ensureArray ( mixed | self $expression ) : mixed
$expression mixed | self
리턴 mixed

eq() 공개 메소드

Compares two values and returns whether the are equivalent.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/eq/
public eq ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
부터: 1.3
public exp ( mixed | self $exponent )
$exponent mixed | self

expr() 공개 메소드

Returns a new expression object
부터: 1.3
public expr ( ) : static
리턴 static

expression() 공개 메소드

Allows any expression to be used as a field value.
또한 보기: http://docs.mongodb.org/manual/meta/aggregation-quick-reference/#aggregation-expressions
public expression ( mixed | self $value )
$value mixed | self

field() 공개 메소드

Set the current field for building the expression.
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/
부터: 1.3
public filter ( mixed | self $input, mixed | self $as, mixed | self $cond )
$input mixed | self
$as mixed | self
$cond mixed | self

first() 공개 메소드

Returns the value that results from applying an expression to the first document in a group of documents that share the same group by key. Only meaningful when documents are in a defined order.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/first/
public first ( mixed | self $expression )
$expression mixed | self

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/
부터: 1.3
public floor ( mixed | self $number )
$number mixed | self

getExpression() 공개 메소드

public getExpression ( ) : array
리턴 array

gt() 공개 메소드

false when the first value is less than or equivalent to the second value.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/gt/
public gt ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

gte() 공개 메소드

false when the first value is less than the second value.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/gte/
public gte ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

hour() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/hour/
public hour ( mixed | self $expression )
$expression mixed | self

ifNull() 공개 메소드

The arguments can be any valid expression.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/ifNull/
public ifNull ( mixed | self $expression, mixed | self $replacementExpression )
$expression mixed | self
$replacementExpression mixed | self

isArray() 공개 메소드

The can be any valid expression.
또한 보기: https://docs.mongodb.org/manual/reference/operator/aggregation/isArray/
부터: 1.3
public isArray ( mixed | self $expression )
$expression mixed | self

last() 공개 메소드

Only meaningful when documents are in a defined order.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/last/
public last ( mixed | self $expression )
$expression mixed | self

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/
public let ( mixed | self $vars, mixed | self $in )
$vars mixed | self 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 | self 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/
public literal ( mixed | self $value )
$value mixed | self

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/
부터: 1.3
public ln ( mixed | self $number )
$number mixed | self

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/
부터: 1.3
public log ( mixed | self $number, mixed | self $base )
$number mixed | self
$base mixed | self

log10() 공개 메소드

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/log10/
부터: 1.3
public log10 ( mixed | self $number )
$number mixed | self

lt() 공개 메소드

false when the first value is greater than or equivalent to the second value.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/lt/
public lt ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

lte() 공개 메소드

false when the first value is greater than the second value.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/lte/
public lte ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
public map ( mixed | self $input, string $as, mixed | self $in )
$input mixed | self 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 | self The expression to apply to each item in the input array. The expression accesses the item by its variable name.

max() 공개 메소드

Returns the highest value that results from applying an expression to each document in a group of documents that share the same group by key.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/max/
public max ( mixed | self $expression )
$expression mixed | self

meta() 공개 메소드

Returns the metadata associated with a document in a pipeline operations.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/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/
public millisecond ( mixed | self $expression )
$expression mixed | self

min() 공개 메소드

Returns the lowest value that results from applying an expression to each document in a group of documents that share the same group by key.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/min/
public min ( mixed | self $expression )
$expression mixed | self

minute() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/minute/
public minute ( mixed | self $expression )
$expression mixed | self

mod() 공개 메소드

The arguments can be any valid expression as long as they resolve to numbers.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/mod/
public mod ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

month() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/month/
public month ( mixed | self $expression )
$expression mixed | self

multiply() 공개 메소드

The arguments can be any valid expression as long as they resolve to numbers.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/multiply/
public multiply ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

ne() 공개 메소드

false when the values are equivalent.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/ne/
public ne ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

not() 공개 메소드

Evaluates a boolean and returns the opposite boolean value.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/not/
public not ( mixed | self $expression )
$expression mixed | self

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/
부터: 1.3
public pow ( mixed | self $number, mixed | self $exponent )
$number mixed | self
$exponent mixed | self

push() 공개 메소드

Returns an array of all values that result from applying an expression to each document in a group of documents that share the same group by key.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/push/
public push ( mixed | self $expression )
$expression mixed | self

second() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/second/
public second ( mixed | self $expression )
$expression mixed | self

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/
public setDifference ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
public setEquals ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
public setIntersection ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
public setIsSubset ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
public setUnion ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

size() 공개 메소드

The argument can be any expression as long as it resolves to an array.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/size/
public size ( mixed | self $expression )
$expression mixed | self

slice() 공개 메소드

Returns a subset of an array.
또한 보기: https://docs.mongodb.org/manual/reference/operator/aggregation/slice/
부터: 1.3
public slice ( mixed | self $array, mixed | self $n, mixed | self | null $position = null )
$array mixed | self
$n mixed | self
$position mixed | self | 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/
public sqrt ( mixed | self $expression )
$expression mixed | self

stdDevPop() 공개 메소드

The arguments can be any expression as long as it resolves to an array.
또한 보기: https://docs.mongodb.org/manual/reference/operator/aggregation/stdDevPop/
부터: 1.3
public stdDevPop ( mixed | self $expression1 )
$expression1 mixed | self

stdDevSamp() 공개 메소드

The arguments can be any expression as long as it resolves to an array.
또한 보기: https://docs.mongodb.org/manual/reference/operator/aggregation/stdDevSamp/
부터: 1.3
public stdDevSamp ( mixed | self $expression1 )
$expression1 mixed | self

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/
public strcasecmp ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

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/
public substr ( mixed | self $string, mixed | self $start, mixed | self $length )
$string mixed | self
$start mixed | self
$length mixed | self

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/
public subtract ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self

sum() 공개 메소드

Calculates and returns the sum of all the numeric values that result from applying a specified expression to each document in a group of documents that share the same group by key. Ignores nun-numeric values.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/sum/
public sum ( mixed | self $expression )
$expression mixed | self

toLower() 공개 메소드

The argument can be any expression as long as it resolves to a string.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/toLower/
public toLower ( mixed | self $expression )
$expression mixed | self

toUpper() 공개 메소드

The argument can be any expression as long as it resolves to a string.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/toUpper/
public toUpper ( mixed | self $expression )
$expression mixed | self

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/
부터: 1.3
public trunc ( mixed | self $number )
$number mixed | self

week() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/week/
public week ( mixed | self $expression )
$expression mixed | self

year() 공개 메소드

The argument can be any expression as long as it resolves to a date.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/year/
public year ( mixed | self $expression )
$expression mixed | self