Exemplo n.º 1
0
 public function filterByManufacturers($IDs)
 {
     $IDs = is_array($IDs) ? $IDs : ($IDs ? array($IDs) : array());
     foreach ($IDs as $i => $id) {
         $IDs[$i] = Manufacturer::toID($id);
     }
     if (!empty($IDs)) {
         $this->sqlWhere['manufacturer_id IN (' . implode(',', $IDs) . ')'] = 1;
     }
 }