@@ 221-230 (lines=10) @@ | ||
218 | $ors = array(); |
|
219 | foreach ($value['value'] as $item) { |
|
220 | if ($item == 'null') { |
|
221 | switch ($value['operator']) { |
|
222 | case '!=': |
|
223 | $ors[] = $key . ' IS NOT NULL'; |
|
224 | break; |
|
225 | ||
226 | case '==': |
|
227 | default: |
|
228 | $ors[] = $key . ' IS NULL'; |
|
229 | break; |
|
230 | } |
|
231 | } else { |
|
232 | $params[] = $item; |
|
233 | $ors[] = $this->fieldCheck($key) . ' ' . $value['operator'] . ' ?'; |
|
@@ 244-253 (lines=10) @@ | ||
241 | $wheres[] = $key . ' ' . $value['operator'] . ' ?'; |
|
242 | } else { |
|
243 | if ($value['value'] === 'null') { |
|
244 | switch ($value['operator']) { |
|
245 | case '!=': |
|
246 | $wheres[] = $key . ' IS NOT NULL'; |
|
247 | break; |
|
248 | ||
249 | case '==': |
|
250 | default: |
|
251 | $wheres[] = $key . ' IS NULL'; |
|
252 | break; |
|
253 | } |
|
254 | } else { |
|
255 | $params[] = $value['value']; |
|
256 | $wheres[] = $key . ' ' . $value['operator'] . ' ?'; |