Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
17002 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\CompanySize;
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 CompanySizeForm extends Form
14
{
15
 
16
    public function __construct()
17
    {
18
        parent::__construct();
19
        $this->setInputFilter(new CompanySizeFilter());
20
 
21
 
22
        $this->add([
23
            'name' => 'name',
24
            'type' => \Laminas\Form\Element\Text::class,
25
             'attributes' => [
26
                'maxlength' 	=> 64,
27
                'id' 			=> 'name',
28
            ]
29
         ]);
30
         $this->add([
31
            'name' => 'minimum_no_of_employee',
32
            'type' => \Laminas\Form\Element\Text::class,
33
            'attributes' => [
34
                'maxlength' 	=> 10,
35
                'id' 			=> 'minimum_no_of_employee',
36
            ]
37
        ]);
38
         $this->add([
39
             'name' => 'maximum_no_of_employee',
40
             'type' => \Laminas\Form\Element\Text::class,
41
             'attributes' => [
42
                 'maxlength' 	=> 10,
43
                 'id' 			=> 'maximum_no_of_employee',
44
             ]
45
         ]);
46
 
47
         $this->add([
48
             'name' => 'status',
49
             'type' => \Laminas\Form\Element\Checkbox::class,
50
             'attributes' => [
51
                 'id' 			=> 'status',
52
             ],
53
             'options' => [
54
                 'use_hidden_element' => false,
55
                 'unchecked_value' => \LeadersLinked\Model\CompanySize::STATUS_INACTIVE,
56
                 'checked_value'=> \LeadersLinked\Model\CompanySize::STATUS_ACTIVE,
57
             ]
58
         ]);
59
 
60
    }
61
}