Proyectos de Subversion LeadersLinked - Services

Rev

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

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