| @@ 264-274 (lines=11) @@ | ||
| 261 | ||
| 262 | $this->qBuilder->andWhere($whereCondition); |
|
| 263 | ||
| 264 | if (isset($operator['substitution_pattern'])) { |
|
| 265 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 266 | $value = explode(',', $value); |
|
| 267 | } else { |
|
| 268 | $value = str_replace( |
|
| 269 | '{string}', |
|
| 270 | $value, |
|
| 271 | $operator['substitution_pattern'] |
|
| 272 | ); |
|
| 273 | } |
|
| 274 | } |
|
| 275 | ||
| 276 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
| 277 | } else { |
|
| @@ 309-319 (lines=11) @@ | ||
| 306 | } |
|
| 307 | ||
| 308 | $this->qBuilder->andWhere($whereCondition); |
|
| 309 | if (isset($operator['substitution_pattern'])) { |
|
| 310 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 311 | $value = explode(',', $value); |
|
| 312 | } else { |
|
| 313 | $value = str_replace( |
|
| 314 | '{string}', |
|
| 315 | $value, |
|
| 316 | $operator['substitution_pattern'] |
|
| 317 | ); |
|
| 318 | } |
|
| 319 | } |
|
| 320 | ||
| 321 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
| 322 | } |
|
| @@ 382-392 (lines=11) @@ | ||
| 379 | $orCondition['orCondition'] = $whereCondition; |
|
| 380 | } |
|
| 381 | ||
| 382 | if (isset($operator['substitution_pattern'])) { |
|
| 383 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 384 | $value = explode(',', $value); |
|
| 385 | } else { |
|
| 386 | $value = str_replace( |
|
| 387 | '{string}', |
|
| 388 | $value, |
|
| 389 | $operator['substitution_pattern'] |
|
| 390 | ); |
|
| 391 | } |
|
| 392 | } |
|
| 393 | ||
| 394 | $orCondition['parameters'][] = [ |
|
| 395 | 'field' => 'field_' . $fieldName . $salt, |
|
| @@ 443-453 (lines=11) @@ | ||
| 440 | $orCondition['orCondition'] = $whereCondition; |
|
| 441 | } |
|
| 442 | ||
| 443 | if (isset($operator['substitution_pattern'])) { |
|
| 444 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
| 445 | $value = explode(',', $value); |
|
| 446 | } else { |
|
| 447 | $value = str_replace( |
|
| 448 | '{string}', |
|
| 449 | $value, |
|
| 450 | $operator['substitution_pattern'] |
|
| 451 | ); |
|
| 452 | } |
|
| 453 | } |
|
| 454 | ||
| 455 | $orCondition['parameters'][] = [ |
|
| 456 | 'field' => 'field_' . $fieldName . $salt, |
|