/[drupal]/contributions/modules/views/handlers/views_handler_filter_string.inc
ViewVC logotype

Diff of /contributions/modules/views/handlers/views_handler_filter_string.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7.2.2, Tue Sep 15 16:25:52 2009 UTC revision 1.7.2.3, Tue Nov 10 23:20:05 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: views_handler_filter_string.inc,v 1.7.2.1 2009/06/25 21:48:04 merlinofchaos Exp $  // $Id: views_handler_filter_string.inc,v 1.7.2.2 2009/09/15 16:25:52 merlinofchaos Exp $
3    
4  /**  /**
5   * Basic textfield filter to handle string filtering commands   * Basic textfield filter to handle string filtering commands
# Line 300  class views_handler_filter_string extend Line 300  class views_handler_filter_string extend
300    function op_not($field, $upper) {    function op_not($field, $upper) {
301      $this->query->add_where($this->options['group'], "$upper(%s) NOT LIKE $upper('%%%s%%')", $field, $this->value);      $this->query->add_where($this->options['group'], "$upper(%s) NOT LIKE $upper('%%%s%%')", $field, $this->value);
302    }    }
303    
304    function op_shorter($field, $upper) {    function op_shorter($field, $upper) {
305      $this->query->add_where($this->options['group'], "LENGTH($upper(%s)) < %d", $field, $this->value);      $this->query->add_where($this->options['group'], "LENGTH($upper(%s)) < %d", $field, $this->value);
306    }    }

Legend:
Removed from v.1.7.2.2  
changed lines
  Added in v.1.7.2.3

  ViewVC Help
Powered by ViewVC 1.1.2