/** * Method: in * Adds a piece to the where clause where condition * Parameters: * field - the name of the column that's being checked * values - an array of values the field should be checked against * * Returns: * the Object */ function in($field, array $values) { $escaped_values = array(); foreach ($values as $v) { $escaped_values[] = $this->driver->escape_string($v); } $this->where($this->escape_column($field) . ' IN(' . implode(',', $escaped_values) .')'); return $this; }