| @@ 245-255 (lines=11) @@ | ||
| 242 | ||
| 243 | $this->qBuilder->andWhere($whereCondition); |
|
| 244 | ||
| 245 | if (isset($operator['substitution_pattern'])) { |
|
| 246 | if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) { |
|
| 247 | $value = explode(',', $value); |
|
| 248 | } else { |
|
| 249 | $value = str_replace( |
|
| 250 | '{string}', |
|
| 251 | $value, |
|
| 252 | $operator['substitution_pattern'] |
|
| 253 | ); |
|
| 254 | } |
|
| 255 | } |
|
| 256 | ||
| 257 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
| 258 | } else { |
|
| @@ 290-300 (lines=11) @@ | ||
| 287 | } |
|
| 288 | ||
| 289 | $this->qBuilder->andWhere($whereCondition); |
|
| 290 | if (isset($operator['substitution_pattern'])) { |
|
| 291 | if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) { |
|
| 292 | $value = explode(',', $value); |
|
| 293 | } else { |
|
| 294 | $value = str_replace( |
|
| 295 | '{string}', |
|
| 296 | $value, |
|
| 297 | $operator['substitution_pattern'] |
|
| 298 | ); |
|
| 299 | } |
|
| 300 | } |
|
| 301 | ||
| 302 | $this->qBuilder->setParameter('field_' . $fieldName . $salt, $value); |
|
| 303 | } |
|
| @@ 355-365 (lines=11) @@ | ||
| 352 | $orCondition['orCondition'] = $whereCondition; |
|
| 353 | } |
|
| 354 | ||
| 355 | if (isset($operator['substitution_pattern'])) { |
|
| 356 | if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) { |
|
| 357 | $value = explode(',', $value); |
|
| 358 | } else { |
|
| 359 | $value = str_replace( |
|
| 360 | '{string}', |
|
| 361 | $value, |
|
| 362 | $operator['substitution_pattern'] |
|
| 363 | ); |
|
| 364 | } |
|
| 365 | } |
|
| 366 | ||
| 367 | $orCondition['parameters'][] = [ |
|
| 368 | 'field' => 'field_' . $fieldName . $salt, |
|
| @@ 412-422 (lines=11) @@ | ||
| 409 | $orCondition['orCondition'] = $whereCondition; |
|
| 410 | } |
|
| 411 | ||
| 412 | if (isset($operator['substitution_pattern'])) { |
|
| 413 | if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) { |
|
| 414 | $value = explode(',', $value); |
|
| 415 | } else { |
|
| 416 | $value = str_replace( |
|
| 417 | '{string}', |
|
| 418 | $value, |
|
| 419 | $operator['substitution_pattern'] |
|
| 420 | ); |
|
| 421 | } |
|
| 422 | } |
|
| 423 | ||
| 424 | $orCondition['parameters'][] = [ |
|
| 425 | 'field' => 'field_' . $fieldName . $salt, |
|