| 1 | <?php |
||
| 19 | class ContactForm extends Model |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $name; |
||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | public $email; |
||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | public $subject; |
||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | public $body; |
||
| 37 | /** |
||
| 38 | * @var |
||
| 39 | */ |
||
| 40 | public $verifyCode; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function rules() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @inheritdoc |
||
| 59 | */ |
||
| 60 | public function attributeLabels() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Sends an email to the specified email address using the information collected by this model. |
||
| 69 | * |
||
| 70 | * @param string $email the target email address |
||
| 71 | * @return boolean whether the email was sent |
||
| 72 | */ |
||
| 73 | public function sendEmail($email) |
||
| 82 | } |
||
| 83 |