| @@ 271-281 (lines=11) @@ | ||
| 268 | ||
| 269 | $this->qBuilder->andWhere($whereCondition); |
|
| 270 | ||
| 271 | if (isset($operator['substitution_pattern'])) { |
|
| 272 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 273 | $value = explode(',', $value); |
|
| 274 | } else { |
|
| 275 | $value = str_replace( |
|
| 276 | '{string}', |
|
| 277 | $value, |
|
| 278 | $operator['substitution_pattern'] |
|
| 279 | ); |
|
| 280 | } |
|
| 281 | } |
|
| 282 | ||
| 283 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
| 284 | } else { |
|
| @@ 316-326 (lines=11) @@ | ||
| 313 | } |
|
| 314 | ||
| 315 | $this->qBuilder->andWhere($whereCondition); |
|
| 316 | if (isset($operator['substitution_pattern'])) { |
|
| 317 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 318 | $value = explode(',', $value); |
|
| 319 | } else { |
|
| 320 | $value = str_replace( |
|
| 321 | '{string}', |
|
| 322 | $value, |
|
| 323 | $operator['substitution_pattern'] |
|
| 324 | ); |
|
| 325 | } |
|
| 326 | } |
|
| 327 | ||
| 328 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
| 329 | } |
|
| @@ 389-399 (lines=11) @@ | ||
| 386 | $orCondition['orCondition'] = $whereCondition; |
|
| 387 | } |
|
| 388 | ||
| 389 | if (isset($operator['substitution_pattern'])) { |
|
| 390 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 391 | $value = explode(',', $value); |
|
| 392 | } else { |
|
| 393 | $value = str_replace( |
|
| 394 | '{string}', |
|
| 395 | $value, |
|
| 396 | $operator['substitution_pattern'] |
|
| 397 | ); |
|
| 398 | } |
|
| 399 | } |
|
| 400 | ||
| 401 | $orCondition['parameters'][] = [ |
|
| 402 | 'field' => 'field_' . $fieldName . $salt, |
|
| @@ 450-460 (lines=11) @@ | ||
| 447 | $orCondition['orCondition'] = $whereCondition; |
|
| 448 | } |
|
| 449 | ||
| 450 | if (isset($operator['substitution_pattern'])) { |
|
| 451 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 452 | $value = explode(',', $value); |
|
| 453 | } else { |
|
| 454 | $value = str_replace( |
|
| 455 | '{string}', |
|
| 456 | $value, |
|
| 457 | $operator['substitution_pattern'] |
|
| 458 | ); |
|
| 459 | } |
|
| 460 | } |
|
| 461 | ||
| 462 | $orCondition['parameters'][] = [ |
|
| 463 | 'field' => 'field_' . $fieldName . $salt, |
|