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