Lines Matching refs:replacements
29 protected $replacements; variable in Swift_Plugin_Decorator
50 public function __construct($replacements=null) argument
52 $this->setReplacements($replacements);
119 $replacements = (array)$this->replacements->getReplacementsFor($to);
126 $this->recursiveReplace($message, $replacements, $this->store);
134 protected function recursiveReplace(Swift_Message_Mime $mime, $replacements, &$store) argument
141 if (is_string($value) && ($replaced = $this->replace($replacements, $value)) != $value)
151 && ($att_replaced = $this->replace($replacements, $att_value)) != $att_value)
166 && is_string($body) && ($replaced = $this->replace($replacements, $body)) != $body)
180 $this->recursiveReplace($child, $replacements, $store["children"][$id]);
189 protected function replace($replacements, $value) argument
191 return str_replace(array_keys($replacements), array_values($replacements), $value);
230 public function setReplacements($replacements) argument
232 if ($replacements === null)
235 $this->replacements = new Swift_Plugin_Decorator_Replacements($r);
237 elseif (is_array($replacements))
239 $this->replacements = new Swift_Plugin_Decorator_Replacements($replacements);
241 elseif ($replacements instanceof Swift_Plugin_Decorator_Replacements)
243 $this->replacements = $replacements;
257 return $this->replacements;