| @@ 159-168 (lines=10) @@ | ||
| 156 | * |
|
| 157 | * @return Swift_Mime_Header |
|
| 158 | */ |
|
| 159 | public function createIdHeader($name, $ids = null) |
|
| 160 | { |
|
| 161 | $header = new Swift_Mime_Headers_IdentificationHeader($name, $this->_emailValidator); |
|
| 162 | ||
| 163 | if (isset($ids)) { |
|
| 164 | $header->setFieldBodyModel($ids); |
|
| 165 | } |
|
| 166 | ||
| 167 | $this->_setHeaderCharset($header); |
|
| 168 | ||
| 169 | return $header; |
|
| 170 | } |
|
| 171 | ||
| @@ 180-189 (lines=10) @@ | ||
| 177 | * |
|
| 178 | * @return Swift_Mime_Header |
|
| 179 | */ |
|
| 180 | public function createPathHeader($name, $path = null) |
|
| 181 | { |
|
| 182 | $header = new Swift_Mime_Headers_PathHeader($name, $this->_emailValidator); |
|
| 183 | if (isset($path)) { |
|
| 184 | $header->setFieldBodyModel($path); |
|
| 185 | } |
|
| 186 | $this->_setHeaderCharset($header); |
|
| 187 | ||
| 188 | return $header; |
|
| 189 | } |
|
| 190 | ||
| 191 | /** |
|
| 192 | * Notify this observer that the entity's charset has changed. |
|