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