Esempio n. 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;
 }