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

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

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

Метод Описание
avg ( mixed | Expr $expression1 ) : Operator 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.
excludeIdField ( boolean $exclude = true ) Shorthand method to exclude the _id field.
getExpression ( )
includeFields ( array $fields ) Shorthand method to define which fields to be included.
max ( mixed | Expr $expression1 ) : Operator 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.
min ( mixed | Expr $expression1 ) : Operator 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.
stdDevPop ( mixed | Expr $expression1 ) Calculates the population standard deviation of the input values.
stdDevSamp ( mixed | Expr $expression1 ) Calculates the sample standard deviation of the input values.
sum ( mixed | Expr $expression1 ) : Operator 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.

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

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/
См. также: Expr::avg
С версии: 1.3
public avg ( mixed | Expr $expression1 ) : Operator
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

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

Shorthand method to exclude the _id field.
public excludeIdField ( boolean $exclude = true )
$exclude boolean

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

public getExpression ( )

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

Shorthand method to define which fields to be included.
public includeFields ( array $fields )
$fields array

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/
См. также: Expr::max
С версии: 1.3
public max ( mixed | Expr $expression1 ) : Operator
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

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/
См. также: Expr::min
С версии: 1.3
public min ( mixed | Expr $expression1 ) : Operator
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

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

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

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

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

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/
См. также: Expr::sum
С версии: 1.3
public sum ( mixed | Expr $expression1 ) : Operator
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator