コード例 #1
0
ファイル: Report.php プロジェクト: subashemphasize/test_site
 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);
 }
コード例 #2
0
ファイル: Report.php プロジェクト: irovast/eyedock
 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);
     }
 }