summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/forms/AuthRegister.php
diff options
context:
space:
mode:
authormichael pereira2011-03-15 11:35:00 +0100
committermichael pereira2011-03-15 11:35:00 +0100
commit3f9700079f95c7fb715e5c9363e48dce6c7c627f (patch)
tree17fe70fcfbe651a9c52194423a67bac5a9c692e9 /application/modules/dev/forms/AuthRegister.php
parentRessource Controller (diff)
parentlinks korrigiert, dev ist nun lauffähig (diff)
downloadpbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.tar.gz
pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.tar.xz
pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.zip
Ressource gelöscht
Diffstat (limited to 'application/modules/dev/forms/AuthRegister.php')
-rw-r--r--application/modules/dev/forms/AuthRegister.php105
1 files changed, 105 insertions, 0 deletions
diff --git a/application/modules/dev/forms/AuthRegister.php b/application/modules/dev/forms/AuthRegister.php
new file mode 100644
index 0000000..ceb1050
--- /dev/null
+++ b/application/modules/dev/forms/AuthRegister.php
@@ -0,0 +1,105 @@
+<?php
+
+class dev_Form_AuthRegister extends Zend_Form
+{
+
+ public function init()
+ {
+ $this->setName("Register");
+ $this->setMethod('post');
+
+ $this->addElement('text', 'title', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ 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)),
+ ),
+ 'required' => true,
+ 'label' => 'Name:',
+ ));
+
+ $this->addElement('text', 'firstname', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ 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)),
+ ),
+ 'required' => true,
+ 'label' => 'Street:',
+ ));
+
+ $this->addElement('text', 'housenumber', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ 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)),
+ ),
+ 'required' => true,
+ 'label' => 'City:',
+ ));
+
+ $this->addElement('text', 'postalcode', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ 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)),
+ ),
+ 'required' => true,
+ 'label' => 'Email:',
+ ));
+
+ $this->addElement('password', 'password', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'Password:',
+ ));
+
+ $this->addElement('submit', 'register', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Register',
+ ));
+
+
+ }
+
+
+
+}
+