function applyQueryInterval(Am_Query $q) { $dateField = $this->getPointField(); $f = $this->quantity->getSqlExpr($dateField); $q->addField($f, self::POINT_FLD); $q->groupBy(self::POINT_FLD, ""); $q->addWhere("{$dateField} BETWEEN ? AND ?", $this->start, $this->stop); }
protected function populatePoints($start, $values) { $start = $this->quantity->getNext($start); $values = array_map(create_function('$a', 'return "";'), $values); while (empty($this->points[$start])) { $this->addPoint(new Am_Report_Point($start, $this->getQuantity()->getLabel($start))); $this->points[$start]->addValues($values); $start = $this->quantity->getNext($start); } }