1 | <?php |
||
19 | class ContactForm extends Model |
||
20 | { |
||
21 | public $name; |
||
22 | public $email; |
||
23 | public $subject; |
||
24 | public $body; |
||
25 | public $verifyCode; |
||
26 | |||
27 | /** |
||
28 | * @return array the validation rules |
||
29 | */ |
||
30 | public function rules() |
||
41 | |||
42 | /** |
||
43 | * @return array customized attribute labels |
||
44 | */ |
||
45 | public function attributeLabels() |
||
51 | |||
52 | /** |
||
53 | * Sends an email to the specified email address using the information collected by this model. |
||
54 | * @param string $email the target email address |
||
55 | * @return boolean whether the model passes validation |
||
56 | */ |
||
57 | public function contact($email) |
||
72 | } |
||
73 |