@@ 104-106 (lines=3) @@ | ||
101 | switch($this->op) |
|
102 | { |
|
103 | case 'substringof': |
|
104 | case 'contains': |
|
105 | return $this->var1.' LIKE \'%'.trim($this->var2, "'").'%\''; |
|
106 | break; |
|
107 | default: |
|
108 | return $this->var1.$this->op.$this->var2; |
|
109 | break; |
|
@@ 119-121 (lines=3) @@ | ||
116 | switch($this->op) |
|
117 | { |
|
118 | case 'substringof': |
|
119 | case 'contains': |
|
120 | $str .= $this->var1.'=*'.trim($this->var2, "'").'*'; |
|
121 | break; |
|
122 | case '!=': |
|
123 | $str .= '!('.$this->var1.'='.$this->var2.')'; |
|
124 | break; |