summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Register.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/forms/Register.php')
-rw-r--r--application/modules/user/forms/Register.php78
1 files changed, 39 insertions, 39 deletions
diff --git a/application/modules/user/forms/Register.php b/application/modules/user/forms/Register.php
index 1a054c4..c0a4d9d 100644
--- a/application/modules/user/forms/Register.php
+++ b/application/modules/user/forms/Register.php
@@ -3,103 +3,103 @@
class user_Form_Register extends Zend_Form
{
- public function init()
- {
- $this->setName("Register");
+ public function init()
+ {
+ $this->setName("Register");
$this->setMethod('post');
- $this->addElement('text', 'title', array(
+ $this->addElement('text', 'title', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Title:',
));
-
-
+
+
$this->addElement('text', 'name', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Name:',
));
-
+
$this->addElement('text', 'firstname', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Firstname:',
));
-
+
$this->addElement('text', 'street', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Street:',
));
-
+
$this->addElement('text', 'housenumber', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Housenumber:',
));
-
+
$this->addElement('text', 'city', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'City:',
));
-
+
$this->addElement('text', 'postalcode', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),
+ ),
'required' => true,
'label' => 'Postalcode:',
));
-
+
$this->addElement('text', 'email', array(
'filters' => array('StringTrim', 'StringToLower'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
+ array('StringLength', false, array(0, 50)),array('EmailAddress', "deep" => true, "mx" => true),
+ ),
'required' => true,
'label' => 'Email:',
));
-
+
$this->addElement('password', 'password', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(5, 50)),
- ),
+ array('StringLength', false, array(5, 50)),
+ ),
'required' => true,
'label' => 'Password:',
- ));
-
- $this->addElement('submit', 'register', array(
+ ));
+
+ $this->addElement('submit', 'register', array(
'required' => false,
'ignore' => true,
'label' => 'Register',
- ));
-
-
- }
+ ));
+
+
+ }
+
-
}