Example #1
0
 /**
  * Selects the or not 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
  * @return  Database        This Database object.
  */
 public function orNotLike($field, $match = '', $auto = TRUE)
 {
     $fields = is_array($field) ? $field : array($field => $match);
     foreach ($fields as $field => $match) {
         $this->_where[] = $this->_driver->notLike($field, $match, $auto, 'OR ', count($this->_where));
     }
     return $this;
 }