ExpressionEngineFunction eval() order of parameters


#1

Which is correct: the example of the parameters or the listing of them?

Could someone explain why this is?


#2

There are two valid syntaxes (afaik):

eval(aggregationFunction, interval, timeseries, start, end)
aggregationFunction(eval(interval, timeseries, start, end))

Examples:

eval('SUM', 'HOUR', ConsumptionMetric, start, end)
sum(eval('HOUR', ConsumptionMetric, start, end)

Both do the same thing.