Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17002 | | Comparar con el anterior | Ultima modificación | Ver Log |

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