Exemple #1
0
 private function dateFilter(module_report $report)
 {
     $this->filter['date'] = false;
     $sql = "";
     if ($report->getDmin()) {
         $sql = $report->getDateField() . ">=" . $this->conn->quote($report->getDmin());
     }
     if ($report->getDmax()) {
         if ($sql != "") {
             $sql .= " AND ";
         }
         $sql .= $report->getDateField() . "<=" . $this->conn->quote($report->getDmax());
     }
     $this->filter['date'] = array('sql' => $sql, 'params' => array());
     return;
 }
Exemple #2
0
 private function dateFilter(module_report $report)
 {
     $this->filter['date'] = false;
     if ($report->getDmin() && $report->getDmax()) {
         $this->filter['date'] = ['sql' => ' (log.date > :date_min_f AND log.date < :date_max_f) ', 'params' => [':date_min_f' => $report->getDmin(), ':date_max_f' => $report->getDmax()]];
     }
     return;
 }