1 : <?php
2 :
3 : class Application_Form_User extends Application_Form_Base
4 0 : {
5 :
6 : public function init()
7 : {
8 0 : $this->addElements(array(
9 0 : new Zend_Form_Element_Text('email', array(
10 0 : 'required' => true,
11 0 : 'label' => 'Email Address:',
12 0 : 'filters' => array('StringTrim', 'StringToLower'),
13 0 : 'validators' => array('emailAddress'),
14 0 : 'decorators' => $this->_defaultDecorators,
15 0 : )),
16 0 : new Zend_Form_Element_Password('password', array(
17 0 : 'required' => true,
18 0 : 'label' => 'Password:',
19 0 : 'filters' => array('StringTrim'),
20 : 'validators' => array(
21 0 : 'NotEmpty',
22 0 : array('StringLength', false, array(6))
23 0 : ),
24 0 : 'decorators' => $this->_defaultDecorators,
25 0 : )),
26 0 : new Zend_Form_Element_Password('password_repeat', array(
27 0 : 'required' => true,
28 0 : 'label' => 'Repeat Pass:',
29 0 : 'filters' => array('StringTrim'),
30 : 'validators' => array(
31 0 : 'NotEmpty',
32 0 : array('StringLength', false, array(6))
33 0 : ),
34 0 : 'decorators' => $this->_defaultDecorators,
35 0 : )),
36 0 : ));
37 :
38 0 : $this->_bindings['email'] = array('email', null);
39 0 : $this->_bindings['password'] = array('md5_pass', null);
40 :
41 :
42 :
43 :
44 :
45 :
46 :
47 :
48 :
49 0 : }
50 :
|