Example #1
0
 /**
  * like (var%)
  */
 function set_like_filter($key, $value, $op = self::CONNECTOR_AND, $format = '%s%%')
 {
     if (false !== $key) {
         if (!empty($value)) {
             $this->filters[$key] = array('value' => 'LIKE \'' . sprintf($format, $this->collection->get_db()->escape($value)) . '\'', 'op' => $op, 'raw' => true);
         }
         $this->filters[$key] = $value;
     }
     return $this;
 }