Esempio n. 1
0
 public function addFilter(&$query, $id, $active, $email, $date, $date_symbol)
 {
     if ($id !== NULL) {
         $query .= " AND id = '" . DataHandler::forceInt($id) . "'";
     }
     if ($active !== NULL) {
         $query .= " AND `active` = '" . DataHandler::forceInt($active) . "'";
     }
     if ($email !== NULL) {
         $query .= " AND `email` = '" . DataHandler::forceString($email) . "'";
     }
     if ($date !== NULL) {
         $date_symbol = parent::compareSimble($date_symbol);
         $date = parent::dateHandlerScape(DataHandler::convertDateToDB($date));
         $query .= " AND `date` {$date_symbol} {$date} ";
     }
 }