Sum by Group
Class->sum_group_by()
Like the count_group_by method, you can select groups of sums from a MT::Object store.
my $iter = MT::Foo->sum_group_by($terms, {%args, group => $group_exprs,
avg => 'property_to_sum' })
Not a developer? Go to MovableType.com
Class->sum_group_by()
Like the count_group_by method, you can select groups of sums from a MT::Object store.
my $iter = MT::Foo->sum_group_by($terms, {%args, group => $group_exprs,
avg => 'property_to_sum' })