Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1560 Rev 1566
Línea 73... Línea 73...
73
                'id' 			=> 'last_date',
73
                'id' 			=> 'last_date',
74
             ],
74
             ],
75
        ]);
75
        ]);
Línea 76... Línea 76...
76
 
76
 
-
 
77
        $this->add([
-
 
78
            'name' => 'location_search',
-
 
79
            'type' => \Laminas\Form\Element\Text::class,
-
 
80
            'attributes' => [
-
 
81
                'maxlength' 	=> 250,
-
 
82
                'id' 			=> 'location_search',
-
 
83
            ]
-
 
84
        ]);
-
 
85
        
-
 
86
        
77
        $this->add([
87
        $this->add([
78
            'name' => 'formatted_address',
-
 
79
            'required' => true,
-
 
80
            'filters' => [
88
            'name' => 'formatted_address',
81
                ['name' => \Laminas\Filter\StripTags::class],
-
 
82
                ['name' => \Laminas\Filter\StringTrim::class],
-
 
83
            ],
89
            'type' => \Laminas\Form\Element\Hidden::class,
84
            'validators' => [
-
 
85
                [
90
            'attributes' => [
86
                    'name' => \Laminas\Validator\NotEmpty::class,
-
 
87
                ],
91
                'id'    => 'formatted_address',
88
            ],
92
            ]
Línea 89... Línea 93...
89
        ]);
93
        ]);
90
        
94
        
91
        $this->add([
95
        $this->add([
92
            'name' => 'address1',
96
            'name' => 'address1',
93
            'required' => false,
97
            'type' => \Laminas\Form\Element\Hidden::class,
94
            'filters' => [
-
 
95
                ['name' => \Laminas\Filter\StripTags::class],
98
            'attributes' => [
96
                ['name' => \Laminas\Filter\StringTrim::class],
99
                'id'    => 'address1',
Línea 97... Línea 100...
97
            ],
100
            ]
98
        ]);
101
        ]);
99
        
102
        
100
        $this->add([
103
        $this->add([
101
            'name' => 'address2',
104
            'name' => 'address2',
102
            'required' => false,
-
 
103
            'filters' => [
105
            'type' => \Laminas\Form\Element\Hidden::class,
104
                ['name' => \Laminas\Filter\StripTags::class],
106
            'attributes' => [
Línea 105... Línea 107...
105
                ['name' => \Laminas\Filter\StringTrim::class],
107
                'id'    => 'address2',
106
            ],
108
            ]
107
        ]);
-
 
108
        
-
 
109
        $this->add([
109
        ]);
110
            'name' => 'country',
-
 
111
            'required' => true,
-
 
112
            'filters' => [
110
        
113
                ['name' => \Laminas\Filter\StripTags::class],
-
 
114
                ['name' => \Laminas\Filter\StringTrim::class],
-
 
115
            ],
-
 
116
            'validators' => [
-
 
117
                [
111
        $this->add([
118
                    'name' => \Laminas\Validator\StringLength::class,
-
 
119
                    'options' => [
-
 
120
                        'encoding' => 'UTF-8',
-
 
121
                        'max' => 128,
-
 
122
                    ],
-
 
123
                ],
112
            'name' => 'country',
124
                [
113
            'type' => \Laminas\Form\Element\Hidden::class,
Línea 125... Línea 114...
125
                    'name' => \Laminas\Validator\NotEmpty::class,
114
            'attributes' => [
126
                ],
115
                'id'    => 'country',
127
            ],
-
 
128
        ]);
-
 
129
        
116
            ]
130
        $this->add([
-
 
131
            'name' => 'state',
-
 
132
            'required' => true,
117
        ]);
133
            'filters' => [
-
 
134
                ['name' => \Laminas\Filter\StripTags::class],
-
 
135
                ['name' => \Laminas\Filter\StringTrim::class],
-
 
136
            ],
-
 
137
            'validators' => [
118
        
138
                [
-
 
139
                    'name' => \Laminas\Validator\StringLength::class,
-
 
140
                    'options' => [
-
 
141
                        'encoding' => 'UTF-8',
-
 
142
                        'max' => 128,
-
 
143
                    ],
119
        $this->add([
144
                ],
120
            'name' => 'state',
Línea 145... Línea 121...
145
                [
121
            'type' => \Laminas\Form\Element\Hidden::class,
146
                    'name' => \Laminas\Validator\NotEmpty::class,
122
            'attributes' => [
147
                ],
-
 
148
            ],
-
 
149
        ]);
123
                'id'    => 'state',
150
        
-
 
151
        $this->add([
-
 
152
            'name' => 'city1',
124
            ]
153
            'required' => true,
-
 
154
            'filters' => [
-
 
155
                ['name' => \Laminas\Filter\StripTags::class],
-
 
156
                ['name' => \Laminas\Filter\StringTrim::class],
-
 
157
            ],
125
        ]);
158
            'validators' => [
-
 
159
                [
-
 
160
                    'name' => \Laminas\Validator\StringLength::class,
126
        
161
                    'options' => [
127
        $this->add([
Línea 162... Línea 128...
162
                        'encoding' => 'UTF-8',
128
            'name' => 'city1',
163
                        'max' => 128,
129
            'type' => \Laminas\Form\Element\Hidden::class,
164
                    ],
-
 
165
                ],
-
 
166
            ],
130
            'attributes' => [
167
        ]);
-
 
168
        
-
 
169
        $this->add([
131
                'id'    => 'city1',
170
            'name' => 'city2',
-
 
171
            'required' => false,
-
 
172
            'filters' => [
-
 
173
                ['name' => \Laminas\Filter\StripTags::class],
-
 
174
                ['name' => \Laminas\Filter\StringTrim::class],
132
            ]
175
            ],
-
 
176
            'validators' => [
-
 
177
                [
133
        ]);
178
                    'name' => \Laminas\Validator\StringLength::class,
134
        
179
                    'options' => [
135
        $this->add([
180
                        'encoding' => 'UTF-8',
136
            'name' => 'city2',
181
                        'max' => 128,
137
            'type' => \Laminas\Form\Element\Hidden::class,
182
                    ],
-
 
183
                ],
-
 
184
            ],
138
            'attributes' => [
185
        ]);
-
 
186
    
-
 
187
        $this->add([
139
                'id'    => 'city2',
188
            'name' => 'postal_code',
-
 
189
            'required' => false,
-
 
190
            'filters' => [
-
 
191
                ['name' => \Laminas\Filter\StripTags::class],
-
 
192
                ['name' => \Laminas\Filter\StringTrim::class],
140
            ]
193
            ],
-
 
194
            'validators' => [
-
 
195
                [
141
        ]);
196
                    'name' => \Laminas\Validator\StringLength::class,
142
        
197
                    'options' => [
143
        $this->add([
198
                        'encoding' => 'UTF-8',
144
            'name' => 'postal_code',
199
                        'max' => 6,
145
            'type' => \Laminas\Form\Element\Hidden::class,
200
                    ],
-
 
201
                ],
-
 
202
            ],
146
            'attributes' => [
203
        ]);
-
 
204
    
147
                'id'    => 'postal_code',
205
        $this->add([
-
 
206
            'name' => 'latitude',
-
 
207
            'required' => true,
-
 
208
            'filters' => [
148
            ]
209
                ['name' => \LeadersLinked\Filter\Floatval::class],
149
        ]);
210
            ],
150
        
Línea 211... Línea 151...
211
            'validators' => [
151
        $this->add([
212
            
152
            'name' => 'latitude',
213
                [
-
 
214
                    'name' => \Laminas\Validator\NotEmpty::class,
-
 
215
                ],
153
            'type' => \Laminas\Form\Element\Hidden::class,
216
            ],
-
 
217
        ]);
154
            'attributes' => [
218
        
-
 
219
        $this->add([
-
 
220
            'name' => 'longitude',
-
 
221
            'required' => true,
155
                'id'    => 'latitude',
222
            'filters' => [
156
            ]
223
                ['name' => \LeadersLinked\Filter\Floatval::class],
157
        ]);
Línea -... Línea 158...
-
 
158
        
-
 
159
        $this->add([
224
            ],
160
            'name' => 'longitude',
225
            'validators' => [
161
            'type' => \Laminas\Form\Element\Hidden::class,
226
                
162
            'attributes' => [
227
                [
163
                'id'    => 'longitude',
228
                    'name' => \Laminas\Validator\NotEmpty::class,
-
 
229
                ],
164
            ]
230
            ],
165
        ]);
231
        ]);
166
        
232
        
167
        
233
        $this->add([
168
        
234
            'name' => 'is_main',
-
 
235
            'required' => false,
169
        $this->add([
236
            'filters' => [
-
 
237
                ['name' => \Laminas\Filter\StripTags::class],
-
 
238
                ['name' => \Laminas\Filter\StringTrim::class],
-
 
239
            ],
170
            'name' => 'is_main',
240
            'validators' => [
171
            'type' => \Laminas\Form\Element\Checkbox::class,
Línea 241... Línea 172...
241
                [
172
            'attributes' => [
242
                    'name' => \Laminas\Validator\StringLength::class,
173
                'id' 			=> 'is_main',
243
                    'options' => [
174
            ],