| @@ 307-317 (lines=11) @@ | ||
| 304 | ||
| 305 | $this->qBuilder->andWhere($whereCondition); |
|
| 306 | ||
| 307 | if (isset($operator['substitution_pattern'])) { |
|
| 308 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 309 | $value = explode(',', $value); |
|
| 310 | } else { |
|
| 311 | $value = str_replace( |
|
| 312 | '{string}', |
|
| 313 | $value, |
|
| 314 | $operator['substitution_pattern'] |
|
| 315 | ); |
|
| 316 | } |
|
| 317 | } |
|
| 318 | ||
| 319 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
| 320 | } else { |
|
| @@ 352-362 (lines=11) @@ | ||
| 349 | } |
|
| 350 | ||
| 351 | $this->qBuilder->andWhere($whereCondition); |
|
| 352 | if (isset($operator['substitution_pattern'])) { |
|
| 353 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 354 | $value = explode(',', $value); |
|
| 355 | } else { |
|
| 356 | $value = str_replace( |
|
| 357 | '{string}', |
|
| 358 | $value, |
|
| 359 | $operator['substitution_pattern'] |
|
| 360 | ); |
|
| 361 | } |
|
| 362 | } |
|
| 363 | ||
| 364 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
| 365 | } |
|
| @@ 421-431 (lines=11) @@ | ||
| 418 | $orCondition['orCondition'] = $whereCondition; |
|
| 419 | } |
|
| 420 | ||
| 421 | if (isset($operator['substitution_pattern'])) { |
|
| 422 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 423 | $value = explode(',', $value); |
|
| 424 | } else { |
|
| 425 | $value = str_replace( |
|
| 426 | '{string}', |
|
| 427 | $value, |
|
| 428 | $operator['substitution_pattern'] |
|
| 429 | ); |
|
| 430 | } |
|
| 431 | } |
|
| 432 | ||
| 433 | $orCondition['parameters'][] = [ |
|
| 434 | 'field' => 'field_' . $fieldName . $salt, |
|
| @@ 478-488 (lines=11) @@ | ||
| 475 | $orCondition['orCondition'] = $whereCondition; |
|
| 476 | } |
|
| 477 | ||
| 478 | if (isset($operator['substitution_pattern'])) { |
|
| 479 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 480 | $value = explode(',', $value); |
|
| 481 | } else { |
|
| 482 | $value = str_replace( |
|
| 483 | '{string}', |
|
| 484 | $value, |
|
| 485 | $operator['substitution_pattern'] |
|
| 486 | ); |
|
| 487 | } |
|
| 488 | } |
|
| 489 | ||
| 490 | $orCondition['parameters'][] = [ |
|
| 491 | 'field' => 'field_' . $fieldName . $salt, |
|