Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
MailsendingForm.php
1 <?php
2 /**
3  *
4  */
5 class MailsendingForm extends CFormModel
6 {
7  public $your_name;
8  public $your_email;
9  public $friends_name;
10  public $friends_email;
11  public $link;
12  public $comment;
13 
14  public function rules()
15  {
16  return array(
17  array('your_name, your_email, friends_name, friends_email, link', 'required'),
18  array('your_name, friends_name', 'length', 'max' => 255),
19  array('link', 'length', 'max' => 2000),
20  array('your_email, friends_email', 'email'),
21  array('comment', 'safe')
22  );
23  }
24 
25  public function getAttributeLabel($attribute)
26  {
27  return SocialModule::t(parent::getAttributeLabel($attribute));
28  }
29 
30 }