@@ 268-278 (lines=11) @@ | ||
265 | ||
266 | $this->qBuilder->andWhere($whereCondition); |
|
267 | ||
268 | if (isset($operator['substitution_pattern'])) { |
|
269 | if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) { |
|
270 | $value = explode(',', $value); |
|
271 | } else { |
|
272 | $value = str_replace( |
|
273 | '{string}', |
|
274 | $value, |
|
275 | $operator['substitution_pattern'] |
|
276 | ); |
|
277 | } |
|
278 | } |
|
279 | ||
280 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
281 | } else { |
|
@@ 313-323 (lines=11) @@ | ||
310 | } |
|
311 | ||
312 | $this->qBuilder->andWhere($whereCondition); |
|
313 | if (isset($operator['substitution_pattern'])) { |
|
314 | if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) { |
|
315 | $value = explode(',', $value); |
|
316 | } else { |
|
317 | $value = str_replace( |
|
318 | '{string}', |
|
319 | $value, |
|
320 | $operator['substitution_pattern'] |
|
321 | ); |
|
322 | } |
|
323 | } |
|
324 | ||
325 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
326 | } |
|
@@ 374-384 (lines=11) @@ | ||
371 | $orCondition['orCondition'] = $whereCondition; |
|
372 | } |
|
373 | ||
374 | if (isset($operator['substitution_pattern'])) { |
|
375 | if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) { |
|
376 | $value = explode(',', $value); |
|
377 | } else { |
|
378 | $value = str_replace( |
|
379 | '{string}', |
|
380 | $value, |
|
381 | $operator['substitution_pattern'] |
|
382 | ); |
|
383 | } |
|
384 | } |
|
385 | ||
386 | $orCondition['parameters'][] = [ |
|
387 | 'field' => 'field_' . $fieldName . $salt, |
|
@@ 431-441 (lines=11) @@ | ||
428 | $orCondition['orCondition'] = $whereCondition; |
|
429 | } |
|
430 | ||
431 | if (isset($operator['substitution_pattern'])) { |
|
432 | if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) { |
|
433 | $value = explode(',', $value); |
|
434 | } else { |
|
435 | $value = str_replace( |
|
436 | '{string}', |
|
437 | $value, |
|
438 | $operator['substitution_pattern'] |
|
439 | ); |
|
440 | } |
|
441 | } |
|
442 | ||
443 | $orCondition['parameters'][] = [ |
|
444 | 'field' => 'field_' . $fieldName . $salt, |