/** * Selects the or like(s) for a database query. * * @param string|array field name or array of field => match pairs * @param string like value to match with field * @param boolean automatically add starting and ending wildcards * @return Database This Database object. */ public function orLike($field, $match = '', $auto = TRUE) { $fields = is_array($field) ? $field : array($field => $match); foreach ($fields as $field => $match) { $this->_where[] = $this->_driver->like($field, $match, $auto, 'OR ', count($this->_where)); } return $this; }