Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
17002 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form;
6
 
7
use Laminas\Form\Form;
8
 
9
 
10
class ChangePasswordForm extends Form
11
{
12
 
13
    public function __construct()
14
    {
15
 
16
        parent::__construct();
17
        $this->setInputFilter(new ChangePasswordFilter());
18
 
19
        $this->add([
20
            'name' => 'first_name',
21
            'type' => \Laminas\Form\Element\Text::class,
22
            'attributes' => [
23
                'id' => 'first_name',
24
            ]
25
        ]);
26
 
27
        $this->add([
28
            'name' => 'last_name',
29
            'type' => \Laminas\Form\Element\Text::class,
30
            'attributes' => [
31
                'id' => 'last_name',
32
            ]
33
        ]);
34
 
35
        $this->add([
36
            'name' => 'email',
37
            'type' => \Laminas\Form\Element\Text::class,
38
            'attributes' => [
39
                'id' => 'email',
40
            ]
41
        ]);
42
 
43
         $this->add([
44
             'name' => 'password',
45
             'type' => \Laminas\Form\Element\Password::class,
46
             'attributes' => [
47
                 'maxlength' => 25,
48
                 'id' => 'password',
49
             ]
50
         ]);
51
 
52
 
53
         $this->add([
54
             'name' => 'confirmation',
55
             'type' => \Laminas\Form\Element\Password::class,
56
             'attributes' => [
57
                 'maxlength' => 25,
58
                 'id' => 'confirmation',
59
             ]
60
         ]);
61
    }
62
 
63
 
64
}