Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\UserProfile;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Db\Adapter\AdapterInterface;
9
use LeadersLinked\Mapper\SkillMapper;
10
 
11
class LocationForm extends Form
12
{
13
    public function __construct()
14
    {
15
        parent::__construct();
16
        $this->setInputFilter(new LocationFilter());
17
 
18
        $this->add([
19
            'name' => 'location_search',
20
            'type' => \Laminas\Form\Element\Text::class,
21
            'attributes' => [
22
                'maxlength' 	=> 250,
23
                'id' 			=> 'location_search',
24
            ]
25
        ]);
26
 
27
 
28
        $this->add([
29
            'name' => 'formatted_address',
30
            'type' => \Laminas\Form\Element\Hidden::class,
31
            'attributes' => [
32
                'id'    => 'formatted_address',
33
            ]
34
        ]);
35
 
36
        $this->add([
37
            'name' => 'address1',
38
            'type' => \Laminas\Form\Element\Hidden::class,
39
            'attributes' => [
40
                'id'    => 'address1',
41
            ]
42
        ]);
43
 
44
        $this->add([
45
            'name' => 'address2',
46
            'type' => \Laminas\Form\Element\Hidden::class,
47
            'attributes' => [
48
                'id'    => 'address2',
49
            ]
50
        ]);
51
 
52
        $this->add([
53
            'name' => 'country',
54
            'type' => \Laminas\Form\Element\Hidden::class,
55
            'attributes' => [
56
                'id'    => 'country',
57
            ]
58
        ]);
59
 
60
        $this->add([
61
            'name' => 'state',
62
            'type' => \Laminas\Form\Element\Hidden::class,
63
            'attributes' => [
64
                'id'    => 'state',
65
            ]
66
        ]);
67
 
68
        $this->add([
69
            'name' => 'city1',
70
            'type' => \Laminas\Form\Element\Hidden::class,
71
            'attributes' => [
72
                'id'    => 'city1',
73
            ]
74
        ]);
75
 
76
        $this->add([
77
            'name' => 'city2',
78
            'type' => \Laminas\Form\Element\Hidden::class,
79
            'attributes' => [
80
                'id'    => 'city2',
81
            ]
82
        ]);
83
 
84
        $this->add([
85
            'name' => 'postal_code',
86
            'type' => \Laminas\Form\Element\Hidden::class,
87
            'attributes' => [
88
                'id'    => 'postal_code',
89
            ]
90
        ]);
91
 
92
        $this->add([
93
            'name' => 'latitude',
94
            'type' => \Laminas\Form\Element\Hidden::class,
95
            'attributes' => [
96
                'id'    => 'latitude',
97
            ]
98
        ]);
99
 
100
        $this->add([
101
            'name' => 'longitude',
102
            'type' => \Laminas\Form\Element\Hidden::class,
103
            'attributes' => [
104
                'id'    => 'longitude',
105
            ]
106
        ]);
107
 
108
 
109
 
110
 
111
 
112
    }
113
 
114
}