| 1 | <?php |
||
| 11 | class ContactForm extends Model |
||
| 12 | { |
||
| 13 | public $name; |
||
| 14 | public $email; |
||
| 15 | public $subject; |
||
| 16 | public $body; |
||
| 17 | public $verifyCode; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @inheritdoc |
||
| 21 | */ |
||
| 22 | public function rules() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | public function attributeLabels() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Sends an email to the specified email address using the information collected by this model. |
||
| 46 | * |
||
| 47 | * @param string $email the target email address |
||
| 48 | * @return boolean whether the email was sent |
||
| 49 | */ |
||
| 50 | public function sendEmail($email) |
||
| 59 | } |
||
| 60 |