@@ -197,6 +197,10 @@ discard block |
||
| 197 | 197 | Deprecation::notice('4.0', 'Use "emailbouncehandler" module'); |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | + /** |
|
| 201 | + * @param string $filename |
|
| 202 | + * @param string $mimetype |
|
| 203 | + */ |
|
| 200 | 204 | public function attachFile($filename, $attachedFilename = null, $mimetype = null) { |
| 201 | 205 | if(!$attachedFilename) $attachedFilename = basename($filename); |
| 202 | 206 | $absoluteFileName = Director::getAbsFile($filename); |
@@ -372,6 +376,9 @@ discard block |
||
| 372 | 376 | return $this->ss_template; |
| 373 | 377 | } |
| 374 | 378 | |
| 379 | + /** |
|
| 380 | + * @return ViewableData |
|
| 381 | + */ |
|
| 375 | 382 | protected function templateData() { |
| 376 | 383 | if($this->template_data) { |
| 377 | 384 | return $this->template_data->customise(array( |
@@ -454,6 +461,7 @@ discard block |
||
| 454 | 461 | |
| 455 | 462 | /** |
| 456 | 463 | * Validates the email address. Returns true of false |
| 464 | + * @param string $address |
|
| 457 | 465 | * @return mixed |
| 458 | 466 | */ |
| 459 | 467 | public static function validEmailAddress($address) { |
@@ -676,8 +684,8 @@ discard block |
||
| 676 | 684 | /** |
| 677 | 685 | * Checks for RFC822-valid email format. |
| 678 | 686 | * |
| 679 | - * @param string $str |
|
| 680 | - * @return boolean |
|
| 687 | + * @param string $email |
|
| 688 | + * @return integer |
|
| 681 | 689 | * |
| 682 | 690 | * @copyright Cal Henderson <[email protected]> |
| 683 | 691 | * This code is licensed under a Creative Commons Attribution-ShareAlike 2.5 License |