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