Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15460 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\Country;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Db\Adapter\AdapterInterface;
9
use Laminas\Log\LoggerInterface;
10
use LeadersLinked\Mapper\CompanySizeMapper;
11
use LeadersLinked\Mapper\IndustryMapper;
12
 
13
class CountryForm extends Form
14
{
15
 
16
    public function __construct()
17
    {
18
        parent::__construct();
19
        $this->setInputFilter(new CountryFilter());
20
 
21
 
22
        $this->add([
23
            'name' => 'code',
24
            'type' => \Laminas\Form\Element\Text::class,
25
            'attributes' => [
26
                'maxlength' 	=> 2,
27
                'id' 			=> 'code',
28
            ]
29
        ]);
30
 
31
        $this->add([
32
            'name' => 'country',
33
            'type' => \Laminas\Form\Element\Text::class,
34
            'attributes' => [
35
                'maxlength' 	=> 128,
36
                'id' 			=> 'country',
37
            ]
38
        ]);
39
 
40
 
41
    }
42
}