HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
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
}
app
protected
models
ContactForm.php
Generated on Tue Jun 30 2015 20:12:34 for HCE Project DC service web UI by
1.8.1.2