ManaPHP\Mvc\Model::sum PHP Метод

sum() публичный статический Метод

How much are all robots? $sum = Robots::sum(array('column' => 'price')); echo "The total price of robots is ", $sum, "\n"; How much are mechanical robots? $sum = Robots::sum(array("type='mechanical'", 'column' => 'price')); echo "The total price of mechanical robots is ", $sum, "\n";
public static sum ( string $column, string | array $parameters = null, integer | array $cacheOptions = null ) : mixed
$column string
$parameters string | array
$cacheOptions integer | array
Результат mixed
    public static function sum($column, $parameters = null, $cacheOptions = null)
    {
        return self::_groupResult('SUM', 'summary', $column, $parameters, $cacheOptions = null);
    }