Lines Matching refs:bindingName
168 * @param String $bindingName Name of the binding to store the result value in.
171 public function setAggregate($bindingName, $aggregateFunction) { argument
172 $this->aggregates[$bindingName] = $aggregateFunction;
197 $bindingName = $data[legend];
201 if (array_key_exists($bindingName, $this->aggregates))
203 switch (strtoupper($this->aggregates[$bindingName])) {
207 $bindingValues[$bindingName] = min($data["data"]);
213 $bindingValues[$bindingName] = max($data["data"]);
219 $bindingValues[$bindingName] = array_sum($data["data"])/count($data["data"]);
225 $bindingValues[$bindingName] = array_sum($data["data"]);
243 $bindingValues[$bindingName] = $total;
248 $bindingValues[$bindingName] = reset($data["data"]);
253 $bindingValues[$bindingName] = end($data["data"]);
257 … throw new Exception('Unknown aggregation function ' . $this->aggregates[$bindingName]);