Core/Executor/MailExecutor.php 1 location
|
@@ 135-140 (lines=6) @@
|
| 132 |
|
|
| 133 |
|
$count = preg_match_all($regexp, $text, $matches); |
| 134 |
|
// $matches[0][] will have the matched full string eg.: [reference:example_reference] |
| 135 |
|
if ($count) { |
| 136 |
|
foreach ($matches[0] as $referenceIdentifier) { |
| 137 |
|
$reference = $this->referenceResolver->getReferenceValue(substr($referenceIdentifier, 1, -1)); |
| 138 |
|
$text = str_replace($referenceIdentifier, $reference, $text); |
| 139 |
|
} |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
return $text; |
| 143 |
|
} |
Core/FieldHandler/EzRichText.php 1 location
|
@@ 44-49 (lines=6) @@
|
| 41 |
|
|
| 42 |
|
$count = preg_match_all($regexp, $xmlText, $matches); |
| 43 |
|
// $matches[0][] will have the matched full string eg.: [reference:example_reference] |
| 44 |
|
if ($count) { |
| 45 |
|
foreach ($matches[0] as $referenceIdentifier) { |
| 46 |
|
$reference = $this->resolver->getReferenceValue(substr($referenceIdentifier, 1, -1)); |
| 47 |
|
$xmlText = str_replace($referenceIdentifier, $reference, $xmlText); |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
return $xmlText; |
| 52 |
|
} |
Core/FieldHandler/EzXmlText.php 1 location
|
@@ 48-53 (lines=6) @@
|
| 45 |
|
|
| 46 |
|
$count = preg_match_all($regexp, $xmlText, $matches); |
| 47 |
|
// $matches[0][] will have the matched full string eg.: [reference:example_reference] |
| 48 |
|
if ($count) { |
| 49 |
|
foreach ($matches[0] as $referenceIdentifier) { |
| 50 |
|
$reference = $this->resolver->getReferenceValue(substr($referenceIdentifier, 1, -1)); |
| 51 |
|
$xmlText = str_replace($referenceIdentifier, $reference, $xmlText); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
return $xmlText; |
| 56 |
|
} |