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