EliteConf
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
test
protected
models
ContactForm.php
Go to the documentation of this file.
1
<?php
2
8
class
ContactForm
extends
CFormModel
9
{
10
public
$name
;
11
public
$email
;
12
public
$subject
;
13
public
$body
;
14
public
$verifyCode
;
15
19
public
function
rules
()
20
{
21
return
array(
22
// name, email, subject and body are required
23
array(
'name, email, subject, body'
,
'required'
),
24
// email has to be a valid email address
25
array(
'email'
,
'email'
),
26
// verifyCode needs to be entered correctly
27
array(
'verifyCode'
,
'captcha'
,
'allowEmpty'
=>!CCaptcha::checkRequirements()),
28
);
29
}
30
36
public
function
attributeLabels
()
37
{
38
return
array(
39
'verifyCode'
=>
'Verification Code'
,
40
);
41
}
42
}
Generated on Sun Jun 2 2013 05:35:38 for EliteConf by
1.8.4