Proyectos de Subversion LeadersLinked - Services

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 345
Línea 1... Línea 1...
1
<?php
1
<?php
2
 
-
 
3
declare(strict_types=1);
2
declare(strict_types = 1);
4
 
-
 
5
namespace LeadersLinked\Form\Users;
3
namespace LeadersLinked\Form\Users;
Línea 6... Línea 4...
6
 
4
 
Línea 7... Línea -...
7
use Laminas\Form\Form;
-
 
8
 
5
use Laminas\Form\Form;
9
 
6
 
Línea 10... Línea 7...
10
class ChangePasswordForm extends Form
7
class ChangePasswordForm extends Form
11
{
8
{
12
 
-
 
13
    public function __construct() 
9
 
14
    {
10
    public function __construct()
Línea 15... Línea -...
15
 
-
 
16
        parent::__construct();
11
    {
17
        $this->setInputFilter(new ChangePasswordFilter());
12
        parent::__construct();
18
 
13
        $this->setInputFilter(new ChangePasswordFilter());
19
 
14
 
20
         $this->add([
15
        $this->add([
21
             'name' => 'password',
16
            'name' => 'password',
22
             'type' => \Laminas\Form\Element\Password::class,
17
            'type' => \Laminas\Form\Element\Password::class,
23
             'attributes' => [
18
            'attributes' => [
24
                 'maxlength' => 25,
19
                'maxlength' => 25,
25
                 'id' => 'password',
20
                'id' => 'password'
26
             ]
21
            ]
27
         ]);
22
        ]);
28
         $this->add([
23
        $this->add([
29
             'name' => 'confirmation',
24
            'name' => 'confirmation',
30
             'type' => \Laminas\Form\Element\Password::class,
25
            'type' => \Laminas\Form\Element\Password::class,
31
             'attributes' => [
26
            'attributes' => [
32
                 'maxlength' => 25,
27
                'maxlength' => 25,
33
                 'id' => 'confirmation',
-
 
34
             ]
-
 
35
         ]);
28
                'id' => 'confirmation'
36
    }
29
            ]